My feature class consists of several fields with name as Objectid,Objectid_1,objectid_2,objectid_12 due to spatialjoin and exporting..
I require only the recent object Id and delete all other fields..How to find and execute in arcpy!!!!
Solved! Go to Solution.
You could guess OBJECTID, and likely be correct, but you can find out definitively by using the ArcPy Describe object:
>>> table = # table or feature class
>>> desc = arcpy.Describe(table)
>>> desc.OIDFieldName
u'OBJECTID'
>>>
You could guess OBJECTID, and likely be correct, but you can find out definitively by using the ArcPy Describe object:
>>> table = # table or feature class
>>> desc = arcpy.Describe(table)
>>> desc.OIDFieldName
u'OBJECTID'
>>>