Invoke Form - Output Instance XML
- Last UpdatedJul 01, 2024
- 3 minute read
This property is used to get the data from the Forms which you have edited from the Work items page. Depending on the type of XML variable selected in this property, the XML data is stored, provided the output instance XML has the same schema of the Form.
For instance:
-
If the Output Instance XML is of type XML List , then the XML data received from the Form is stored in the respective List depending on the list item scope defined for the XML Variable.
-
The list item scope should be New , if a new list item has to be added with the Form data in list.
-
The list item scope should be Current, if the list item that initiated the workflow has to be updated.
-
The list item scope should be List Query, if a specific list item has to be updated in the list.
-
-
If the Output Instance XML is of type XML Document, then the XML data received is stored in the workflow itself.
Scenario: Display an existing list item data using Invoke Form and then store the updated Form data in a different list (destination list): An intermediate XML Variable is required for such scenarios. Use an Update Variable activity before the Invoke Form activity, to assign the Source list XML values to the Intermediate XML Variable, Then use this intermediate XML variable as Input Instance XML and destination XML List as Output Instance XML.
Steps to create Output Instance XML variable
-
Select an existing output XML variable from the Output Instance XML drop-down list, Or Click the edit button corresponding to Create a Output Instance XML variable.
The following screen will be displayed.

Create a Output Instance XML Variable
-
Select a form from the Form Name drop-down list.
-
Select a version from the Version drop-down list.

Note: By default, the No option is selected and the screen as shown in the image above is displayed. If the Yes option is selected, the following screen is displayed. The difference, as you can notice, is that the No option allows you to select a form, whereas the Yes option allows you to select a list.

Note: On this screen, select a list from the List drop-down.
-
Enter a name for the output XML variable in the XMLVariable Name field.
-
Enter a description for the output XML variable in the XMLVariable Description field.
-
Click Submit.
-
The output XML variable is created. The created output XML variable will be available in Start activity.