I have a toolbox that I turned into a GP tool. The users make a selection in a layer then the tool runs just on those records.
If I run the GP tool in a web app all works.
If I run the GP tool in Pro and give it a SDE layer it all works.
If I run the toolbox direct from the file system in Pro and give it a SDE or a web layer it all works.
But if I run the GP tool in Pro and give it a web layer (a ArcServer feature service) then it totally ignores the selection on the layer.
I found similar bugs but not this one.
Also a plug that the new Use selected features in the GP widget in WAB does not work either.
https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-widget-ignores-the-use-selected/m-p/1181280
Thanks