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
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
@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:
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:
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?
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:
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:
Best regards,
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2