-
Notifications
You must be signed in to change notification settings - Fork 2
/
component.json
706 lines (706 loc) · 23.1 KB
/
component.json
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
{
"title": "Salesforce v2",
"description": "Customer relationship management (CRM) software & cloud computing from the leader in CRM solutions for businesses large & small.",
"docsUrl": "https://github.com/elasticio/salesforce-component-v2",
"url": "https://www.salesforce.com/",
"version": "2.8.5",
"authClientTypes": [
"oauth2"
],
"envVars": {
"SALESFORCE_API_VERSION": {
"required": true,
"description": "Salesforce API version. Default 46.0"
},
"HASH_LIMIT_TIME": {
"required": false,
"description": "Hash expiration time in millis"
},
"HASH_LIMIT_ELEMENTS": {
"required": false,
"description": "Hash size number limit"
}
},
"credentials": {
"fields": {
"oauth": {
"label": "Authentication",
"viewClass": "OAuthFieldView",
"required": true
}
}
},
"triggers": {
"getUpdatedObjectsPolling": {
"main": "./lib/triggers/getUpdatedObjectsPolling.js",
"title": "Get Updated Objects Polling",
"type": "polling",
"help": {
"description": "Poll for updated objects",
"link": "/components/salesforce/triggers#get-updated-objects-polling"
},
"fields": {
"sobject": {
"viewClass": "SelectView",
"label": "Object Type",
"order": 20,
"required": true,
"model": "objectTypes",
"prompt": "Please select a Salesforce Object"
},
"selectedFields": {
"label": "Selected Fields",
"viewClass": "MultiSelectView",
"order": 17,
"required": false,
"require": [
"sobject"
],
"help": {
"description": "Select fields that will be returned"
},
"model": "getObjectFields"
},
"linkedObjects": {
"label": "Include linked objects",
"viewClass": "MultiSelectView",
"order": 15,
"required": false,
"require": [
"sobject"
],
"help": {
"description": "Linked objects that you can query at once - beyond two or three, depending on the number of fields in the linked objects."
},
"model": "linkedObjectTypes"
},
"emitBehavior": {
"viewClass": "SelectView",
"order": 12,
"required": false,
"label": "Emit Behavior",
"prompt": "Select an output method. Defaults to: Emit individually",
"model": {
"emitIndividually": "Emit individually",
"fetchPage": "Emit page"
}
},
"startTime": {
"viewClass": "TextFieldView",
"label": "Start Time",
"order": 10,
"required": false,
"placeholder": "1970-01-01T00:00:00.000Z",
"note": "Indicates the beginning time to start polling from, default 1970-01-01T00:00:00.000Z"
},
"endTime": {
"viewClass": "TextFieldView",
"label": "End Time",
"order": 8,
"required": false,
"placeholder": "3000-01-01T00:00:00.000Z",
"note": "If provided, do not fetch records modified after this time (defaults to execution time)"
},
"pageSize": {
"required": false,
"viewClass": "TextFieldView",
"order": 7,
"label": "Size of Polling Page",
"placeholder": "10000",
"note": "Number of records to be fetched by each request (defaults to 10000). Positive integer only, max 10000 objects"
},
"singlePagePerInterval": {
"viewClass": "CheckBoxView",
"order": 4,
"label": "Process Single Page Per Execution",
"note": "Indicates that if the number of changed records exceeds the maximum number of results in a page, instead of fetching the next page immediately, wait until the next flow start to fetch the next page."
}
},
"dynamicMetadata": true
},
"entry": {
"title": "Get New and Updated Objects Polling",
"main": "./lib/entry.js",
"deprecated": true,
"order": 99,
"help": {
"description": "Will poll for existing and updated objects where you can select any custom or build-in object for your Salesforce instance",
"link": "/components/salesforce/triggers#get-new-and-updated-objects-polling-trigger"
},
"type": "polling",
"dynamicMetadata": true,
"fields": {
"sobject": {
"viewClass": "SelectView",
"label": "Object",
"required": true,
"model": "objectTypes",
"prompt": "Please select a Salesforce Object"
},
"linkedObjects": {
"label": "Include linked objects",
"viewClass": "MultiSelectView",
"required": false,
"require": [
"sobject"
],
"model": "linkedObjectTypes",
"prompt": "Please select any linked objects that should be included in the query"
},
"startTime": {
"viewClass": "TextFieldView",
"label": "Start Time",
"required": false,
"placeholder": "1970-01-01T00:00:00.000Z",
"note": "Indicates the beginning time to start polling from, default 1970-01-01T00:00:00.000Z"
},
"endTime": {
"viewClass": "TextFieldView",
"label": "End Time",
"required": false,
"placeholder": "3000-01-01T00:00:00.000Z",
"note": "If provided, do not fetch records modified after this time (defaults to never)"
},
"sizeOfPollingPage": {
"label": "Size of Polling Page",
"viewClass": "TextFieldView",
"required": false,
"placeholder": "10000",
"note": "Please set the size of pages to be fetched (defaults to 10000). Please enter positive integer only, max 10000 objects"
},
"singlePagePerInterval": {
"label": "Process single page per execution",
"viewClass": "SelectView",
"required": false,
"model": {
"yes": "yes",
"no": "no"
},
"prompt": "Process single page per execution:"
},
"outputMethod": {
"viewClass": "SelectView",
"label": "Output method",
"required": false,
"model": {
"emitAll": "Emit all",
"emitIndividually": "Emit individually"
},
"prompt": "Please select an output method. Defaults to: Emit individually"
},
"maxFetch": {
"label": "Max Fetch Count",
"required": false,
"viewClass": "TextFieldView",
"placeholder": "1000",
"note": "Limit for a number of messages that can be fetched, 1,000 by default"
}
}
},
"queryTrigger": {
"title": "Query",
"main": "./lib/triggers/query.js",
"type": "polling",
"order": 98,
"help": {
"description": "Will continuously run the same SOQL Query and emit results",
"link": "/components/salesforce/triggers#query-trigger"
},
"metadata": {
"out": {}
},
"fields": {
"query": {
"label": "SOQL Query",
"required": true,
"viewClass": "TextAreaView"
},
"outputMethod": {
"viewClass": "SelectView",
"label": "Output method",
"required": false,
"model": {
"emitAll": "Emit all",
"emitIndividually": "Emit individually"
},
"prompt": "Please select an output method. Defaults to: Emit individually"
},
"dontEmitOnEmptyResults": {
"viewClass": "CheckBoxView",
"label": "Don't emit on empty results",
"required": false,
"help": {
"description": "If selected, component will not produce empty messages when result is empty."
}
}
}
},
"streamPlatformEvents": {
"title": "Subscribe to platform events (REALTIME FLOWS ONLY)",
"order": 97,
"help": {
"description": "Can be used for subscription to the specified in the configuration Platform Event object. Can be used only for Realtime flows",
"link": "/components/salesforce/triggers#subscribe-to-platform-events-trigger"
},
"main": "./lib/triggers/streamPlatformEvents.js",
"type": "polling",
"fields": {
"object": {
"viewClass": "SelectView",
"label": "Event object name",
"required": true,
"model": "objectTypes",
"prompt": "Please select a Event object"
}
}
},
"streamPlatformEventsPubSub": {
"title": "Subscribe to PubSub",
"order": 97,
"help": {
"description": "Can be used for subscription to the specified in the configuration Platform Event object",
"link": "/components/salesforce/index.html#subscribe-to-pubsub"
},
"main": "./lib/triggers/streamPlatformEventsPubSub.js",
"type": "polling",
"fields": {
"object": {
"viewClass": "SelectView",
"label": "Event object name",
"required": true,
"model": "objectTypes",
"prompt": "Please select Event object"
},
"pubsubEndpoint": {
"label": "Pub/Sub API Endpoint",
"viewClass": "TextFieldView",
"required": false,
"placeholder": "api.pubsub.salesforce.com:7443",
"help": {
"description": "You can set Pub/Sub API Endpoint manually or leave it blank for default: \"api.pubsub.salesforce.com:7443\""
}
},
"eventCountPerRequest": {
"label": "Number of events per request",
"viewClass": "TextFieldView",
"required": false,
"placeholder": "10",
"help": {
"description": "Salesforce uses batches of events to deliver to the component, the bigger number may increase processing speed, but if the batch size is too big, you can get out of memory error. If there are fewer events ready than the batch size, they will be delivered anyway. Positive integer, defaults to 10, max 100"
}
},
"initialReplayId": {
"label": "Start from Replay Id",
"viewClass": "TextFieldView",
"required": false,
"placeholder": "31142963",
"help": {
"description": "In the Salesforce platform events and change data capture events are retained in the event bus for 3 days and you can subscribe at any position in the stream by providing here Replay Id from the last event. This field is used only for the first execution, following executions will use the Replay Id from the latest event to get a new one. Positive integer"
}
}
},
"metadata": {
"out": {
"type": "object",
"properties": {
"event": {
"type": "object",
"properties": {
"replayId": {
"type": "number"
}
}
},
"payload": {
"type": "object",
"properties": {}
}
}
}
}
}
},
"actions": {
"bulk_cud": {
"title": "Bulk Create/Update/Delete/Upsert",
"main": "./lib/actions/bulk_cud.js",
"order": 99,
"help": {
"description": "Bulk operations on objects in CSV file",
"link": "/components/salesforce/actions#bulk-createupdatedeleteupsert-action"
},
"fields": {
"operation": {
"viewClass": "SelectView",
"label": "Operation",
"required": true,
"model": {
"insert": "Create",
"update": "Update",
"delete": "Delete",
"upsert": "Upsert"
},
"prompt": "Please select an operation"
},
"sobject": {
"viewClass": "SelectView",
"label": "Object",
"required": true,
"require": [
"operation"
],
"model": "objectTypes",
"prompt": "Please select a Salesforce Object"
},
"timeout": {
"viewClass": "TextFieldView",
"label": "Timeout for operation (sec)",
"required": true,
"note": "A positive integer specifying timeout in seconds. Maximum Salesforce's server timeout for the bulk operations is 10 min (600 sec).",
"placeholder": "600"
}
},
"dynamicMetadata": true
},
"bulk_q": {
"title": "Bulk Query",
"main": "./lib/actions/bulk_q.js",
"order": 98,
"help": {
"description": "Bulk query with the results in CSV file",
"link": "/components/salesforce/actions#bulk-query-action"
},
"metadata": {
"in": "./lib/schemas/bulk_q.in.json",
"out": "./lib/schemas/bulk_q.out.json"
}
},
"create": {
"title": "Create Object",
"main": "./lib/actions/createObject.js",
"order": 97,
"help": {
"description": "Creates new Selected Object",
"link": "/components/salesforce/actions#create-object-action"
},
"dynamicMetadata": true,
"fields": {
"sobject": {
"viewClass": "SelectView",
"label": "Object",
"required": true,
"model": "objectTypes",
"prompt": "Please select a Salesforce Object"
},
"utilizeAttachment": {
"viewClass": "CheckBoxView",
"label": "Utilize data attachment from previous step (for objects with a binary field) or by URL inside this field (instead of data)"
}
}
},
"delete": {
"title": "Delete Object (at most 1)",
"main": "./lib/actions/deleteObject.js",
"order": 96,
"help": {
"description": "Delete Selected Object",
"link": "/components/salesforce/actions#delete-object-action-at-most-1"
},
"dynamicMetadata": true,
"fields": {
"sobject": {
"viewClass": "SelectView",
"label": "Object",
"required": true,
"model": "objectTypes",
"prompt": "Please select a Salesforce Object"
},
"typeOfSearch": {
"viewClass": "SelectView",
"label": "Type Of Search",
"required": false,
"model": {
"uniqueFields": "Unique Fields",
"allFields": "All Fields"
},
"prompt": "Please select a type of search. By default - All Fields"
},
"lookupField": {
"viewClass": "SelectView",
"label": "Lookup by field",
"required": false,
"require": [
"sobject"
],
"model": "getLookupFieldsModel",
"prompt": "Please select the field which you want to use for lookup. By default - Object ID"
}
}
},
"lookupObject": {
"title": "Lookup Object (at most 1)",
"main": "./lib/actions/lookupObject.js",
"order": 95,
"help": {
"description": "Lookup object (at most 1) by selected field",
"link": "/components/salesforce/actions#lookup-object-action-at-most-1"
},
"dynamicMetadata": true,
"fields": {
"sobject": {
"viewClass": "SelectView",
"label": "Object",
"required": true,
"model": "objectTypes",
"prompt": "Please select a Salesforce Object",
"order": 8
},
"typeOfSearch": {
"viewClass": "SelectView",
"label": "Type Of Search",
"required": true,
"model": {
"uniqueFields": "Unique Fields",
"allFields": "All Fields"
},
"prompt": "Please select a type of search",
"order": 7
},
"lookupField": {
"viewClass": "SelectView",
"label": "Lookup by field",
"required": true,
"require": [
"sobject",
"typeOfSearch"
],
"model": "getLookupFieldsModel",
"prompt": "Please select the field which you want to use for lookup",
"order": 6
},
"linkedObjects": {
"viewClass": "MultiSelectView",
"require": [
"sobject"
],
"label": "Include referenced objects",
"model": "getLinkedObjectsModel",
"order": 5,
"prompt": "Please select the related objects you want included in your lookup"
},
"allowCriteriaToBeOmitted": {
"viewClass": "CheckBoxView",
"label": "Allow criteria to be omitted",
"order": 4
},
"allowZeroResults": {
"viewClass": "CheckBoxView",
"label": "Allow zero results",
"order": 3
},
"passBinaryData": {
"viewClass": "CheckBoxView",
"label": "Pass binary data to the next step (if found object has it)",
"order": 2
},
"enableCacheUsage": {
"viewClass": "CheckBoxView",
"label": "Enable Cache Usage",
"order": 1
}
}
},
"lookupObjects": {
"title": "Lookup Objects",
"main": "./lib/actions/lookupObjects.js",
"order": 94,
"help": {
"description": "Look for objects satisfying specified criteria",
"link": "/components/salesforce/actions#lookup-objects-action"
},
"dynamicMetadata": true,
"fields": {
"sobject": {
"viewClass": "SelectView",
"label": "Object",
"required": true,
"model": "objectTypes",
"prompt": "Please select a Salesforce Object"
},
"includeDeleted": {
"viewClass": "CheckBoxView",
"label": "Include deleted"
},
"outputMethod": {
"viewClass": "SelectView",
"label": "Output method",
"required": true,
"model": {
"emitAll": "Emit all",
"emitPage": "Emit page",
"emitIndividually": "Emit individually"
},
"prompt": "Please select an output method"
},
"termNumber": {
"viewClass": "TextFieldView",
"label": "Number of search terms",
"required": true,
"placeholder": "Please specify a number of search terms",
"note": "Enter a positive integer number [1-99] or 0 to lookup all entities of chosen type"
},
"enableCacheUsage": {
"viewClass": "CheckBoxView",
"label": "Enable Cache Usage"
},
"maxFetch": {
"label": "Max Fetch Count",
"required": false,
"viewClass": "TextFieldView",
"placeholder": "1000",
"note": "Limit for a number of messages that can be fetched, 1,000 by default"
}
}
},
"queryAction": {
"title": "Query",
"main": "./lib/actions/query.js",
"order": 93,
"help": {
"description": "Executing an SOQL Query that may return many objects. Each resulting object is emitted one-by-one",
"link": "/components/salesforce/actions#query-action"
},
"fields": {
"batchSize": {
"viewClass": "TextFieldView",
"label": "Optional batch size",
"required": false,
"note": "A positive integer specifying batch size. If no batch size is specified then results of the query will be emitted one-by-one, otherwise query results will be emitted in array of maximum batch size.",
"placeholder": "0"
},
"allowResultAsSet": {
"label": "Allow all results to be returned in a set",
"viewClass": "CheckBoxView",
"help": {
"description": "`Optional batch size` and `Max Fetch Count` options are ignored in this case"
}
},
"includeDeleted": {
"viewClass": "CheckBoxView",
"label": "Include deleted"
},
"maxFetch": {
"label": "Max Fetch Count",
"required": false,
"viewClass": "TextFieldView",
"placeholder": "1000",
"note": "Limit for a number of messages that can be fetched, 1,000 by default, up to 2000"
}
},
"metadata": {
"in": {
"type": "object",
"properties": {
"query": {
"maxLength": 20000,
"title": "SOQL Query",
"type": "string",
"required": true
}
}
},
"out": {}
}
},
"rawRequest": {
"title": "Raw Request",
"main": "./lib/actions/rawRequest.js",
"order": 91,
"help": {
"description": "Make Raw Request",
"link": "/components/salesforce/actions#make-raw-request"
},
"metadata": {
"in": "./lib/schemas/rawRequest.in.json",
"out": "./lib/schemas/rawRequest.out.json"
}
},
"upsert": {
"deprecated": true,
"title": "Upsert Object",
"main": "./lib/actions/upsert.js",
"order": 50,
"help": {
"description": "Create or Update Selected Object"
},
"dynamicMetadata": true,
"fields": {
"sobject": {
"viewClass": "SelectView",
"label": "Object",
"required": true,
"model": "objectTypes",
"prompt": "Please select a Salesforce Object"
},
"extIdField": {
"viewClass": "TextFieldView",
"label": "Optional Upsert field",
"required": false,
"note": "Please make sure selected SObject has this field and it is marked as 'External ID'",
"placeholder": "extID__c"
},
"utilizeAttachment": {
"viewClass": "CheckBoxView",
"label": "Utilize data attachment from previous step (for objects with a binary field)"
}
}
},
"upsert_v2": {
"title": "Upsert Object",
"main": "./lib/actions/upsert_v2.js",
"order": 90,
"help": {
"description": "Create or Update selected Object",
"link": "/components/salesforce/actions#upsert-object-action"
},
"dynamicMetadata": true,
"fields": {
"sobject": {
"viewClass": "SelectView",
"label": "Object",
"required": true,
"model": "getObjectTypes",
"prompt": "Please select a Salesforce Object",
"order": 8
},
"typeOfSearch": {
"viewClass": "SelectView",
"label": "Type Of Search",
"required": true,
"require": [
"sobject"
],
"model": {
"uniqueFields": "Unique Fields",
"externalIds": "External IDs",
"allFields": "All Fields"
},
"prompt": "Please select a type of search",
"order": 7
},
"lookupField": {
"viewClass": "SelectView",
"label": "Lookup by field",
"required": true,
"require": [
"sobject",
"typeOfSearch"
],
"model": "getLookupFieldsModel",
"prompt": "Please select the field which you want to use for lookup",
"order": 6
}
}
}
}
}