AnsweredAssumed Answered

How to pass a FeatureLayer as an input parameter to GP service using JSAPI

Question asked by omar_elhadi on Jul 1, 2017
Latest reply on Jul 5, 2017 by ppapadopoulosmarathondata-gr-esridist

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