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 / Upload Screenshot in P...
Power Apps
Answered

Upload Screenshot in Power App and Save to SharePoint List

(0) ShareShare
ReportReport
Posted on by 13

Hi All,

 

I am working on an app where users can view and update a single work item which is shown as a custom scrolling Form connected to a SharePoint List. 

 

I am trying to add a capability where users can upload screenshots for their work item which will then get saved back to SharePoint list, and then displayed back in the Power App when they come back to reference it.

 

I have seen tutorials online which either use the built in "Add Picture" functionality or use the Attachments Control from the Form. I have tried converting the image to Binary format and then used a Patch() function to write this format to a Multi-Line Text column. However, when I tried to view the screenshot in an "Image" control, it does not display anything.

 

In the "Add Picture" control, this is the formula I have:

 

Set(ImageBinaryRaw, JSON(UploadedImage2.Image, IncludeBinaryData));
Set(ImageBinary, Mid(ImageBinaryRaw, Find(",", ImageBinaryRaw) +1, Len(ImageBinaryRaw)-Find(",", ImageBinaryRaw)-1));

 

In the On Select of my button, I have the following where Test is the column I am storing the image data:

 

Patch('Work Items', LookUp('WorkItems', ID = HiddenIDLabel.Text), {Test: ImageBinary})

 

Can anyone tell me if what I am trying to do (upload image to Power Apps, then also view the image in Power Apps) is possible and if so, can you please guide me how I can accomplish this?

 

Thanks so much.

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @cmndflom ,

     

    Please set the OnSelect property to:

    Patch(
     'Work Items', 
     LookUp('WorkItems', ID = HiddenIDLabel.Text), 
     {Test: Substitute(JSON(UploadedImage2.Image,JSONFormat.IncludeBinaryData),"""","")}
    )

    and then check the problem is solved.

     

    In addition, I think this link will help you a lot:
    Save image in SharePoint List 

     

    Best Regards,

    Bof

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard