I'm trying to follow the instructions in Show Attachments in Pop-ups with Arcade Expressions
I want to show the first attachment in a popup in ArcGIS Online and to do that I need to obtain the first attachment ID using this Arcade expression:
The error I get is this:
Execution Error:Runtime Error: Cannot call member method on null. ID
My attachments are associated with a layer that I cannot share publicly. Unlike the video there is a very long Token ID that runs after the attachments ID. Here's a small section of what I'm looking at:
How do I write an Arcade expression to obtain the first Attachment ID on a private feature layer?