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 / Issue trying to Use Pa...
Power Apps
Answered

Issue trying to Use Patch() to upload an image

(0) ShareShare
ReportReport
Posted on by 27

Hey everyone,

 

I am new to power apps. I am currently playing around with it for work as we are wanting to build a solution that allows our servicemen to conduct a pump service and then automatically create a report. Currently I have a list setup in sharepoint and have Power Apps writing to the list other than the image. When a pump comes in, our servicemen will need to take a photo of it. I have a new job form(screen) in the app that has a add image component. When I try and use the patch function, I am getting an error "This type of argument "ArrivalPhoto" does not match the expected type "Record." Found Type Text". 

 

Below is a screenshot of the current app with the box descriptions. Service Job.jpg

 

This is the Save button patch function 

 

 

Patch('Maintenance Tasks', Defaults('Maintenance Tasks'),
{JobNumber: JobNumberInput.Text,
ArrivalDate: ArrivalDateInput.SelectedDate,
CustomerName: CustomerNameInput.Text,
CustomerAddress: CustomerAddressInput.Text,
CustomerContactName:CustomerContactInput.Text,
ArrivalPhoto: AddArrivalImageButton.Media,
PumpBrand: PumpBrandInput.Text,
PumpModel: PumpModelInput.Text,
PumpSerialNumber:PumpSerialNumberInput.Text
}
)

 

 

 

Can anyone shed any light on what I might be doing wrong. The column in sharepoint that it is pointing to is definitely a image column. 

 

Reagrds,

Sam

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    Hi @slogan ,

    You need to refer to the image in the Image control inside the AddMedia  control (change to your control name if necessary)

    UploadedPicture1.Image

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • slogan Profile Picture
    27 on at

    Hi Warre,

     

    Thank you for your reply. I have tried that and I get 

     

    Error.jpg

     

    I am not sure what I am doing wrong.

     

    Regards,

    Sam

  • WarrenBelz Profile Picture
    153,781 Most Valuable Professional on at

    @slogan ,

    Are you sure you are patching to an Image column - it works perfectly here (and does so on a number of production apps I have). Also try patching it on its own - the error may be another column.

  • slogan Profile Picture
    27 on at

    Hi Warren,

     

    I had seen that I had changed the column to a hyperlink or picture type not image when I was trying everything to get it going. It works now thank you.

     

    Regards,

    Sam

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 84

#2
WarrenBelz Profile Picture

WarrenBelz 79 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 40 Super User 2026 Season 1

Last 30 days Overall leaderboard