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

How to add metadata to Azure blob via the connector

Hello everybody,

 

The app I've created uses the AzureBlobStorage connector to save images online.

Our surveyers in the field uses the app on the phone to fill in data and make a lot of pictures. Once everything is saved and uploaded the people in the office uses these information to create a report in an app on the desktop. Almost everything is automated.

 

In the desktop app the pictures are shown in a gallery and via HTML shown in the report via the concat function and tables. 

 

Thing is that not all pictures should end up in the report. The people in the office should be able to deselect the pictures in the gallery to avoid them to show up in the report. Deleting the photo's is not an option.

Copying the files from one folder to another in Azure Blob is possible but I hope I can do it via metadata.

 

So, what I want is to add a column in my function AzureBlobStorage.CreateFile which says "Report: Yes".

Then when I collect the pictures in the gallery on the desktop app, this field is shown and editable. 

 

I hope you can help me.

Thanks a lot.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to add metadata to Azure blob via the connector

Hi @Mengeltje ,

Do you want to add a column in the AzureBlobStorage.CreateFile() function to identify if the picture would be displayed/used within the Report?

 

Actually, the arguments exposed within the AzureBlobStorage.CreateFile() function is based on the Azure Blob Storage API. If you want to add a column in the AzureBlobStorage.CreateFile() function manually, I afraid that there is no way to achieve your needs in PowerApps currently.

 

As an alternative solution, I think the Checkbox could achieve your needs. On your side, you could consider add a Checkbox within the Gallery (display your pictures), and then if you want to include pictures in your Report, please select the corresponding Checkbox within the Gallery Item.

I have made a test on my side, please take a try with the following workaround:6.JPG

 

7.JPG

Select the corresponding Checkboxes for these pictures you want to show in your Report within your Gallery, then when you want to filter the selected pictures within your Gallery, please consider take a try with the following formula:

Filter(
         Gallery1.AllItems,
         Checkbox1.Value = true
)

After that, you could concatenate the pictures into your Report based on above filtered table using Concat function:

Concat(
        Filter( Gallery1.AllItems, Checkbox1.Value = true),
.... )

Please consider take a try with above solution, then check if the issue is solved on your side.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: How to add metadata to Azure blob via the connector

Hi @Mengeltje ,

Do you want to add a column in the AzureBlobStorage.CreateFile() function to identify if the picture would be displayed/used within the Report?

 

Actually, the arguments exposed within the AzureBlobStorage.CreateFile() function is based on the Azure Blob Storage API. If you want to add a column in the AzureBlobStorage.CreateFile() function manually, I afraid that there is no way to achieve your needs in PowerApps currently.

 

As an alternative solution, I think the Checkbox could achieve your needs. On your side, you could consider add a Checkbox within the Gallery (display your pictures), and then if you want to include pictures in your Report, please select the corresponding Checkbox within the Gallery Item.

I have made a test on my side, please take a try with the following workaround:6.JPG

 

7.JPG

Select the corresponding Checkboxes for these pictures you want to show in your Report within your Gallery, then when you want to filter the selected pictures within your Gallery, please consider take a try with the following formula:

Filter(
         Gallery1.AllItems,
         Checkbox1.Value = true
)

After that, you could concatenate the pictures into your Report based on above filtered table using Concat function:

Concat(
        Filter( Gallery1.AllItems, Checkbox1.Value = true),
.... )

Please consider take a try with above solution, then check if the issue is solved on your side.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Mengeltje
Level: Powered On

Re: How to add metadata to Azure blob via the connector

Hi @v-xida-msft ,

 

thank you for your reply.

 

Since it is not possible to add a column to the createfile function, I think this is a very neat solution.

I tried it, it worked!!

 

Thanks.

 

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,655)