Hi all,
I'm running into an error when using a Field Maps link.
For context I'm using ArcGIS Online in the Asia-Pacific region. I've tested this on both Apple and Android using the latest versions of Field Maps.
Here is an example Arcade expression:
// Get feature GlobalID
var featureGlobalID = Replace(Replace($feature.GlobalID, '{', ''), '}', '')
// Set base url
// Set parameters
var params = {
referenceContext: 'showFeature',
featureSourceURL: '<LAYER_URL>',
featureID: featureGlobalID
}
// Return show feature URL
return url + UrlEncode(params)
Noting I've removed the actual layer URL. I've tried these links in the context of an Integration task action as well as in a popup. I've also tried to use other layers in the field map as well.
In the troubleshooting logs I can see that it has successfully parsed the app link with the showFeature context and source (source URL) and id (feature GlobalID).
However, I consistently get a log immediately after of [APPINTEGRATION]: Layer not found: <LAYER_URL>. The link doesn't do anything as a result.
This is weird because for other app links with referenceContext=addFeature or updateFeature or addRelatedFeature these have all worked with the same layer URL. In that code example if I change the referenceContext: 'updateFeature' it works straight away.
Any help would be greatly appreciated.
Cheers!