How to get the created from "id" of a feature service view?

12-12-2021 05:20 AM
Occasional Contributor III


I want to write a script that compares to web maps. One web maps consists of feature service, the other of the views of the feature services of map one.

How can I  get the related id to the feature service of a view with using the python api?

Thanks a lot


0 Kudos
1 Reply
MVP Esteemed Contributor

Using the layers property can get you a list of layers in a given map. Simply iterate over that list to view the layers, or get the specific layer you're looking for by searching each layer's keys/values for the title or URL. Once you have your layer, itemID is simply another property.

"url":"some URL",
"title":"2018 Contours",


- Josh Carlson
Kendall County GIS
0 Kudos