URL Parameters to Site Only (or Workflow REST) vs Viewer
We have a workflow that we are altering to run from a simple react.js HTML5 page. All parameters are supplied from that web page. The Workflow technically does not need to open the "Viewer". All the processes are server side and run against ArcServer rest end points.
The result is just a PDF file which I am sure we can have present itself back into the website vs as a Module window in the viewer.
As a result can we just run this against a Site? Or against the Workflow REST endpoint itself? Anything to bypass the viewer loading will create a way more amazing UX/UI.
0
-
Hi Dylan,
We got to chat about this earlier, but I'm going to leave a note for anyone else that runs into this thread later on.
Yes, it is possible to run a workflow (as long as it has no client-side activities) using a web request to its REST endpoint. If you use "out" direction aruguments on the workflow, you can get it to pass those values back in the request's response as well. The best way to learn how to format the request is to visit the workflow's REST endpoint in a browser, test it out using the json output format, and examine the request using your brower tools network tab.0 -
Hey Amanda,
I am trying to accomplish a similar thing here except that my workflow has inputs supplied from a textbox on a html page. I am struggling with the JS function to send a wed request to run this workflow with input arguments through the REST Endpoint. Do you know of a simple function that would accomplish this?0
Please sign in to leave a comment.
Comments
2 comments