I have a PowerApp that utilizes Azure Storage (Blob). It is a bit backward from all the examples I could find as the file is not uploaded directly through PowerApps. The App is connected to a data source (on-premise SQL server) that provides back a list of files as a data source in the app. I display this list to the user in a gallery and they can select one of these files to upload it as a blob in Azure Storage. I had to really mouse-trap this up as the file is accessible by the on-prem SQL server and not necessarily the PowerApps user if they are not inside the corporate LAN when running the PowerApp. I created a PowerApp initiated cloud Power Automate to invoke a Stored Procedure on the on-premise SQL server that in turn runs Azcopy.exe to copy up the file to Azure storage as a blob in a specific folder in the container. Surprisingly it works very well for how many pieces are in the path for it to run.
The challenge I had was not knowing the ID of the blob since it didn't go through the PowerApp image or camera control which uses the appres://blobmanager to figure all that info out. However, I did find (after many hours of searching) a post by Peter Hefner @Lingualizer that does what I need it to do. The code is this:
for a Gallery: Items = AzureBlobStorage.ListFolderV2(LookUp( AzureBlobStorage.ListFolderV2("containername").value, DisplayName="foldername" & "/", Id)).value
This works well and just as expected. The question I wanted to know from my fine PowerApps peers is this: Is the AzureBlobStorage.ListFolderContentsV2 control delegable? I don't see Azure Storage listed as a source on the page that speaks about it. The good (promising) view is that there are no delegation warnings in the PowerApps studio when using the code above, but wanted to know if anyone knows for sure before I get 500 folders in Azure storage to find out there is a problem.
Solved! Go to Solution.
I opened a support ticket with MS to get this answer and wanted to share it for future travelers....
A thank you to @RezaDorrani or @Shanescows for their videos on using the AzureBlobStorage connector and also a shameless way to see if they have anything to input about this question.
I opened a support ticket with MS to get this answer and wanted to share it for future travelers....
User | Count |
---|---|
125 | |
87 | |
87 | |
75 | |
69 |
User | Count |
---|---|
215 | |
181 | |
140 | |
97 | |
83 |