Been playing around with Arcade to build a REST URL which points to the photo attachments on the record.
I have 1,400 records with photo attachments (most have more than one attachment) and this is what I have so far but it's pulling the attachment ID and how do I handle separate URL links for each attachment on that record if there are multiple?
var Part1 = "https://services.arcgis.com/Enter ID/arcgis/rest/services/ Enter Feature service/FeatureServer/0/"
var ObjectID = $feature.OBJECTID
var Part2 = "/attachments/"
var AttachID = $feature.AttachID
When($feature.CountAttachments > 0, Part1 + ObjectID + Part2 + AttachID, null)