Simple External Form Process
- Updated on 07 Aug 2014
- 3 minutes to read
External Form step was designed in Decisions to interact with forms using html methods or service calls. External Form step could be found in the Flow Designer in the ToolBox under Forms[Interaction] category. This method can also pass data into external form and retrieve data from the external form.
Note: This will not work on in cross domain environment. For example if Portal Base URL in format [machine name]/decisions/Primary and we try to call Form on localhost .
- External Form: Flows, Rules, Forms, and Reports > Forms [Interaction]
Below is a screenshot of the finished External Form Process .
External Form used in this tutorial can be downloaded here: ExternalFormTest .
Extract the files to a location on the machine.
Open ISS manager. Expand [Desktop Name] > Sites > Default Web Service. Name the Alias, then select the physical path (this is where the files were extracted to). Select OK , and begin the example.
Configure the Steps:
From the Flow Designer start-up window under Flows, Rules, Forms and Reports > Forms[Interaction] category select External Form step. Select Add.
At least one outcome is needed for this step. Locate Service Outcomes box under Service Definition and select the Add New link.
In the resulting dialog define the Outcome . For this example no parameters are required. Simply give the outcome a name and select Ok to save and close this dialog. This outcome name is important because the form needs to know the outcome path name.
This step requires URL of the form that it is going to communicate with. Input the form's URL address into Inputs > URL > Value field.
Connect the Pathways and Debug the Flow:
To test the flow select Debug from the top panel of the Flow Designer.
We can see that the external form opens in a new window.
Next, provide the outcome path in a specially designed text box and submit the form. This Outcome Path should match the one that was provided for the Outcome Path from the External Form step in the Flow.
When the form is submitted another function is triggered in the external form that builds a New URL and redirects us to this URL to resume the Flow and send all data to it from the form. This function is implemented like following:
After the form is submitted the flow continues and finishes with no error.
Check the Input/Output Data from the External form.