Running a workflow from a hyperlink on a form
I have a workflow which presents the user with a DisplayForm that shows several pieces of info about a parcel, including some hyperlinks to an external site. I also have a second hyperlink on the form which needs to run a workflow that will gather some info and generate a report which is secondary to the main parcel info. I have the hyperlink set to:
http://MyServer/geocortex/essentials/REST/sites/MySite/workflows/MyWorkflow/run
The workflow it references only has an Alert in it right now, so I can make sure the hyperlink is working correctly. Eventually it would open a form or report with more data on it. When I run this, it goes to the REST endpoint of the workflow (see picture below), closes the viewer, and doesn't actually run the workflow as I was expecting.
What am I doing wrong here? I want the new workflow to open and run within the same viewer I am already in. I have seen examples of this and it seems pretty straightforward, but it's not working.

0
-
Try using command:
<a href="command:RunWorkflowWithArguments?workflowId=<workflowid>&<argumentname>=<argumentvalue>">Text that will appear as a hyperlink</a>
Or drop the with arguments part if not needed:
<a href="command:RunWorkflow?workflowId=<workflowid>>Text that will appear as a hyperlink</a>0 -
When I use that syntax I get a server error:
0 -
Can you provide what you used? Or, better yet, put it somewhere else (like in a feature description) on the site and see if it still fails?
Maybe you can't run a command through a hyperlink on a Display Form.0 -
The command for my version of the HTML viewer should be as below when attached to a feature description, and it works fine in the feature description. Attached to the Navigate URI property of a Hyperlink in a DisplayForm it gave me the same Server Error as above.
<a href="command:RunWorkflowById?Gas_Service_Cards">GSC</a>
I'm hopeful that someone from Geocortex can chime in here and give some guidance? I really need to be able to display the basic parcel information in the DisplayForm, and then let the user shoot off into another workflow from the results in the DisplayForm. So far I have not found any URL syntax to run in the Hyperlink control that would start a new workflow.0 -
Hi Tami,
I did some looking into this, but was not able to get the workflow to run from a hyperlink. One thing I managed was to get it to run from a button press inside the form. If this sounds like something that would work for you, please check out my example here:
http://data.latitudegeo.com/support/danny/Reset_View_Workflow.xaml
If not, please open a support case, so we can help you look into this!
Thanks,
Danny0 -
Hi Danny, is is possible for you to provide the example in xaml format as i cannot seem to view that link you provided? I am trying to get a simmilar process working where we would like to run a workflow from a hyperlink or click in a form but having the same issues as Tami.
Regards
Cam0 -
Hi Cam,
I just tried the link, and it worked for me. If you send me an email (dbriggs@latitudegeo.com), I'd be happy to send the workflow to you directly if you are having trouble downloading it.
Cheers!
Danny0 -
Thanks for that! Yeah thought the raw XML would be easier
Cheers!
Cam,0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
8 kommentarer