arcpy.mp.CreateWebLayerSDDraft

3550
11
07-06-2016 03:53 PM
ChetEgbert1
New Contributor II

The documentation here: CreateWebLayerSDDraft—ArcPy | ArcGIS for Desktop does not show samples of using this command with the optional parameters.  I am having no luck using any parameters beyond service_type.  The parameters seam to be ignored.  Though the draft is created successfully it goes in the default ArcGIS Online user folder and no description, summary etc. values make it to the published service listing.  Has anybody got good working examples using optional parameters?

0 Kudos
11 Replies
DougEaton
New Contributor II

Molly,

Could you please share a link to the ESRI technical documentation for the tool WebLayerSharingDraft that you referred to?  I've done some searches and found similar tools, but not that particular one.

Thanks,

Doug

0 Kudos
MollyWatson1
Occasional Contributor

Hi Doug,


This article references that the CreateWebLayerSDDraft tool is now a legacy tool and has been replaced by arcpy.sharing module: CreateWebLayerSDDraft—ArcGIS Pro | Documentation 

This article gives a python example of how to use the arcpy.sharing module to share a feature service: FeatureSharingDraft—ArcGIS Pro | Documentation 

Good luck!

0 Kudos