Export (0) Print
Expand All

InitiationType Element (Workflow)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Specifies which events are enabled, at workflow association, to initiate the workflow.


<InitiationType>
</InitiationType>

Attribute

Description

None

Minimum: 0

Maximum: 1

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.

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>
Show:
© 2014 Microsoft