Skip Ribbon Commands
Skip to main content
SharePoint

Read Values from XML in an XML Data Item using XPath Queries

To use XPath to populate data items with values from XML in an XML data item, complete the following steps:
  1. Check out and open the process you want to edit.

  2. In the Toolbox pane, click Document. A list of activities is displayed.

  3. Double-click or drag the Read XML Document activity into the process.

  4. Link the activity appropriately with other activities.

  5. Right-click the Read XML Document activity. A shortcut menu is displayed.

  6. Select View Properties. The Read XML Document window is displayed.

    Note:
    You can also open or view the activity properties by double-clicking the activity in the process.


  7. Click the Input Source tab. The corresponding screen is displayed.

  8. Select the Input XML from Data Item option. The corresponding field is enabled.

  9. In the corresponding field, select the data item containing XML.

    Note:
    The data item you select should be a data item with Text data item with XML as the format type.
     
          
  10. Click the Data Mappings tab. The corresponding screen is displayed.

    Note:
    Select the Select Collection Data Item for Mapping and Multiple item Context check box to select and map values to a collection data item.


  11. In the Data Item field, click the Data Item editor. A drop-down list is displayed.

  12. Select the solution or process data item to which you want to map XML values.
     
    Note:
    Calculation data items are read-only. You cannot edit this type of data item.

      
  13. In the XPath field, select the appropriate input field editor and set the field value to the XML code, required to read the data in the XML document.

    Note:
    You can add more mappings by clicking the plus sign (+). Use the minus sign (-) to remove a mapping.


  14. Click OK. You configured the activity to use XPath to populate data items with values from XML in a data item value.
Related Topics
Read Values from an XML Document using XPath Queries

Source
BPM Designer Topics > Overview of Activities and Activity Topics > Document Activities > Read XML Document
Last modified at 7/31/2020 11:52 AM