@salesforce/plugin-data 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -144,7 +144,7 @@ EXAMPLES
144
144
  $ sf data bulk results --job-id 7507i000fake341G --target-org my-scratch
145
145
  ```
146
146
 
147
- _See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/bulk/results.ts)_
147
+ _See code: [src/commands/data/bulk/results.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/bulk/results.ts)_
148
148
 
149
149
  ## `sf data create file`
150
150
 
@@ -193,7 +193,7 @@ EXAMPLES
193
193
  $ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3
194
194
  ```
195
195
 
196
- _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/create/file.ts)_
196
+ _See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/create/file.ts)_
197
197
 
198
198
  ## `sf data create record`
199
199
 
@@ -202,16 +202,19 @@ Create and insert a record into a Salesforce or Tooling API object.
202
202
  ```
203
203
  USAGE
204
204
  $ sf data create record -o <value> -s <value> -v <value> [--json] [--flags-dir <value>] [--api-version <value>] [-t]
205
+ [--skip-assignment-rules]
205
206
 
206
207
  FLAGS
207
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
208
- configuration variable is already set.
209
- -s, --sobject=<value> (required) API name of the Salesforce or Tooling API object that you're inserting a record
210
- into.
211
- -t, --use-tooling-api Use Tooling API so you can insert a record in a Tooling API object.
212
- -v, --values=<value> (required) Values for the flags in the form <fieldName>=<value>, separate multiple pairs
213
- with spaces.
214
- --api-version=<value> Override the api version used for api requests made by this command
208
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
209
+ configuration variable is already set.
210
+ -s, --sobject=<value> (required) API name of the Salesforce or Tooling API object that you're inserting a
211
+ record into.
212
+ -t, --use-tooling-api Use Tooling API so you can insert a record in a Tooling API object.
213
+ -v, --values=<value> (required) Values for the flags in the form <fieldName>=<value>, separate multiple pairs
214
+ with spaces.
215
+ --api-version=<value> Override the api version used for api requests made by this command
216
+ --skip-assignment-rules Don't apply active assignment rules when creating the record; applies to Account, Case,
217
+ and Lead records.
215
218
 
216
219
  GLOBAL FLAGS
217
220
  --flags-dir=<value> Import flag values from a directory.
@@ -249,7 +252,7 @@ EXAMPLES
249
252
  TracedEntityId=01p17000000R6bLAAS"
250
253
  ```
251
254
 
252
- _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/create/record.ts)_
255
+ _See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/create/record.ts)_
253
256
 
254
257
  ## `sf data delete bulk`
255
258
 
@@ -308,7 +311,7 @@ FLAG DESCRIPTIONS
308
311
  and can be enabled only by a system administrator.
309
312
  ```
310
313
 
311
- _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/delete/bulk.ts)_
314
+ _See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/delete/bulk.ts)_
312
315
 
313
316
  ## `sf data delete record`
314
317
 
@@ -369,7 +372,7 @@ EXAMPLES
369
372
  $ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
370
373
  ```
371
374
 
372
- _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/delete/record.ts)_
375
+ _See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/delete/record.ts)_
373
376
 
374
377
  ## `sf data delete resume`
375
378
 
@@ -408,7 +411,7 @@ EXAMPLES
408
411
  $ sf data delete resume --use-most-recent --target-org my-scratch
409
412
  ```
410
413
 
411
- _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/delete/resume.ts)_
414
+ _See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/delete/resume.ts)_
412
415
 
413
416
  ## `sf data export bulk`
414
417
 
@@ -475,7 +478,7 @@ EXAMPLES
475
478
  --result-format json --wait 10 --all-rows
476
479
  ```
477
480
 
478
- _See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/export/bulk.ts)_
481
+ _See code: [src/commands/data/export/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/export/bulk.ts)_
479
482
 
480
483
  ## `sf data export resume`
481
484
 
@@ -514,7 +517,7 @@ EXAMPLES
514
517
  $ sf data export resume --use-most-recent
515
518
  ```
516
519
 
517
- _See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/export/resume.ts)_
520
+ _See code: [src/commands/data/export/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/export/resume.ts)_
518
521
 
519
522
  ## `sf data export tree`
520
523
 
@@ -574,7 +577,7 @@ EXAMPLES
574
577
  my-scratch
575
578
  ```
576
579
 
577
- _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/export/tree.ts)_
580
+ _See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/export/tree.ts)_
578
581
 
579
582
  ## `sf data get record`
580
583
 
@@ -638,7 +641,7 @@ EXAMPLES
638
641
  $ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c
639
642
  ```
640
643
 
641
- _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/get/record.ts)_
644
+ _See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/get/record.ts)_
642
645
 
643
646
  ## `sf data import bulk`
644
647
 
@@ -690,7 +693,7 @@ EXAMPLES
690
693
  $ sf data import bulk --file accounts.csv --sobject Account --wait 10 --target-org my-scratch
691
694
  ```
692
695
 
693
- _See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/import/bulk.ts)_
696
+ _See code: [src/commands/data/import/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/import/bulk.ts)_
694
697
 
695
698
  ## `sf data import resume`
696
699
 
@@ -726,7 +729,7 @@ EXAMPLES
726
729
  $ sf data import resume --use-most-recent --target-org my-scratch
727
730
  ```
728
731
 
729
- _See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/import/resume.ts)_
732
+ _See code: [src/commands/data/import/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/import/resume.ts)_
730
733
 
731
734
  ## `sf data import tree`
732
735
 
@@ -790,7 +793,7 @@ FLAG DESCRIPTIONS
790
793
  - files(array) - Files: An array of files paths to load
791
794
  ```
792
795
 
793
- _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/import/tree.ts)_
796
+ _See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/import/tree.ts)_
794
797
 
795
798
  ## `sf data query`
796
799
 
@@ -843,7 +846,7 @@ EXAMPLES
843
846
  $ sf data query --query "SELECT Name FROM ApexTrigger" --use-tooling-api
844
847
  ```
845
848
 
846
- _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/query.ts)_
849
+ _See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/query.ts)_
847
850
 
848
851
  ## `sf data resume`
849
852
 
@@ -880,7 +883,7 @@ EXAMPLES
880
883
  $ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
881
884
  ```
882
885
 
883
- _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/resume.ts)_
886
+ _See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/resume.ts)_
884
887
 
885
888
  ## `sf data search`
886
889
 
@@ -930,7 +933,7 @@ EXAMPLES
930
933
  $ sf data search --file query.txt --target-org my-scratch --result-format csv
931
934
  ```
932
935
 
933
- _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/search.ts)_
936
+ _See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/search.ts)_
934
937
 
935
938
  ## `sf data update bulk`
936
939
 
@@ -985,7 +988,7 @@ EXAMPLES
985
988
  $ sf data update bulk --file accounts.csv --sobject Account --wait 10 --target-org my-scratch
986
989
  ```
987
990
 
988
- _See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/update/bulk.ts)_
991
+ _See code: [src/commands/data/update/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/update/bulk.ts)_
989
992
 
990
993
  ## `sf data update record`
991
994
 
@@ -994,18 +997,20 @@ Updates a single record of a Salesforce or Tooling API object.
994
997
  ```
995
998
  USAGE
996
999
  $ sf data update record -o <value> -s <value> -v <value> [--json] [--flags-dir <value>] [--api-version <value>] [-i
997
- <value>] [-w <value>] [-t]
1000
+ <value>] [-w <value>] [-t] [--skip-assignment-rules]
998
1001
 
999
1002
  FLAGS
1000
- -i, --record-id=<value> ID of the record you’re updating.
1001
- -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1002
- configuration variable is already set.
1003
- -s, --sobject=<value> (required) API name of the Salesforce or Tooling API object that contains the record you're
1004
- updating.
1005
- -t, --use-tooling-api Use Tooling API so you can update a record in a Tooling API object.
1006
- -v, --values=<value> (required) Fields that you're updating, in the format of <fieldName>=<value> pairs.
1007
- -w, --where=<value> List of <fieldName>=<value> pairs that identify the record you want to update.
1008
- --api-version=<value> Override the api version used for api requests made by this command
1003
+ -i, --record-id=<value> ID of the record you’re updating.
1004
+ -o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
1005
+ configuration variable is already set.
1006
+ -s, --sobject=<value> (required) API name of the Salesforce or Tooling API object that contains the record
1007
+ you're updating.
1008
+ -t, --use-tooling-api Use Tooling API so you can update a record in a Tooling API object.
1009
+ -v, --values=<value> (required) Fields that you're updating, in the format of <fieldName>=<value> pairs.
1010
+ -w, --where=<value> List of <fieldName>=<value> pairs that identify the record you want to update.
1011
+ --api-version=<value> Override the api version used for api requests made by this command
1012
+ --skip-assignment-rules Don't apply active assignment rules when updating the record; applies to Account, Case,
1013
+ and Lead records.
1009
1014
 
1010
1015
  GLOBAL FLAGS
1011
1016
  --flags-dir=<value> Import flag values from a directory.
@@ -1047,7 +1052,7 @@ EXAMPLES
1047
1052
  "ExpirationDate=2017-12-01T00:58:04.000+0000"
1048
1053
  ```
1049
1054
 
1050
- _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/update/record.ts)_
1055
+ _See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/update/record.ts)_
1051
1056
 
1052
1057
  ## `sf data update resume`
1053
1058
 
@@ -1086,7 +1091,7 @@ EXAMPLES
1086
1091
  $ sf data update resume --use-most-recent
1087
1092
  ```
1088
1093
 
1089
- _See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/update/resume.ts)_
1094
+ _See code: [src/commands/data/update/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/update/resume.ts)_
1090
1095
 
1091
1096
  ## `sf data upsert bulk`
1092
1097
 
@@ -1142,7 +1147,7 @@ EXAMPLES
1142
1147
  my-scratch
1143
1148
  ```
1144
1149
 
1145
- _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/upsert/bulk.ts)_
1150
+ _See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/upsert/bulk.ts)_
1146
1151
 
1147
1152
  ## `sf data upsert resume`
1148
1153
 
@@ -1181,7 +1186,7 @@ EXAMPLES
1181
1186
  $ sf data upsert resume --use-most-recent --target-org my-scratch
1182
1187
  ```
1183
1188
 
1184
- _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/data/upsert/resume.ts)_
1189
+ _See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/data/upsert/resume.ts)_
1185
1190
 
1186
1191
  ## `sf force data bulk delete`
1187
1192
 
@@ -1228,7 +1233,7 @@ EXAMPLES
1228
1233
  $ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch
1229
1234
  ```
1230
1235
 
1231
- _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/force/data/bulk/delete.ts)_
1236
+ _See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/force/data/bulk/delete.ts)_
1232
1237
 
1233
1238
  ## `sf force data bulk status`
1234
1239
 
@@ -1265,7 +1270,7 @@ EXAMPLES
1265
1270
  $ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch
1266
1271
  ```
1267
1272
 
1268
- _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/force/data/bulk/status.ts)_
1273
+ _See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/force/data/bulk/status.ts)_
1269
1274
 
1270
1275
  ## `sf force data bulk upsert`
1271
1276
 
@@ -1323,6 +1328,6 @@ EXAMPLES
1323
1328
  --target-org my-scratch
1324
1329
  ```
1325
1330
 
1326
- _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/5.0.2/src/commands/force/data/bulk/upsert.ts)_
1331
+ _See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/5.1.0/src/commands/force/data/bulk/upsert.ts)_
1327
1332
 
1328
1333
  <!-- commandsstop -->
@@ -46,6 +46,9 @@ export default class Create extends SfCommand {
46
46
  deprecateAliases: true,
47
47
  }),
48
48
  perflog: perflogFlag,
49
+ 'skip-assignment-rules': Flags.boolean({
50
+ summary: messages.getMessage('flags.skip-assignment-rules.summary'),
51
+ }),
49
52
  };
50
53
  async run() {
51
54
  const { flags } = await this.parse(Create);
@@ -54,7 +57,7 @@ export default class Create extends SfCommand {
54
57
  ? flags['target-org'].getConnection(flags['api-version']).tooling
55
58
  : flags['target-org'].getConnection(flags['api-version'])).sobject(flags.sobject);
56
59
  const values = stringToDictionary(flags.values);
57
- const result = await sobject.insert(values);
60
+ const result = await sobject.insert(values, flags['skip-assignment-rules'] ? { headers: { 'Sforce-Auto-Assign': 'FALSE' } } : {});
58
61
  if (result.success) {
59
62
  this.log(messages.getMessage('createSuccess', [result.id || 'unknown id']));
60
63
  this.spinner.stop();
@@ -1 +1 @@
1
- {"version":3,"file":"record.js","sourceRoot":"","sources":["../../../../src/commands/data/create/record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,oBA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EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;YAC5E,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACtB,CAAC;aAAM,CAAC;YACN,MAAM,MAAM,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;YAC5C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC5B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC"}
@@ -67,6 +67,9 @@ export default class Update extends SfCommand {
67
67
  version: '57',
68
68
  },
69
69
  }),
70
+ 'skip-assignment-rules': Flags.boolean({
71
+ summary: messages.getMessage('flags.skip-assignment-rules.summary'),
72
+ }),
70
73
  };
71
74
  async run() {
72
75
  const { flags } = await this.parse(Update);
@@ -79,7 +82,9 @@ export default class Update extends SfCommand {
79
82
  const sObjectId = flags['record-id'] ?? (await query(conn, flags.sobject, flags.where)).Id;
80
83
  try {
81
84
  const updateObject = { ...stringToDictionary(flags.values), Id: sObjectId };
82
- const result = await conn.sobject(flags.sobject).update(updateObject);
85
+ const result = await conn
86
+ .sobject(flags.sobject)
87
+ .update(updateObject, flags['skip-assignment-rules'] ? { headers: { 'Sforce-Auto-Assign': 'FALSE' } } : {});
83
88
  if (result.success) {
84
89
  this.log(messages.getMessage('updateSuccess', [sObjectId]));
85
90
  }
@@ -1 +1 @@
1
- {"version":3,"file":"record.js","sourceRoot":"","sources":["../../../../src/commands/data/update/record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MA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Tooling API object.
24
24
 
25
+ # flags.skip-assignment-rules.summary
26
+
27
+ Don't apply active assignment rules when creating the record; applies to Account, Case, and Lead records.
28
+
25
29
  # examples
26
30
 
27
31
  - Insert a record into the Account object of your default org; only the required Name field has a value:
@@ -30,6 +30,10 @@ Use Tooling API so you can update a record in a Tooling API object.
30
30
 
31
31
  Fields that you're updating, in the format of <fieldName>=<value> pairs.
32
32
 
33
+ # flags.skip-assignment-rules.summary
34
+
35
+ Don't apply active assignment rules when updating the record; applies to Account, Case, and Lead records.
36
+
33
37
  # examples
34
38
 
35
39
  - Update the Name field of an Account record with the specified (truncated) ID:
@@ -401,6 +401,83 @@
401
401
  "search:data"
402
402
  ]
403
403
  },
404
+ "data:bulk:results": {
405
+ "aliases": [],
406
+ "args": {},
407
+ "description": "Use this command to get the complete results after running one of the CLI commands that uses Bulk API 2.0 to ingest (import, update, upsert, or delete) large datasets to your org, such as \"data import bulk\". The previously-run bulk command must have completed; if it's still processing, run the corresponding resume command first, such as \"data import resume.\" Make note of the job ID of the previous bulk command because you use it to run this command. \n\nYou can also use this command to get results from running a bulk ingest job with a different tool, such as Data Loader, as long as you have the job ID. For information on Data Loader, see https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/data_loader_intro.htm. \n\nThis command first displays the status of the previous bulk job, the operation that was executed in the org (such as insert or hard delete), and the updated Salesforce object. The command then displays how many records were processed in total, and how many were successful or failed. Finally, the output displays the names of the generated CSV-formatted files that contain the specific results for each ingested record. Depending on the success or failure of the bulk command, the results files can include the IDs of inserted records or the specific errors. When possible, if the ingest job failed or was aborted, you also get a CSV file with the unprocessed results.",
408
+ "examples": [
409
+ "Get results from a bulk ingest job; use the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --job-id 7507i000fake341G --target-org my-scratch"
410
+ ],
411
+ "flags": {
412
+ "json": {
413
+ "description": "Format output as json.",
414
+ "helpGroup": "GLOBAL",
415
+ "name": "json",
416
+ "allowNo": false,
417
+ "type": "boolean"
418
+ },
419
+ "flags-dir": {
420
+ "helpGroup": "GLOBAL",
421
+ "name": "flags-dir",
422
+ "summary": "Import flag values from a directory.",
423
+ "hasDynamicHelp": false,
424
+ "multiple": false,
425
+ "type": "option"
426
+ },
427
+ "job-id": {
428
+ "char": "i",
429
+ "name": "job-id",
430
+ "required": true,
431
+ "summary": "Job ID of the bulk job.",
432
+ "hasDynamicHelp": false,
433
+ "multiple": false,
434
+ "type": "option"
435
+ },
436
+ "target-org": {
437
+ "char": "o",
438
+ "name": "target-org",
439
+ "noCacheDefault": true,
440
+ "required": true,
441
+ "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
442
+ "hasDynamicHelp": true,
443
+ "multiple": false,
444
+ "type": "option"
445
+ },
446
+ "api-version": {
447
+ "description": "Override the api version used for api requests made by this command",
448
+ "name": "api-version",
449
+ "hasDynamicHelp": false,
450
+ "multiple": false,
451
+ "type": "option"
452
+ }
453
+ },
454
+ "hasDynamicHelp": true,
455
+ "hiddenAliases": [],
456
+ "id": "data:bulk:results",
457
+ "pluginAlias": "@salesforce/plugin-data",
458
+ "pluginName": "@salesforce/plugin-data",
459
+ "pluginType": "core",
460
+ "strict": true,
461
+ "summary": "Get the results of a bulk ingest job that you previously ran.",
462
+ "enableJsonFlag": true,
463
+ "isESM": true,
464
+ "relativePath": [
465
+ "lib",
466
+ "commands",
467
+ "data",
468
+ "bulk",
469
+ "results.js"
470
+ ],
471
+ "aliasPermutations": [],
472
+ "permutations": [
473
+ "data:bulk:results",
474
+ "bulk:data:results",
475
+ "bulk:results:data",
476
+ "data:results:bulk",
477
+ "results:data:bulk",
478
+ "results:bulk:data"
479
+ ]
480
+ },
404
481
  "data:create:file": {
405
482
  "aliases": [],
406
483
  "args": {},
@@ -604,6 +681,12 @@
604
681
  "summary": "Get API performance data.",
605
682
  "allowNo": false,
606
683
  "type": "boolean"
684
+ },
685
+ "skip-assignment-rules": {
686
+ "name": "skip-assignment-rules",
687
+ "summary": "Don't apply active assignment rules when creating the record; applies to Account, Case, and Lead records.",
688
+ "allowNo": false,
689
+ "type": "boolean"
607
690
  }
608
691
  },
609
692
  "hasDynamicHelp": true,
@@ -658,83 +741,6 @@
658
741
  "record:create:data"
659
742
  ]
660
743
  },
661
- "data:bulk:results": {
662
- "aliases": [],
663
- "args": {},
664
- "description": "Use this command to get the complete results after running one of the CLI commands that uses Bulk API 2.0 to ingest (import, update, upsert, or delete) large datasets to your org, such as \"data import bulk\". The previously-run bulk command must have completed; if it's still processing, run the corresponding resume command first, such as \"data import resume.\" Make note of the job ID of the previous bulk command because you use it to run this command. \n\nYou can also use this command to get results from running a bulk ingest job with a different tool, such as Data Loader, as long as you have the job ID. For information on Data Loader, see https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/data_loader_intro.htm. \n\nThis command first displays the status of the previous bulk job, the operation that was executed in the org (such as insert or hard delete), and the updated Salesforce object. The command then displays how many records were processed in total, and how many were successful or failed. Finally, the output displays the names of the generated CSV-formatted files that contain the specific results for each ingested record. Depending on the success or failure of the bulk command, the results files can include the IDs of inserted records or the specific errors. When possible, if the ingest job failed or was aborted, you also get a CSV file with the unprocessed results.",
665
- "examples": [
666
- "Get results from a bulk ingest job; use the org with alias \"my-scratch\":\n<%= config.bin %> <%= command.id %> --job-id 7507i000fake341G --target-org my-scratch"
667
- ],
668
- "flags": {
669
- "json": {
670
- "description": "Format output as json.",
671
- "helpGroup": "GLOBAL",
672
- "name": "json",
673
- "allowNo": false,
674
- "type": "boolean"
675
- },
676
- "flags-dir": {
677
- "helpGroup": "GLOBAL",
678
- "name": "flags-dir",
679
- "summary": "Import flag values from a directory.",
680
- "hasDynamicHelp": false,
681
- "multiple": false,
682
- "type": "option"
683
- },
684
- "job-id": {
685
- "char": "i",
686
- "name": "job-id",
687
- "required": true,
688
- "summary": "Job ID of the bulk job.",
689
- "hasDynamicHelp": false,
690
- "multiple": false,
691
- "type": "option"
692
- },
693
- "target-org": {
694
- "char": "o",
695
- "name": "target-org",
696
- "noCacheDefault": true,
697
- "required": true,
698
- "summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
699
- "hasDynamicHelp": true,
700
- "multiple": false,
701
- "type": "option"
702
- },
703
- "api-version": {
704
- "description": "Override the api version used for api requests made by this command",
705
- "name": "api-version",
706
- "hasDynamicHelp": false,
707
- "multiple": false,
708
- "type": "option"
709
- }
710
- },
711
- "hasDynamicHelp": true,
712
- "hiddenAliases": [],
713
- "id": "data:bulk:results",
714
- "pluginAlias": "@salesforce/plugin-data",
715
- "pluginName": "@salesforce/plugin-data",
716
- "pluginType": "core",
717
- "strict": true,
718
- "summary": "Get the results of a bulk ingest job that you previously ran.",
719
- "enableJsonFlag": true,
720
- "isESM": true,
721
- "relativePath": [
722
- "lib",
723
- "commands",
724
- "data",
725
- "bulk",
726
- "results.js"
727
- ],
728
- "aliasPermutations": [],
729
- "permutations": [
730
- "data:bulk:results",
731
- "bulk:data:results",
732
- "bulk:results:data",
733
- "data:results:bulk",
734
- "results:data:bulk",
735
- "results:bulk:data"
736
- ]
737
- },
738
744
  "data:delete:bulk": {
739
745
  "aliases": [],
740
746
  "args": {},
@@ -2323,6 +2329,12 @@
2323
2329
  "summary": "Get API performance data.",
2324
2330
  "allowNo": false,
2325
2331
  "type": "boolean"
2332
+ },
2333
+ "skip-assignment-rules": {
2334
+ "name": "skip-assignment-rules",
2335
+ "summary": "Don't apply active assignment rules when updating the record; applies to Account, Case, and Lead records.",
2336
+ "allowNo": false,
2337
+ "type": "boolean"
2326
2338
  }
2327
2339
  },
2328
2340
  "hasDynamicHelp": true,
@@ -3166,5 +3178,5 @@
3166
3178
  ]
3167
3179
  }
3168
3180
  },
3169
- "version": "5.0.2"
3181
+ "version": "5.1.0"
3170
3182
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-data",
3
- "version": "5.0.2",
3
+ "version": "5.1.0",
4
4
  "description": "Plugin for salesforce data commands",
5
5
  "author": "Salesforce",
6
6
  "homepage": "https://github.com/salesforcecli/plugin-data",
@@ -274,7 +274,7 @@
274
274
  "exports": "./lib/index.js",
275
275
  "type": "module",
276
276
  "sfdx": {
277
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/5.0.2.crt",
278
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/5.0.2.sig"
277
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/5.1.0.crt",
278
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-data/5.1.0.sig"
279
279
  }
280
280
  }