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 / Patch an Image in Powe...
Power Apps
Answered

Patch an Image in Power Apps to Sharepoint list

(0) ShareShare
ReportReport
Posted on by 17
Hi there
I am trying to patch a sharepoint list called PMO_RPT_01 with an image from an Add Picture input box, called AddMediaButton1, based on a selection from a gallery called ProjectSelectGallery, to a sharepoint list column called Project_Key_Risks. I have a button with the following formula : 
 
Patch(PMO_RPT_01, ProjectSelectGallery.Selected,{Project_Key_Risks: AddMediaButton1.Media})
 
This returns an error "The type of this argument 'Project_Key_Risks' does not match the expected type 'Record'. Found type 'Text'.
 
I have checked the sharepoint list column is set to image type.
 
Does anybody have any ideas?
 
Kind regards
A
Categories:
  • Verified answer
    Gochix Profile Picture
    1,937 Moderator on at

    @draxicle1 ,

     

    First of all, you haven't specified if this is a new list entry or if you want to update the existing one.

    If this is new entry:

    Patch(PMO_RPT_01,Defaults(PMO_RPT_01),{Project_Key_Risks:UploadedImage1.Image})

     If this is to update existing entry:

    Patch(PMO_RPT_01,LookUp(PMO_RPT_01,ID = ThisItem.ID),{Project_Key_Risks:UploadedImage1.Image})


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • Gochix Profile Picture
    1,937 Moderator on at

     

    .

     

  • draxicle1 Profile Picture
    17 on at

    Hi there @Gochix .

     

    Thanks for this. This could be a problem then, as initially it could be a new entry, and then afterwards there may be a requirement to update that picture, further down the line.

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