Skip to content

SharePoint

PATCH A SharePoint Image Column In Power Apps

PATCH A SharePoint Image Column In Power Apps Goal Upload an image called Business Cat to the AnimalImages field. Input Animal Pictures (SharePoint List) ID ...

Matthew Devaney
Published
Reading time
1 min read

Before you start

Is this guide for you?

Best entry point
SharePoint
Time investment
1 min read

Imported reference from Matthew Devaney's blog for learning purposes. Original: https://www.matthewdevaney.com/power-apps-patch-function-examples-for-every-sharepoint-column-type/patch-a-sharepoint-image-column-in-power-apps/. Author: Matthew Devaney.

PATCH A SharePoint Image Column In Power Apps Goal

Upload an image called Business Cat to the AnimalImages field. Input Animal Pictures (SharePoint List) ID Description AnimalImages 1 A picture of a cat Patch Function Code Patch(

'Travel Expenses' , LookUp( 'Travel Expenses' , ID= 1 ), { AnimalImages : 'Business-Cat' } ) Code language: JavaScript ( javascript )

Upload a file called mole-picture.jpg to the AnimalImages field. Output Animal Pictures (SharePoint List) ID Description AnimalImages 1 A picture of a cat Scenario #1: Add Picture

Patch a value found in an Add Picture control to an Image field. Patch Function Code Patch(

'Travel Expenses' , LookUp( 'Travel Expenses' , ID= 1 ), { AnimalImage : AddMediaButton1.Media } ) Code language: JavaScript ( javascript ) Scenario #2: Pen Input

Patch a signature found in a Pen Input control to an Image field. Patch Function Code Patch(

'Travel Expenses' , LookUp( 'Travel Expenses' , ID= 1 ), { AnimalImage : PenInput1.Image } ) Code language: JavaScript ( javascript ) Scenario #3: Camera

Patch a photo found in a Camera control to an Image field. Patch Function Code Patch(

'Travel Expenses' , LookUp( 'Travel Expenses' , ID= 1 ), { AnimalImage : Camera1.Photo } ) Code language: JavaScript ( javascript )

* Note: the user must first click on the Camera control to load the Photo property with an image. Did You Enjoy This Article? 😺

Subscribe to get new Copilot Studio articles sent to your inbox each week for FREE Enter your email address Sign Me Up

Share this

Tagged

Patch · SharePoint

Have a Microsoft 365 topic idea?

Share article suggestions, community session ideas, corrections, or real-world scenarios for future nextM365 learning notes.

Suggest a topic

Keep learning Microsoft 365

Explore more practical guides for SharePoint, Power Platform, Copilot Studio, migration, automation, governance, and security.

Continue learning

Next action

What to do next

Browse all tutorials →