Multi Criteria Decision (DecisionSplit) Format

The multi-criteria decision activity, also called the decision split activity, decides which branch a contact follows in a workflow based on contact attribute values at runtime. This activity type can’t be used in a custom activity.

Journey Specification Format 

The activity must be formatted as specified below. The following JSON object is included in the activities array of a journey, as defined in the Journey Specification.

Helpful Hints 

  • The outcome of this decision affects goal statistics.
  • The schemaVersionId comes from the GET /schema resource.
  • Use entry data or activity output data as configurationArguments in an outcome branch.
  • Use the schema object on a custom activity to make activity output data visible to downstream activities.

Sample Request 

1{
2        "type": "MultiCriteriaDecision",
3        "key": "MY-ACTIVITY-KEY-1",
4        "name": "My Split",
5        "configurationArguments": {
6            "criteria": {
7                "OUTCOME-1": "<Filter XML HERE>...",
8                "OUTCOME-2": "<Filter XML HERE>...",
9                "OUTCOME-3": "<Filter XML HERE>..."
10            },
11            "schemaVersionId": 47
12        },
13        "outcomes": [
14            {
15                "key": "OUTCOME-2",
16                "metaData": {
17                    "label": "Branch A"
18                },
19                "next": "<next activity key>"
20            },
21            {
22                "key": "OUTCOME-1",
23                "metaData": {
24                    "label": "Branch B"
25                },
26                "next": "<next activity key>"
27            },
28            {
29                "key": "OUTCOME-3",
30                "metaData": {
31                    "label": "Branch C"
32                },
33                "next": "<next activity key>"
34            }
35        ]
36}

Sample Response 

1{
2    "id": "<unique-GUID-provided-by-SFMC>",
3    "type": "MultiCriteriaDecision",
4    "key": "MY-ACTIVITY-KEY-1",
5    "name": "My Split",
6        "configurationArguments": {
7            "criteria": {
8                "OUTCOME-1": "<Filter XML HERE>...",
9                "OUTCOME-2": "<Filter XML HERE>...",
10                "OUTCOME-3": "<Filter XML HERE>..."
11            },
12            "schemaVersionId": 47
13        },
14        "outcomes": [
15            {
16                "key": "OUTCOME-2",
17                "metaData": {
18                    "label": "Branch A"
19                },
20                "next": "<next activity key>"
21            },
22            {
23                "key": "OUTCOME-1",
24                "metaData": {
25                    "label": "Branch B"
26                },
27                "next": "<next activity key>"
28            },
29            {
30                "key": "OUTCOME-3",
31                "metaData": {
32                    "label": "Branch C"
33                },
34                "next": "<next activity key>"
35            }
36        ]
37}

Related Items