How to read from the Image column in sharepoint Online lists using RestAPI?
-
16-02-2021 - |
Question
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?
Solution
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":
Use FieldAsHtml in endpoint like this:
/_api/web/lists/getbyTitle('MyList3')/items(3)/FieldValuesAsHtml
Reference:
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange