InitiationType Element (Workflow)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Specifies which events are enabled, at workflow association, to initiate the workflow.
Definition
<InitiationType>
</InitiationType>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
None
Child elements
None
Parent elements
Occurrences
Minimum: 0 Maximum: 1 |
Remarks
The InitiationType element takes any of the following values:
Manual Users can manually initiate the workflow.
OnNewItem The workflow is initiated automatically when a user creates a new item.
OnItemUpdate The workflow is initiated automatically when a user updates an item, including updating item metadata.
OnMajorCheckin The workflow initiates when the user attempts to approve publishing a major version of an item.
Specify the initiation types as a character-delimited string, using ";#"
as the delimiting characters.
If you do not specify an InitiationType element, SharePoint Foundation treats the workflow as if the Manual, OnNewItem, and OnItemUpdate values have been specified.
Example
The following example specifies that the workflow can be initiated manually, and is initiated automatically when a user creates an item, updates an item, or checks in a major version of an item.
<InitiationType>Manual;#OnNewItem;#OnItemUpdate;#OnMajorCheckIn</InitiationType>