Hi All, When you used the Enable attachements toggle on the layer settings in AGOL:
does anyone know which field the relationship is assigned to? Object ID or Global ID perhaps? And does anyone know if there is a way to assign it to another field, such as an "Asset_ID" String field? I'm looking to ensure the Asset ID is included in the attachment title when exported the photos
Solved! Go to Solution.
Greetings @cat206
When one activates Enable Attachments on a hosted feature service layer, what I believe happens in the background is that a relationship table and a corresponding relationship class are created, so there is no way of modifying anything that I know of.
If you were to export the layer in question as an FGDB, download it, extract the FGDB from the zip file and then open the FGDB in ArcGIS Pro, you should be able to see both the related table and relationship class. Checking these further should show the details of the relationship and the fields used to set it up; something like the following:
Hope the above helps.
Greetings @cat206
When one activates Enable Attachments on a hosted feature service layer, what I believe happens in the background is that a relationship table and a corresponding relationship class are created, so there is no way of modifying anything that I know of.
If you were to export the layer in question as an FGDB, download it, extract the FGDB from the zip file and then open the FGDB in ArcGIS Pro, you should be able to see both the related table and relationship class. Checking these further should show the details of the relationship and the fields used to set it up; something like the following:
Hope the above helps.