Hi all, I'm trying to use ArcGIS Notebooks to view dependencies between items for some cleaning up in ArcGIS Online (not Enterprise).
I found the to_dependencies property in the API reference: https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis.ItemDependency.to_dependencies, but it doesn't seem to return anything.
from arcgis.gis import GIS
import pandas as pd
gis = GIS("home")
item = gis.content.get('<itemid goes in here>')
# Get dependencies
dependencies = item.dependencies
print(dependencies)
print(dependencies.properties)
print(dependencies.to_dependencies)
However, passing in the ID of a hosted feature layer that I know is used in multiple web maps and apps returns nothing:
<Dependencies for <item id is displayed here>>
{
"items": []
}
[]If I pass in the ID of a Web Map that has multiple layers within it, I also get no dependencies:
<Dependencies for <item id is displayed here>>
{
"items": []
}
[]I've seen in the documentation that the dependent_upon and dependent_to methods only work in ArcGIS Enterprise, but there is nothing in the documentation that says that the to_dependencies doesn't work in ArcGIS Online.
What am I missing here? Is to_dependencies deprecated?