This project is read-only.

Set XML Action

Select an XML Node and set the inner or outer XML.

1. Add “Set XML” Action to a SharePoint Designer 2010 Workflow

image

2. Configure the Action

image

XML: The source XML

XPath: The XPath expression to select the target node

Select: What you want to set (Inner or outer XML)

Value: The value you want set the target node to (Text or XML).

3. Example

Updating an Infopath XML-Document

image

Query XML-Document reads the whole Infopath document (XPath = “/”) and stores the XML in the variable “Result”. Then we select the node “Field1” (XPath = “//*[local-name()='Field1']”), set it to the title of the current list item and store the resulting XML in the variable “Result1”. Last we update the Infopath document with the XML in “Result1”.

Last edited Jan 8, 2011 at 2:04 PM by cglessner, version 3

Comments

No comments yet.