web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Viewing submitted imag...
Power Apps
Answered

Viewing submitted images from a collection

(0) ShareShare
ReportReport
Posted on by 1,625

Hi,

I am submitting images to a SharePoint document library stored in a Power Apps collection, using flow to push the images to a doc lib.

While the user is completing the form, they can see the images they have attached to the form through the gallery.

How do I allow users to view submitted images, in a submitted record in Power Apps, when they navigate back to a record?

 

I have multiple collections I am looking to push up to a doc lib, I have logged a separate question on Power Automate forum, would be good to get some help on that too please?

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @Lefty ,

    Please have a read of this blog of mine on SharePoint Images - can you also share the code you have used currently.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @Lefty ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Lefty Profile Picture
    1,625 on at

    HI @WarrenBelz 

     

    I've been dragged into another form development, I think I have reached out to on that one for help.
    I've had to put this form on hold, I will be get in touch when/if I need further help, if thats ok

  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    OK @Lefty ,

    I will wait to hear from you

  • Lefty Profile Picture
    1,625 on at

    HI @WarrenBelz 
    I am actually stuck with trying to collect multiple image collection, this is my code so far.

    For 1 collection of images, the process works and maps to the SPO doc library - need to resolve mapping the item to the current item but i guess that will be later.

    Set(ImagesToJSON, JSON(ImageCollection, JSONFormat.IncludeBinaryData));
    AddImages.Run(ImagesToJSON)
     

    But I have other screens with other collections I want to collect if they are not empty and pass that 1 collection to the AddImages Power Automate flow

     

    If I have 2 images collections from 2 different screens:

     

    Set(ImagesToJSON, JSON(ImageCollection, JSONFormat.IncludeBinaryData)); 
    
    //And then on another screen I have:
    
    Set(bImagesToJSON, JSON(ImageCollectionB, JSONFormat.IncludeBinaryData)); 
    
    //I'm unsure how I combine both to pass them to Power Automate?

     

    Thanks

  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @Lefty ,'

    Firstly, how do you make the ImageCollection? If they are camera photos, you can deal with them without the JSON and use datUriToBinary in the Flow (please read my blog on this). If they are uploaded images, then the full JSON conversion is required (also in my blog).
    Please advise on this.

  • Lefty Profile Picture
    1,625 on at

    @WarrenBelz 

    Yes my images are uploaded images via the Add Picture control and added to the a collection. The requirement is for the users to be able to upload multiple images for 1 defect. And then multiple images for another defect and so on. I understood your blog, but was hoping I did not have to re-do the set up I currently have as it appears its slightly different, of course if I have to, then I will follow your blog as its very well explained.

     

    I need help with combing the collections, and passing only 1 parameter to Flow, which is my first issue, then I think I can use your blog to add an additional step in my flow to reference an ID from the list the item is linked to.

  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    @Lefty ,

    Two things - to combine Collections that are identical in field names and field types

    ClearCollect(
     ImageCollectionAll,
     ImageCollection,
     ImageCollectionB
    )

    The second, you said you had this working using the JSON in your code? What is the Collect code on these?
    I will also be offline shortly due to time zone.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Lefty Profile Picture
    1,625 on at

    @WarrenBelz 

    Thanks
    I tried what I thought was your suggestion but getting errors:

    On Screen1 next button OnSelect I have this:

    Set(ImagesToJSON, JSON(ImageCollectionA, JSONFormat.IncludeBinaryData)); 

     

    Then on Screen Submit button I thought this was what I needed:

    Set(bImagesToJSON, JSON(ImageCollectionB, JSONFormat.IncludeBinaryData)); 
    ClearCollect(AllImages,ImagesToJSON,bImagesToJSON, cImagesToJSON); //Ignore cImagesToJSON 
    AddImages.Run(AllImages)

     

    Lefty_0-1611921282607.png

    This is my flow:

     

    Lefty_1-1611921478034.png

     

     

  • WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    @Lefty ,

    Now I see your Flow, you are using a completely different method (parsing an array in the Flow) to what I use in my process. If this is working, good, however the problem you face it that you want to view these images and identify which belong to the list item. To do this, you will also have to send an identifier for the "master" record they belong to (the ID is the best one as it is unique) and put this in the metadata of the Library.

    I am not a Flow troubleshooter (I use it for what I need), however it appears that as you are using an Apply to each to create the file, you could add a reference field (I call my field IDRef) to the Library in a stage Update file properties (refer to the blog) and then send the ID as a additional parameter in the flow.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard