I am trying to code a widget that edits the symbology of an output map service.
I have a widget that works using a predefined path, so that part im ok with: e.g. mapservice/0
I need to somehow run a Geoprocessing Tool, then pass the jobid/mapservice/0 to my existing widget. (Or write a new widget, whatever is required!)
Possibly these threads are relevant but im not sure:
Using result map service in web applications—ArcMap | ArcGIS Desktop