Select to view content in your preferred language

How to build REST attachment URL using Arcade

97
0
2 weeks ago
Labels (1)
TD1
by
Occasional Contributor

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)

0 Kudos
0 Replies