Checking if related layer is still on map

10-18-2020 04:06 AM
Esri Contributor

Hi, when a user add a map service with related table and then remove it, the related table doesn't get removed. So I am trying to clean up the related table. 

From the related table relationship, is it possible to determine if the related layer is still on the map? The unique relatedTableId is the layer id and how can I determine if it is still on the map. I am trying to avoid having to query the server for performance reason. (Alot of related tables to remove)

0 Kudos
0 Replies