-
Notifications
You must be signed in to change notification settings - Fork 0
/
Scenario-Example.js
32 lines (32 loc) · 1.29 KB
/
Scenario-Example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
scenarios.push(
{
id: '{ID of the new scenario}',
title: '{Title of this scenario}',
consolidationMode: 'Consolidate', //{ Mode used to consolidate data for unified individuals: 'Consolidate' || 'PickAWinner'},
irMatchKey: 'Email', // Property of an object used to match individuals together. Defaulting to Email for current usecases.
consolidationSortKeys:
[
{ key: '{Key to sort}', direction: '{Sort Direction: asc || desc}'}
],
steps:
[
{
title: '{Title of this step in the scenario}',
description: '{Description of this step in the scenario}',
data:
[
// Example Lead & Contact
// { color: 'ffd9f7', _object_type: 'Contact', id: 'C1', Email: '[email protected]', _last_updated: '2022-10-01' },
// { color: 'ffd9f7', _object_type: 'Lead', id: 'L1', Email: '[email protected]', _last_updated: '2022-10-01' },
]
},
{
title: '{Title of this step in the scenario}',
description: '{Description of this step in the scenario}',
data:
[
]
}
]
}
);