I'm trying to export out a markup layer so I can consume it in ArcGIS Pro as a KML file. I get two error messages when I run my code:
How would I go about making my feature collection into a feature service? This is the code that returns the errors:
markup = gis.content.search(query='owner:mfoley10_myUTK', item_type='Feature Collection')[0]
output = markup.export('test', 'KML')
If I drill down far enough I can access a feature set, but feature sets don't have the property of exporting.
#this is a list of feature collections [<FeatureCollection>, <FeatureCollection>, <FeatureCollection>, <FeatureCollection>]
layers = markup.layers
fset1 = layers[0].layer.featureSet
fset2 = layers[0].layer.featureSet