Select to view content in your preferred language

Is it possible to get item's Portal ID by knowing it's URL?

345
0
06-15-2023 07:13 AM
Labels (1)
Woodpeckerus
New Contributor III

I am working on an app within ArcGIS Online where a user will add reference layer to the map, based on it's URL. 

Knowing the item's URL, is it possible to get it's Portal Item ID? 

Ultimately, I want the app to pan to the reference layer when it gets loaded to the map.

As the reference layer is not really part of the map, I need to access it through FeatureSetByPortalItem. The problem is, I don't know what the Portal item ID will be, but do know what it's URL is. 

 

Tags (2)
0 Kudos
0 Replies