cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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 III
Dual Super User III

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 III
Dual Super User III

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

Highlighted
Frequent Visitor

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,856)