Create an XML List of Type XML Variable
- Last UpdatedJun 10, 2024
- 2 minute read
XML Variable of List type can be configured in the Start activity through the XML Variable property. XMLVariable 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 the create list option, to perform retrieval of data of a list item.
To create an XML List type XML Variable
-
Select the Design the Workflow now option from the Workflow Options screen while creating a workflow for the list.
The Process Designer screen appears.
-
Right-click the Start, and then select Activity Properties from the options. The Activity Properties screen appears.
-
Click the edit icon in the XMLVariables field. The XmlVariables screen is displayed
-
Click New Variable to add a new variable.
-
Type a variable name in the Variable Name field.
-
Select XML List from the Type drop-down list.
-
Type the List name in the Select List field or click the
icon to select the list.
-
The XML schema displayed in the 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 save the list item in another version as draft or published and help to create 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: You can modify the variable later. Click the Refresh Schema to reload the changes made to the list. After refreshing the schema, click Save Variable to save the changes.