It's my limited understanding that Contents layers have a layer ID that is accessible via ArcPy.
When developing Python tools, it would be helpful to be able to see the layer ID in the feature layer's Catalog properties window for debugging purposes.
Related:
@Bud
did this Copy Path command not help you?
@TanuHoque Yeah, I suppose that does the trick. Feel free to close.
Already offered via Copy Path command from Map ribbon tab
Thanks @Bud for trying it out and confirming that it works for you.
I tried this (and want to do this) but I don't get an id. I get something like "CIMPATH=map/sdg_sign2.json". Help!
@AdamGaudet
CIMPATH=map/sdg_sign2.json is the unique identifier of your layer.
Sign in to post, follow content, and more. New here? Register for free.