HOW TO
In ArcGIS Online, the file type and format of an attachment in a record can be viewed in a new field of a hosted feature service. This is useful to enhance the organization, accessibility, and analysis of information.
This article provides the workflow to view the attachment type in the Attachments field of a record using ArcGIS Arcade in ArcGIS Online.
if(count(Attachments($feature))!= 0)
{
return Attachments($feature)[0]["contenttype"]
}
else
{
return null
}
The attachment types of the record are displayed in the field, as shown in the image below.
Get help from ArcGIS experts
Download the Esri Support App