web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / BUG: Last update made ...
Power Apps
Answered

BUG: Last update made image column in sharepoint list read-only and broke Patch() function in my app

(0) ShareShare
ReportReport
Posted on by 25

In my PowerApp, I use a Patch() to update a SharePoint list image column (formatted as picture) with the last submitted attachment URL. This was working until recently. Now, when I submit my form (and the patch executes onSuccess), I receive the error that this column is read-only. This issue broke my patch function, so my SP list now contains a ton of rows with missing data from the last week (all prior form submissions contain patched info).

 

My Patch() code is below. What happened? Any advise on how to fix this?

 

 

Patch(list, 
 {ID: form.LastSubmit.ID},
 {Image_link: First(form.LastSubmit.Attachments).AbsoluteUri}
);

 

Categories:
I have the same question (0)
  • v-yutliu-msft Profile Picture
    on at

    Hi @bigFin ,

    Do you mean that you can not update Image_link column?

    Could you tell me what is your Image_link column data type?

    Please notice that picture data type is read only in powerapps.

    You need to set Image_link to hyperlink data type.

    I've made a similar test but not met any problem.

    Here's my test:

    My form's OnSuccess:

    Patch(list3, 
     {ID: Form1.LastSubmit.ID},
     {'Link to item(form)': First(Form1.LastSubmit.Attachments).AbsoluteUri}
    )

    'Link to item(form)' field is my hyperlink field:

    493.PNG

     

    And I could update successfully to this field.

     

    Best regards,

  • bigFin Profile Picture
    25 on at

    The image_link column is formatted as a picture, not a hyperlink. I prefer this as the image_link column displays a thumbnail on the SharePoint list.

     

    Can you suggest a workaround for this functionality?

     

    I see that I cannot make the image column as a calculated field. Maybe I can make a flow to update an image (picture formatted) column with the URL of the first item from the attachment field?

  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    Hi @bigFin ,

    1/Picture type is read-only in powerapps and flow. This is connector's limit.

    I'm afraid there's no workaround about this.

    Please refer this doc to see sharepoint data type in powerapps:

    You could only update Picture type in sharepoint list manually.

    2/Maybe you could consider create a sharepoint custom form.

    You could insert an Image control in this form, set this Image conrol's image property to :

    ThisItem.hydlinkcolumn

    Then the image control could display the iamge.

     

     

     

    Best reagrds,

  • bigFin Profile Picture
    25 on at

    This is a frustrating limitation, especially since this approach has been working for me for several months without any issues. My team really likes the thumbnails as it helps them quickly identify items in the list. It's a shame that my only available option is to rebuild my SharePoint list views as a custom form to achieve what was previously working natively.

  • nikki87 Profile Picture
    3 on at

    this is super old but i just encountered this and wanted to share. @v-yutliu-msft is right - Patch() and therefore SubmitForm() will not work if you're trying to use a SP column with datatype hyperlink - picture, and it will only work if its datatype is hyperlink - hyperlink. however, it's still possible to brute force your SP list into showing the hyperlink - hyperlink column as a thumbnail image using custom JSON formatting

    Paste this into the JSON column formatting for your hyperlink - hyperlink column:

    {
    	"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
    	"elmType": "a",
    	"attributes": {
    		"href": "@currentField",
    		"target": "_blank"
    	},
    	"children": [{
    		"elmType": "img",
    		"style": {
    			"width": "100px"
    		},
    		"attributes": {
    			"src": "@currentField"
    		}
    	}]
    }

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard