Forum Discussion
grant_jenkins
Jul 10, 2019Iron Contributor
View Formatting - JSON - Not able to get attachments in list
Hi, I'm using JSON to customize my list, and trying to get the values from my Attachments in the list, but not working as expected. In the following URL: https://docs.microsoft.com/en-us/shar...
kmktnn
Jul 23, 2019Iron Contributor
I'm also exploring attachements in lists. I find out that [$Attachments] is a boolean that displays 0 if there are no attachements and 1 if there are some.
- Beau CameronJul 23, 2019MVP
kmktnn Yup, the Attachments field returns "1" or "0". It will not be possible to get the length for the number of attachments.
- kmktnnJul 23, 2019Iron Contributor
Beau CameronDo you know if we could use the array AttachmentFiles ?
- Maruthi GaddeJul 26, 2019Iron Contributor
kmktnn While Column formatting may not work here you could consider Flow to run, get the attachments url and update it to a temporary column. .
see if this helps https://maruthigadde.com/2019/07/26/display-sharepoint-online-list-attachments-files-within-the-list-view-in-modern-ui/