AssociationCategories element (Workflow)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Specifies the categories of list and content types to which you can associate this workflow.

Definition

<AssocationCategories/>
</AssociationCatagories>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child elements

None

Parent elements

MetaData element (Workflow)

Occurrences

Minimum: 0

Maximum: 1

Remarks

SharePoint Foundation uses the categories specified in this element to display only the appropriate workflows for a list or content type. Specify association categories as a character-delimited list, using the characters ";#" as delimiters. Each category can be up to 256 characters in length.

Valid values include the following:

  • General This workflow can be associated to any list or content type.

  • "List;" + featureID + ";" + listID  The workflow can be associated with a specific list type, defined in the specified feature. For example:

    List;29d85c25-170c-4df9-a641-12db0b9d4130;1300

  • "ContentType;" +contentTypeID The workflow can be associated with a specific content type. For example:

    ContentType;0x01010029d85c25-170c-4df9-a641-12db0b9d4130

Example

The following example specifies that the workflow can be associated with lists of list type 1300, which is defined in feature 29d85c25-170c-4df9-a641-12db0b9d4130.

    <MetaData>
      <AssociationCategories>List;29d85c25-170c-4df9-a641-12db0b9d4130;1300</AssociationCategories>
    </MetaData>

See also