cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Gallery Images show Text need coding help (pictures. description etc in thread)

Hi,

 

Im looking for a better solution to a multiple image problem and i think im half there, however my skills are lacking.

 

Here is my test app 

 

for site.png

 

I want the app to be able to take photos and send to the collection, view the collection and delete any that they dont want and then to patch the gallery to a sharepoint list (each image in the gallery can be concatenate into a single multiline text column or several multiline text columns)

 

If i can use flow to convert them later

 

I have been playing around with the JSON and if take a photo with powerapps and run some json at the same time remove the extra BASE64 code, then i can convert this multiline text of BASE64 code into jpg using the onedrive convert no?

 

So my questions are,

 

how do i patch a collection of images to one multiline text column (and then how do i make a flow to convert this one multiline text column to jpg)

If i cannot do the above how can i patch each image within a collection each to their own multiline text column (and then how do i make a flow to convert this one multiline text column to jpg)  

 

The reason for doing this without the online solutions provided is i need my users to be completely offline so i can use the collect and if connected.connect 

 

 

 

 

 

 

 

2 REPLIES 2
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to patch a collection of images into the "Multiple Lines of Text" type column of single one record or patch each image record from the collection as separated row within your SP List?

 

If you want to patch a collection of images into the "Multiple Lines of Text" type column of single one record in your SP List, and then convert it into jpg file using Power Automate, I think it is not a better solution to achieve your needs.

 

As an alternative solution, you could consider patch each image record from the collection as separated row within your SP List using PowerApps without Power Automate (MS Flow). I assume that the data structure of your Image collection as below:

1.JPG

You could use the following the formula to collect the captured image from the Camera device into the ImageCollection:

Collect(
         ImageCollection, 
         {
           FileName: "Uploading" & CountRows(ImageCollection)+1, 
           FileContent: Substitute(JSON(Camera1.Photo,JSONFormat.IncludeBinaryData), """","")
         }
)

 use the following formula to collect the captured image from the "Add Picture" control into the ImageCollection:

Collect(
        ImageCollection, 
        {
           FileName: "Uploading" & CountRows(ImageCollection)+1, 
           FileContent: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData), """","")
        }
)

 

If you want to patch the collection of images into your SP List as separated rows, please take a try with the following formula (set the OnSelect property of the "Patch" button to following😞

ForAll(
       ImageCollection,
       Patch(
             'SP List',
             Defaults('SP List'),
             {
               Title: ImageCollection[@FileName],
               MultipleLineTextColumn: ImageCollection[@FileContent]
             }
       )
)

Please check and see if the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps/save-uploaded-pics-to-sharepoint-from-powerapps-without-flow/m-p/411112

 

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.
Anonymous
Not applicable


@v-xida-msft wrote:

Hi @Anonymous ,

Could you please share a bit more about your scenario?

Do you want to patch a collection of images into the "Multiple Lines of Text" type column of single one record or patch each image record from the collection as separated row within your SP List?

 

If you want to patch a collection of images into the "Multiple Lines of Text" type column of single one record in your SP List, and then convert it into jpg file using Power Automate, I think it is not a better solution to achieve your needs.

 

As an alternative solution, you could consider patch each image record from the collection as separated row within your SP List using PowerApps without Power Automate (MS Flow). I assume that the data structure of your Image collection as below:

1.JPG

You could use the following the formula to collect the captured image from the Camera device into the ImageCollection:

 

Collect(
         ImageCollection, 
         {
           FileName: "Uploading" & CountRows(ImageCollection)+1, 
           FileContent: Substitute(JSON(Camera1.Photo,JSONFormat.IncludeBinaryData), """","")
         }
)

 

 use the following formula to collect the captured image from the "Add Picture" control into the ImageCollection:

 

Collect(
        ImageCollection, 
        {
           FileName: "Uploading" & CountRows(ImageCollection)+1, 
           FileContent: Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData), """","")
        }
)

 

 

If you want to patch the collection of images into your SP List as separated rows, please take a try with the following formula (set the OnSelect property of the "Patch" button to following😞

 

ForAll(
       ImageCollection,
       Patch(
             'SP List',
             Defaults('SP List'),
             {
               Title: ImageCollection[@FileName],
               MultipleLineTextColumn: ImageCollection[@FileContent]
             }
       )
)

 

Please check and see if the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps/save-uploaded-pics-to-sharepoint-from-powerapps-without-flow/m-p/411112

 

Best regards,


which ever really, thankyou for that link (i got the idea from that same forum thread and a lot of youtube tutorials dealing with similar issues, but there is nothing out there)

 

Really my end goal it too take one or more photos with the powerapps camera , then display them in a gallery , then patch/collect (depending on connection.connected) the gallery to one multiline text column and finally make a flow that converts them to jpg and saves them as an attachment to that list item.

 

However i have zero clue how to do that? i know its a big ask but could you do up a demo or just share an app, the only tutorials or documentation i can find use a combo of flow and powerapps together (which is no good if your offline) and does not suite my purposes. This problem has been plaguing myself at work with several users for awhile when they drop out of internet connection

 

Could you also share or export a flow for the conversion of the data once it is in Sharepoint? 

 

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,590)