Thanks for the Reply Noah, but the issue is that the viewshed tasks are not even remotely similar.
In the sample I supply a point, a distance and get a polygon return which I can then add to the map.
In the viewshed task through our GPServer it is a different set of inputs depending on options I can change but it returns a raster as opposed to the polygons of the example.
I guess another way to ask is how was the GPurl in the example created, as that is exactly what I need, only with our own data.
If there is better place to ask this question as it extends outside the JavaScript sdk into the server side, let me know, but it is for use inside of JavaScript using the JavaScript sdk example code.
Thank you