MetaData Element (Workflow)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Contains any additional, custom metadata elements that are valid XML for the workflow.


<MetaData>
</Metadata>

Attribute

Description

None

Minimum: 0

Maximum: 1

SharePoint Foundation uses the following elements to define additional workflow information in the MetaData element:

  • InitiationType

  • Modification_GUID_Name

  • StatusPageUrl

  • ExtendedStatusColumnValues

Following is an example of a Metadata element containing information on how the workflow can be initiated, the name of a workflow modification contained in the workflow, and custom status column values.

  <MetaData>
    <InitiationType>Manual;#OnNewItem;#OnItemUpdate;#OnMajorCheckIn</InitiationType>
    <Modification_af71f77b-e6c8-483a-acbf-30b4a84bd209_Name>myWorkflowModification</Modification_af71f77b-e6c8-483a-acbf-30b4a84bd209_Name>
    <Modification_Format><my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:my="http://schemas.adventureworks.com/workflows/myXSD">{0}</my:myFields></Modification_Format>
    <StatusPageUrl>_layouts/myWrkStat.aspx</StatusPageUrl>
    <ExtendedStatusColumnValues>
      <StatusColumnValue>Canceled</StatusColumnValue>
      <StatusColumnValue>Approved</StatusColumnValue>
      <StatusColumnValue>Rejected</StatusColumnValue>
    </ExtendedStatusColumnValues>  
  </MetaData>
Show: