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

RS 21 Reputation points
2020-09-11T16:58:26.17+00:00

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?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
6,085 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jerryzy 10,301 Reputation points
    2020-09-14T04:02:33.75+00:00

    Hi @RS ,

    For "Image formatting and constraints for publishing column ", try the Rest API like this:

    https://tenant.sharepoint.com/sites/sitename/_api/web/lists/getbyTitle('MyList3')/items(3)/FieldValuesAsHtml

    In my side, the column name is "MyImage" and this is the response:

    24314-snipaste-2020-09-14-11-41-27.png

    Reference:

    Sharepoint 2013 REST API limitations with site columns


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments