Suppose that I have a simple buffer GP service and a several point featurelayers; how can I pass the chosen layer as an input parameter?
I have tried this
inputFeatures.features = map.getLayer("layer1").graphics
inputFeatures.fields = map.getLayer("layer1").fields
and many other ways but with no luck.
I would appreciate it if the solution was simple because I am not a professional