0

In SP Online lists (modern experience), I've added a Image formatting and constraints for publishing column to the list (via site columns), it converted my modern list into classic. Also I am not able to read data from it. I always get

<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>-1, Microsoft.SharePoint.SPException</m:code>
<m:message xml:lang="en-US">The field or property 'Image' does not exist.</m:message>
</m:error>

Does anyone know how to do it?

1

Please see the thread in Q&A forum, I just answered this question:

How to read from the Image column in sharepoint Online lists using RestAPI?

This is the field details in my side, named "MyImage":

enter image description here

Use FieldAsHtml in endpoint like this:

/_api/web/lists/getbyTitle('MyList3')/items(3)/FieldValuesAsHtml

enter image description here

Reference:

Sharepoint 2013 REST API limitations with site columns

| improve this answer | |
  • Thanks. Just wondering what is the original column name for that field? Is it called exactly "MyImage"? And when I tried, the internal column name of mine was "Image", but when I did ?$select=Image, it said the column doesn't exist. Also I noticed that by attaching this type of column to the list, it makes the list a classic mode which may not be desirable. – omega Sep 14 at 4:30
  • Also PnPjs has a method to also read this column pnp.github.io/pnpjs/sp/items/#retrieving-publishingpageimage I never tested it though. – omega Sep 14 at 4:32
  • My Column name is "MyImage", I will post a capture about the field details in the answer above. Yes, it shoule be, use FieldValuesAsText, it should get the real value for publishing image field. You can also accept as answer in Q&A forum, if it's helpful to this question :-) Thank you :-) – Jerry_MSFT Sep 14 at 4:41
  • Just wondering, do you know if Microsoft plans to fix this in the near future and let there be a image picker column in modern mode. Seems like this has been an issue since 2017 according to that like above. – omega Sep 14 at 4:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.