I need to get the primary key column of the Particular layer added in the Map. Usually 'FID' be found for a Shapefile Layer Source and OBJECTID found for a SDE source layer.
Is there any way to Identify which one is the primary key columns so that I can access those values.
I need to get this using ArcGIS JS API Version.3.3 and I am using ArcGIS Server 10.
Please help me