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 / Working with retrieval...
Power Apps
Answered

Working with retrieval of Pictures connected to SharePoint List item

(0) ShareShare
ReportReport
Posted on by 1,121

Dear Power Platform Champs,

I have a editform form1 connected to SharePoint list. It is a audit form which requires pictures to be taken at customer location and attach them to the form. The pictures have got metadata to link, so am not using list attachments. I am capturing pictures using picture control and saving them to SharePoint document library along with certain metadata like list FormID, State etc. I am using a collection and flow to save the pictures and metadata to SharePoint library. Here is my collection

Collect(
 colAuditPictures,
 {
 Title: AddMediaButton1.FileName,
 DataStream: UploadedImage1.Image
 }
)

At OnSuccess property of the form I am running the flow with below formula to save pictures and metadata back to SharePoint library. The flow is working fine and saving the pictures and metadata.

If(
 CountRows(colAuditPictures) > 0,
 SavePicturestoLibrary.Run(
 JSON(
 colAuditPictures,
 JSONFormat.IncludeBinaryData
 ),
 drpState.Selected.Value,
 Form1.LastSubmit.ID
 )
);

The problem is during the retrieval of the pictures from my gallery connected to already submitted forms. I am using below formula to populate the same collection but the image is in a column called {Thumbnail} which is a table and having a conflict with collection schema that I created earlier.

Collect(
 colAuditPictures,
 RenameColumns(
 ShowColumns(
 Filter(
 'Safety Audit Without Manifold Pictures',
 'Form ID' = varSelectedRecord.ID
 ),
 "{FilenameWithExtension}",
 "{Thumbnail}"
 ),
 "{FilenameWithExtension}",
 "Title",
 "{Thumbnail}",
 "ImgFromLib"
 )
 )

Now my collection got another column "ImgFromLib" as I cannot use rename column {Thumbnail} to "DataStream" because they are of different types. And my flow is depending on my collection schema I would like to use one column for my image in my collection while attaching picture during New Form submission and Edit Form Submission. How can I do that?

RameshMukka_0-1623582689387.png

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @RameshMukka ,

     

    Please use 'Link to item' column of the library instead of 'Thumbnail' column in the collection:

    Collect(
     colAuditPictures,
     RenameColumns(
     ShowColumns(
     Filter(
     'Safety Audit Without Manifold Pictures',
     'Form ID' = varSelectedRecord.ID
     ),
     "{FilenameWithExtension}",
     "{Link}"
     ),
     "{FilenameWithExtension}",
     "Title",
     "{Link}",
     "DataStream"
     )
     )

     

    Link to item column is the URL for a file that stored in the library, you may use the link for other places although the link is steal with a different type from the stream.

     

    If you want to retrieve the binary data of the image, you need to use a flow:

    v-jefferni_0-1623749777186.png

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard