I'd like to build a Geoprocessing service to generate a report for a Survey123 record, to be used in an Experience Builder Geoprocessing/Analysis widget. The feature report widget is not viable at this time for reasons listed here:
I have the basis of the tool built and can successfully generate a report.
Where I'm running into problems sending the selected features to the tool (and also making sure that there is a selection).
If I were doing it in Pro, I'd do something like "aprx.activeMap, listLayers("layerIcareabout")[0], getselectionSet()".
How can do I feed selected layers to the tool in AGOL? I always want a particular feature service used but I want it to be map-aware so I'm not trying to generate a report for every record.
Thanks!