Schema XML Binding

In InfoPath or ASP.NET based process templates, you can access all or part of the values stored in the schema of the form to determine the routing of your process, or to display information in an email notification. To access the InfoPath XML Schema within an email template, type ${ and select <XML Schema>. If outside an email template, such as in a Multiple Condition Activity, you can simply define the columns within the Data Binding field. You can also construct the process attribute syntax manually to access a specific section or element of the XML. This is accomplished by specifying an XPath expression ${XPathExpression} (in place of a custom attribute name). Below are a few examples that can be used:

In InfoPath or ASP.NET based process instances, you can access all or part of the form's XML. Using the special $/ attribute contains the XML of the entire form. By specifying an XPath expression $/{XPathExpression} (in place of a custom attribute name), you can access a specific section or element of the XML e.g.: $/*, $//*, $/exp:expenseReport, ${/exp:expenseReport/exp:startDate}.

To access an InfoPath Form's XML Schema or SPDoc metadata:

  1. Type ${ in the body of the email template to bring up the list of available process attributes.
  2. Select <XML Schema> from the list. The InfoPath DataSource window appears.