cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Storing into AzureBlob storage from a Collection

Hello

Im new to powerapps

Currently I have an app where I am collecting pictures and storing to the Azureblob storage and that is working ok. The problem is when the user is offline and has to take pictures and obviously they cannot load to the Azureblob storage.

I thought of doing a collection and then when the user is online it could append the information from the collection to the azure blob. Below is my code:

____________________________________________________________________________________________________________

Set(tmperGuid,GUID() & AddMediaButton1.FileName);
Set(VarAzureFile,AzureBlobStorage.CreateFile("form-safety-critical-risk",tmperGuid,AddMediaButton1.Media));

Collect(tmppics, {FL: "form-safety-critical-risk", Filename: tmperGuid, Pic: AddMediaButton1.Media});

_______________________________________________________________________________________________________________

How can I copy mt collection tmppics to my azureblob

 

Thank you so much

 

 

 

1 REPLY 1
Highlighted
Dual Super User III
Dual Super User III

Re: Storing into AzureBlob storage from a Collection

@mpezzutti 

 

You can try using the below expression to upload multiple collected images to blob storage:
ForAll(pictures,AzureBlobStorage.CreateFile("test01",Name,URL))
 
Here pictures is the name of my collection, which has two columns (Name & URL), Name contains the File Name to be created on Blog, while URL has the Image.
"test01" is the name of my blob container.
 
Screenshots:MicrosoftTeams-image (79).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!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published 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,481)