cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Aria
Level: Powered On

How to detect a file in Azure blob storage from PowerApps

Hi ,

From powerapps I want to detect if a file exists in a AzureBlobSotrage such that I can use it to show  the stautus of  file upload from PowerApps to AzureBlobStorage.

The files are created on AzureblobStorage as shown below:


ForAll(Fotos;
AzureBlobStorage.CreateFile(path;fotoId& ".jpg";foto)
);;

Unfortuantly I can not use a variable to get the information about the uploaded file when I use ForAll(...) , and I can not use the following 
ForAll(Fotos;
UpdateContext({uploadedFile:AzureBlobStorage.CreateFile(path;fotoId& ".jpg";foto)})
);;

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: How to detect a file in Azure blob storage from PowerApps

Hi @Aria 

 

If you want to check if a file exist in the specific container on the Azure Blob Storage, you can use the below expression:
 
If("PDF File.pdf" in AzureBlobStorage.ListFolderV2(LookUp(AzureBlobStorage.ListRootFolderV2().value,DisplayName = "testt").Id).value.DisplayName,"Exist","Doesnot Exist")
 
Here, first argument(PDF File.pdf) is the name of my file. testt is the name of container.MicrosoftTeams-image (7).png

 

Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: How to detect a file in Azure blob storage from PowerApps

Hi @Aria 

 

If you want to check if a file exist in the specific container on the Azure Blob Storage, you can use the below expression:
 
If("PDF File.pdf" in AzureBlobStorage.ListFolderV2(LookUp(AzureBlobStorage.ListRootFolderV2().value,DisplayName = "testt").Id).value.DisplayName,"Exist","Doesnot Exist")
 
Here, first argument(PDF File.pdf) is the name of my file. testt is the name of container.MicrosoftTeams-image (7).png

 

Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Aria
Level: Powered On

Re: How to detect a file in Azure blob storage from PowerApps

Hi 

Thank you very much for your answer !
I used your suggestion and it solved the problem.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,839)