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

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,885)