Create an XML List Type XML Variable
- Last UpdatedJun 25, 2024
- 2 minute read
XML Variable of List type can be configured in the Start activity through the XML Variable property. XML Variable of List type can be mapped to any list schema i.e. either to lists provided out of the box or to lists created dynamically using create list option, to perform retrieval of data of a list item.
To create an XML List type XML Variable
-
If you select Design the Workflow now option from the Workflow option screen while creating a workflow for the list.
-
Right click the Start and select Activity Properties from the options.
-
Click the More button in the XMLVariables field.
-
Click New Variable to add a new variable.
-
Type a variable name in the Variable Name field.
-
Select type as XML List from the Type drop-down list.
-
Type the List name in the Select List field or click the List button to select the list.
-
The XML schema displayed in tree-view are the XML nodes that are mapped to the controls while creating the list. Also you can see the System Internal nodes that are created automatically for internal use. This will help you to save the list item in another version as draft or published and help to create a folder.
-
Select the scope from the Choose the ListItem to work on section. The available options are:
-
Current: This will help to work with the list item that initiated the workflow.
-
New: The XML variable will be pointed to add a new list item to the list.
-
-
After entering all the required data, click Save Variable. A message is displayed saying 'Variable Updated'. Close the window. Now you have created an XML List type XML Variable.
Note:
- Later you can modify the variable. Click the Refresh Schema to reload the changes made to the list.
- After refreshing the schema, click Save Variable to save the changes.