Feature Layer Collection items returned from Group.Content() not containing Layers or Tables

206
1
05-16-2018 09:02 AM
MitchellOttesen1
New Contributor III

I'm a Level 2 Admin, and a member of the Group I'm trying to capture content from. Trying to capture layers and tables from the Feature Layers shared to the Group.

import arcgis

gis = arcgis.gis.GIS(<my url>, <my username>, <my password>)

groups = gis.groups.search(query='title:<my group title>')

group = groups[0]

content = group.content()

Feature Layer Collection items inside 'content' have 'None' as the Layers and Tables properties. If I go to those Feature Services in the WebGIS, they definitely have at least one of each.

0 Kudos
1 Reply
MitchellOttesen1
New Contributor III

I figured it out, you have to instantiate the Feature Layer Collection with the fromitem method. Search methods return 'item' objects.

0 Kudos