How to add map/feature service URL as input parameter for Python Geoprocessing Service.

651
0
07-26-2021 12:52 PM
JamesMadden1
Occasional Contributor

I've created a python toolbox in ArcGIS Pro 2.8 and I published the toolbox as a geoprocessing service on our hosting server.  One of the parameters I have defined is for a GPFeatureLayer (see below).  I'm able to select the layer in ArcGIS Pro but I get prompted to add the json representation of the layer from ArcGIS Server.  I'd like to reference the feature layer by service URL preferably or by an sde connection as a fallback.  Is there anyway to pass a service url as the value for the input?

 

param3 = arcpy.Parameter(
displayName="FeatureLayer",
name="FeatureLayer",
datatype="GPFeatureLayer",
parameterType="Required",
direction="Input")

Tags (1)
0 Kudos
0 Replies