Forum Discussion
Image column format,
- Feb 01, 2024
lidordayan src attribute should be something like this:
"src": "=if([$Image.serverRelativeUrl],[$Image.serverRelativeUrl],@currentWeb+'/Lists/**YOUR-LIST-NAME**/Attachments/'+[$ID]+'/'+[$Image.fileName])"
Where Image is the internal name of your SharePoint image column. Also, make sure to edit the above JSON and replace the **YOUR-LIST-NAME** placeholder with your list’s name, as it appears in the list URL (including special characters).
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
With the recent updates to SharePoint Online and Microsoft Lists, if the attachments option is enabled in your list, images will be stored in same SharePoint list instead of storing in site assets library - and it does not return the correct value in "serverRelativeUrl" attribute.
Check more details at: SharePoint Online: All you need to know about New Image column type
You will have to adjust your src attribute value accordingly. Check the JSON given in this article which will give you some ideas about it: Download Image from SharePoint Image column using JSON formatting
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.