I'm curious if anyone has a strategy to programmatically (search API, Python, etc.) get a list of all survey items in an organization (and hence all survey owners as well).
Solved! Go to Solution.
When you search your content, use item_type='form'
from arcgis import GIS
gis = GIS('your portal', 'user', 'password')
surveys = gis.content.search(
'',
item_type= 'form',
max_items= -1
)
for s in surveys:
print(f'{s.owner:16} | {s.id:32} | {s.title}')
When you search your content, use item_type='form'
from arcgis import GIS
gis = GIS('your portal', 'user', 'password')
surveys = gis.content.search(
'',
item_type= 'form',
max_items= -1
)
for s in surveys:
print(f'{s.owner:16} | {s.id:32} | {s.title}')