Can someone enlighten me as to the inputs that WAB creates when using shapes or a layer as an input into a GP tool? I have published a custom GP service and am trying to use it within a WebApp. Normally the script works by taking in a feature layer (with selection) or feature set (both work). What should the script be set to to read either a drawn shape, or a selection of features in WAB?
Thanks in advance,
In your python script, you can create a variable and set the value to arcpy.GetParameterAsText for your input parameters. So for example, if the feature layer is the first input parameter and feature set is the second input parameter, you can do something like feature_Layer = arcpy.GetParameterAsText(0) and feature_Set = arcpy.GetParameterAsText(1).
In the python toolbox, set the parameter type for feature_Layer to Feature layer and the parameter type for feature_Set to Feature Set and WAB should be able to get your input as an input feature layer or drawn features on the map.