-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbulk_Step1.json
More file actions
74 lines (74 loc) · 2 KB
/
bulk_Step1.json
File metadata and controls
74 lines (74 loc) · 2 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"id": 5208,
"name": "Bulk Step 1",
"description": "Start a bulk download from an element",
"userId": 8011,
"accountId": 8125,
"createdDate": "2018-01-25T04:51:12Z",
"steps": [{
"id": 53563,
"onSuccess": ["createBulkJob"],
"onFailure": [],
"name": "createQuery",
"type": "script",
"properties": {
"body": "done({\n \"body\":{\n \"query\":\"select * from \" + config.object,\n \"headerData\": {\n \"order\": \"asc\"\n }\n },\n \"headers\":{\n \"Elements-Async-Callback-Url\":\"/formulas/instances/\" + config.secondformulainstanceid + \"/executions\",\n },\n});"
}
}, {
"id": 53564,
"onSuccess": [],
"onFailure": [],
"name": "createBulkJob",
"type": "elementRequest",
"properties": {
"body": "${steps.createQuery.body}",
"method": "POST",
"elementInstanceId": "${config.crm.source}",
"api": "/bulk/query",
"query": "",
"headers": "${steps.createQuery.headers}"
}
}],
"triggers": [{
"id": 4697,
"onSuccess": ["createQuery"],
"onFailure": [],
"type": "scheduled",
"async": true,
"name": "trigger",
"properties": {
"cron": "${config.cron}"
}
}],
"active": true,
"singleThreaded": false,
"debugLoggingEnabled": true,
"configuration": [{
"id": 15740,
"key": "crm.source",
"name": "CRM Source",
"type": "elementInstance",
"description": "Source CRM instance to take updates from and push into Act-On",
"required": true
}, {
"id": 15741,
"key": "cron",
"name": "cron",
"type": "value",
"required": true
}, {
"id": 15742,
"key": "object",
"name": "object",
"type": "value",
"description": "Which object to pull from the CRM (contacts, accounts, CustomContact, etc.)",
"required": true
}, {
"id": 15743,
"key": "secondformulainstanceid",
"name": "SecondFormulaInstanceId",
"type": "value",
"description": "The ID of the second formula instance",
"required": true
}]
}