Attachments arcade function not working with enterprise services

529
2
10-26-2022 04:07 PM
Labels (2)
ZorbaConlen1
Occasional Contributor III

Hi. I'm finding that the 'Attachments' arcade function does not work with enterprise map or feature services (that is on prem ArcGIS server service). AGOL Map viewer - the popup profile. It does seem to work for a hosted feature service. Is this expected or is there a bug?

As a simple test, I have the following arcade expression

 

 

if (Count(Attachments($feature)) > 0) {
    return 'ID: ' + Text(First(Attachments($feature)).ID);
} else {
    return 'No attachments';
}

 

 

Here is what I'm seeing in the popup

ZorbaConlen1_2-1666825510718.png

Clearly, there are 2 attachments for this feature, so it should return the id of the first one based on my expression.

Anyone run into this?

Thanks

0 Kudos
2 Replies
JohnWatson_EBA
Occasional Contributor

@DavidNyenhuis1 @ZoeyZhang is the attachments function not available in Enterprise?

0 Kudos
DavidNyenhuis1
Esri Contributor

Hi John,

I'm not familiar with the specifics on Arcade functions in Enterprise for the popup profile. But, in testing it, it appears not to be listed. 

DavidNyenhuis1_0-1683838403686.png