I’m building a custom app and need to show an attachment’s thumbnail image as part of an info card.
When I enter <div>{record.getCellValue("Attachment field")}</div>
to view the cell values, I get the following error:
Error: Objects are not valid as a React child (found: object with keys {linkedRecordId, value}). If you meant to render a collection of children, use an array instead.
I’ve tried adding record.getCellValue("Attachment field").fields.url
but it comes up as undefined.
I’ve also tried {record.map(value => {value.url})}
to try access the object’s properties but map is not a function of record.
How can I access the thumbnail’s URL?