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

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

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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 68 members 4,468 guests
Please welcome our newest community members: