@salesforce/plugin-data 2.1.20 → 2.1.22

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.
Files changed (109) hide show
  1. package/README.md +947 -320
  2. package/lib/api/data/tree/exportApi.js +66 -73
  3. package/lib/api/data/tree/exportApi.js.map +1 -1
  4. package/lib/api/data/tree/importApi.js +62 -62
  5. package/lib/api/data/tree/importApi.js.map +1 -1
  6. package/lib/batcher.js +80 -101
  7. package/lib/batcher.js.map +1 -1
  8. package/lib/commands/data/create/record.js +64 -0
  9. package/lib/commands/data/create/record.js.map +1 -0
  10. package/lib/commands/data/delete/bulk.js +78 -0
  11. package/lib/commands/data/delete/bulk.js.map +1 -0
  12. package/lib/commands/data/delete/record.js +83 -0
  13. package/lib/commands/data/delete/record.js.map +1 -0
  14. package/lib/commands/data/export/tree.js +57 -0
  15. package/lib/commands/data/export/tree.js.map +1 -0
  16. package/lib/commands/data/get/record.js +73 -0
  17. package/lib/commands/data/get/record.js.map +1 -0
  18. package/lib/commands/data/import/tree.js +85 -0
  19. package/lib/commands/data/import/tree.js.map +1 -0
  20. package/lib/commands/data/query/resume.js +55 -0
  21. package/lib/commands/data/query/resume.js.map +1 -0
  22. package/lib/commands/data/query.js +283 -0
  23. package/lib/commands/data/query.js.map +1 -0
  24. package/lib/commands/data/resume.js +64 -0
  25. package/lib/commands/data/resume.js.map +1 -0
  26. package/lib/commands/data/update/record.js +101 -0
  27. package/lib/commands/data/update/record.js.map +1 -0
  28. package/lib/commands/data/upsert/bulk.js +88 -0
  29. package/lib/commands/data/upsert/bulk.js.map +1 -0
  30. package/lib/dataCommand.js +103 -202
  31. package/lib/dataCommand.js.map +1 -1
  32. package/lib/dataSoqlQueryTypes.js +2 -6
  33. package/lib/dataSoqlQueryTypes.js.map +1 -1
  34. package/lib/flags.js +27 -0
  35. package/lib/flags.js.map +1 -0
  36. package/lib/reporters.js +58 -66
  37. package/lib/reporters.js.map +1 -1
  38. package/messages/batcher.md +39 -0
  39. package/messages/bulk.delete.md +31 -0
  40. package/messages/bulk.report.md +17 -0
  41. package/messages/bulk.status.md +29 -0
  42. package/messages/bulk.upsert.md +43 -0
  43. package/messages/exportApi.md +25 -0
  44. package/messages/importApi.md +52 -0
  45. package/messages/messages.md +20 -0
  46. package/messages/record.create.md +45 -0
  47. package/messages/record.delete.md +53 -0
  48. package/messages/record.get.md +47 -0
  49. package/messages/record.update.md +61 -0
  50. package/messages/soql.query.md +72 -0
  51. package/messages/tree.export.md +41 -0
  52. package/messages/tree.import.md +37 -0
  53. package/oclif.manifest.json +1 -1
  54. package/package.json +50 -51
  55. package/lib/api/data/tree/exportApi.d.ts +0 -77
  56. package/lib/api/data/tree/importApi.d.ts +0 -60
  57. package/lib/batcher.d.ts +0 -79
  58. package/lib/commands/force/data/bulk/delete.d.ts +0 -11
  59. package/lib/commands/force/data/bulk/delete.js +0 -58
  60. package/lib/commands/force/data/bulk/delete.js.map +0 -1
  61. package/lib/commands/force/data/bulk/status.d.ts +0 -11
  62. package/lib/commands/force/data/bulk/status.js +0 -61
  63. package/lib/commands/force/data/bulk/status.js.map +0 -1
  64. package/lib/commands/force/data/bulk/upsert.d.ts +0 -11
  65. package/lib/commands/force/data/bulk/upsert.js +0 -76
  66. package/lib/commands/force/data/bulk/upsert.js.map +0 -1
  67. package/lib/commands/force/data/record/create.d.ts +0 -10
  68. package/lib/commands/force/data/record/create.js +0 -58
  69. package/lib/commands/force/data/record/create.js.map +0 -1
  70. package/lib/commands/force/data/record/delete.d.ts +0 -10
  71. package/lib/commands/force/data/record/delete.js +0 -72
  72. package/lib/commands/force/data/record/delete.js.map +0 -1
  73. package/lib/commands/force/data/record/get.d.ts +0 -10
  74. package/lib/commands/force/data/record/get.js +0 -65
  75. package/lib/commands/force/data/record/get.js.map +0 -1
  76. package/lib/commands/force/data/record/update.d.ts +0 -10
  77. package/lib/commands/force/data/record/update.js +0 -90
  78. package/lib/commands/force/data/record/update.js.map +0 -1
  79. package/lib/commands/force/data/soql/bulk/report.d.ts +0 -9
  80. package/lib/commands/force/data/soql/bulk/report.js +0 -45
  81. package/lib/commands/force/data/soql/bulk/report.js.map +0 -1
  82. package/lib/commands/force/data/soql/query.d.ts +0 -64
  83. package/lib/commands/force/data/soql/query.js +0 -300
  84. package/lib/commands/force/data/soql/query.js.map +0 -1
  85. package/lib/commands/force/data/tree/export.d.ts +0 -10
  86. package/lib/commands/force/data/tree/export.js +0 -52
  87. package/lib/commands/force/data/tree/export.js.map +0 -1
  88. package/lib/commands/force/data/tree/import.d.ts +0 -19
  89. package/lib/commands/force/data/tree/import.js +0 -81
  90. package/lib/commands/force/data/tree/import.js.map +0 -1
  91. package/lib/dataCommand.d.ts +0 -57
  92. package/lib/dataSoqlQueryTypes.d.ts +0 -63
  93. package/lib/index.d.ts +0 -2
  94. package/lib/reporters.d.ts +0 -57
  95. package/messages/batcher.json +0 -12
  96. package/messages/bulk.delete.json +0 -12
  97. package/messages/bulk.report.json +0 -7
  98. package/messages/bulk.status.json +0 -12
  99. package/messages/bulk.upsert.json +0 -14
  100. package/messages/exportApi.json +0 -8
  101. package/messages/importApi.json +0 -16
  102. package/messages/messages.json +0 -11
  103. package/messages/record.create.json +0 -15
  104. package/messages/record.delete.json +0 -16
  105. package/messages/record.get.json +0 -14
  106. package/messages/record.update.json +0 -18
  107. package/messages/soql.query.json +0 -26
  108. package/messages/tree.export.json +0 -11
  109. package/messages/tree.import.json +0 -13
package/lib/reporters.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FormatTypes = exports.JsonReporter = exports.CsvReporter = exports.HumanReporter = exports.QueryReporter = exports.Reporter = void 0;
3
+ exports.escape = exports.FormatTypes = exports.JsonReporter = exports.CsvReporter = exports.HumanReporter = void 0;
4
4
  /*
5
5
  * Copyright (c) 2020, salesforce.com, inc.
6
6
  * All rights reserved.
@@ -9,38 +9,33 @@ exports.FormatTypes = exports.JsonReporter = exports.CsvReporter = exports.Human
9
9
  */
10
10
  const os_1 = require("os");
11
11
  const core_1 = require("@salesforce/core");
12
+ const core_2 = require("@oclif/core");
12
13
  const chalk = require("chalk");
13
14
  const ts_types_1 = require("@salesforce/ts-types");
14
15
  const dataSoqlQueryTypes_1 = require("./dataSoqlQueryTypes");
15
16
  core_1.Messages.importMessagesDirectory(__dirname);
16
17
  const messages = core_1.Messages.loadMessages('@salesforce/plugin-data', 'soql.query');
17
18
  class Reporter {
18
- constructor(ux, logger) {
19
- this.ux = ux;
20
- this.logger = logger.child('reporter');
21
- }
22
- log(...args) {
23
- this.ux.log(...args);
19
+ constructor() {
20
+ this.logger = core_1.Logger.childFromRoot('reporter');
24
21
  }
25
22
  }
26
- exports.Reporter = Reporter;
27
23
  class QueryReporter extends Reporter {
28
- constructor(data, columns, ux, logger) {
29
- super(ux, logger);
24
+ constructor(data, columns) {
25
+ super();
30
26
  this.columns = [];
31
27
  this.columns = columns;
32
28
  this.data = data;
33
29
  }
34
30
  }
35
- exports.QueryReporter = QueryReporter;
36
31
  class HumanReporter extends QueryReporter {
37
- constructor(data, columns, ux, logger) {
38
- super(data, columns, ux, logger);
32
+ constructor(data, columns) {
33
+ super(data, columns);
39
34
  }
40
35
  display() {
41
36
  const { attributeNames, children, aggregates } = this.parseFields();
42
37
  // in case of count() there are no records, but there is a totalSize
43
- const totalCount = this.data.result.records.length || this.data.result.totalSize;
38
+ const totalCount = this.data.result.records.length ? this.data.result.records.length : this.data.result.totalSize;
44
39
  this.soqlQuery(attributeNames, this.massageRows(this.data.result.records, children, aggregates), totalCount);
45
40
  }
46
41
  parseFields() {
@@ -79,8 +74,8 @@ class HumanReporter extends QueryReporter {
79
74
  }
80
75
  soqlQuery(columns, records, totalCount) {
81
76
  this.prepNullValues(records);
82
- this.ux.table(records, this.prepColumns(columns));
83
- this.log(chalk.bold(messages.getMessage('displayQueryRecordsRetrieved', [totalCount])));
77
+ core_2.CliUx.ux.table(records, prepColumns(columns));
78
+ core_2.CliUx.ux.log(chalk.bold(messages.getMessage('displayQueryRecordsRetrieved', [totalCount])));
84
79
  }
85
80
  prepNullValues(records) {
86
81
  records
@@ -101,28 +96,7 @@ class HumanReporter extends QueryReporter {
101
96
  }
102
97
  });
103
98
  }
104
- prepColumns(columns) {
105
- const formattedColumns = {};
106
- columns
107
- .map((field) => field)
108
- .filter((field) => field)
109
- .map((field) => (formattedColumns[field] = {
110
- header: field.toUpperCase(),
111
- get: (row) => {
112
- // first test if key exists, if so, return value
113
- if (Reflect.has(row, field)) {
114
- return Reflect.get(row, field) || '';
115
- }
116
- else {
117
- // if not, try to find it query
118
- return (0, ts_types_1.get)(row, field) || '';
119
- }
120
- },
121
- }));
122
- return formattedColumns;
123
- }
124
99
  // public massageRows(queryResults: BasicRecord[], children: string[], aggregates: Field[]): BasicRecord[] {
125
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
126
100
  massageRows(queryResults, children, aggregates) {
127
101
  // some fields will return a JSON object that isn't accessible via the query (SELECT Metadata FROM RemoteProxy)
128
102
  // some will return a JSON that IS accessible via the query (SELECT owner.Profile.Name FROM Lead)
@@ -143,9 +117,8 @@ class HumanReporter extends QueryReporter {
143
117
  });
144
118
  });
145
119
  // There are subqueries or aggregates. Massage the data.
146
- let qr;
147
120
  if (children.length > 0 || aggregates.length > 0) {
148
- qr = queryResults.reduce((newResults, result) => {
121
+ const qr = queryResults.reduce((newResults, result) => {
149
122
  // Aggregates are soql functions that aggregate data, like "SELECT avg(total)" and
150
123
  // are returned in the data as exprX. Aggregates can have aliases, like "avg(total) totalAverage"
151
124
  // and are returned in the data as the alias.
@@ -195,8 +168,9 @@ class HumanReporter extends QueryReporter {
195
168
  newResults.push(result, ...subResults);
196
169
  return newResults;
197
170
  }, []);
171
+ return qr;
198
172
  }
199
- return qr ?? queryResults;
173
+ return queryResults;
200
174
  }
201
175
  }
202
176
  exports.HumanReporter = HumanReporter;
@@ -204,30 +178,13 @@ const SEPARATOR = ',';
204
178
  const DOUBLE_QUOTE = '"';
205
179
  const SHOULD_QUOTE_REGEXP = new RegExp(`[${SEPARATOR}${DOUBLE_QUOTE}${os_1.EOL}]`);
206
180
  class CsvReporter extends QueryReporter {
207
- constructor(data, columns, ux, logger) {
208
- super(data, columns, ux, logger);
209
- }
210
- /**
211
- * Escape a value to be placed in a CSV row. We follow rfc 4180
212
- * https://tools.ietf.org/html/rfc4180#section-2 and will not surround the
213
- * value in quotes if it doesn't contain the separator, double quote, or EOL.
214
- *
215
- * @param value The escaped value
216
- */
217
- escape(value) {
218
- if (value && SHOULD_QUOTE_REGEXP.test(value)) {
219
- return `"${value.replace(/"/gi, '""')}"`;
220
- }
221
- return value;
181
+ constructor(data, columns) {
182
+ super(data, columns);
222
183
  }
223
184
  display() {
224
185
  const attributeNames = this.massageRows();
225
186
  // begin output
226
- this.log(attributeNames
227
- .map((name) => {
228
- return this.escape(name);
229
- })
230
- .join(SEPARATOR));
187
+ core_2.CliUx.ux.log(attributeNames.map((name) => (0, exports.escape)(name)).join(SEPARATOR));
231
188
  // explained why we need this below - foreach does not allow types
232
189
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
233
190
  // @ts-ignore
@@ -237,18 +194,18 @@ class CsvReporter extends QueryReporter {
237
194
  // the standard case returns {field:{nested: 'value'}}, while the bulk will return {field.nested: 'value'}
238
195
  const value = (0, ts_types_1.get)(row, name, row[name]);
239
196
  if ((0, ts_types_1.isString)(value)) {
240
- return this.escape(value);
197
+ return (0, exports.escape)(value);
241
198
  // if value is null, then typeof value === 'object' so check before typeof to avoid illegal csv
242
199
  }
243
200
  else if (value === null) {
244
201
  return;
245
202
  }
246
203
  else if (typeof value === 'object') {
247
- return this.escape(JSON.stringify(value));
204
+ return (0, exports.escape)(JSON.stringify(value));
248
205
  }
249
206
  return value;
250
207
  });
251
- this.log(values.join(SEPARATOR));
208
+ core_2.CliUx.ux.log(values.join(SEPARATOR));
252
209
  });
253
210
  }
254
211
  massageRows() {
@@ -326,14 +283,15 @@ class CsvReporter extends QueryReporter {
326
283
  }
327
284
  exports.CsvReporter = CsvReporter;
328
285
  class JsonReporter extends QueryReporter {
329
- constructor(data, columns, ux, logger) {
330
- super(data, columns, ux, logger);
286
+ constructor(data, columns) {
287
+ super(data, columns);
331
288
  }
289
+ // eslint-disable-next-line class-methods-use-this
332
290
  log() {
333
291
  return;
334
292
  }
335
293
  display() {
336
- this.ux.styledJSON({ status: 0, result: this.data.result });
294
+ core_2.CliUx.ux.styledJSON({ status: 0, result: this.data.result });
337
295
  }
338
296
  }
339
297
  exports.JsonReporter = JsonReporter;
@@ -345,4 +303,38 @@ exports.FormatTypes = {
345
303
  csv: CsvReporter,
346
304
  json: JsonReporter,
347
305
  };
306
+ const prepColumns = (columns) => {
307
+ const formattedColumns = {};
308
+ columns
309
+ .map((field) => field)
310
+ .filter(ts_types_1.isString)
311
+ .map((field) => (formattedColumns[field] = {
312
+ header: field.toUpperCase(),
313
+ get: (row) => {
314
+ // first test if key exists, if so, return value
315
+ if (Reflect.has(row, field)) {
316
+ return Reflect.get(row, field) || '';
317
+ }
318
+ else {
319
+ // if not, try to find it query
320
+ return (0, ts_types_1.get)(row, field) || '';
321
+ }
322
+ },
323
+ }));
324
+ return formattedColumns;
325
+ };
326
+ /**
327
+ * Escape a value to be placed in a CSV row. We follow rfc 4180
328
+ * https://tools.ietf.org/html/rfc4180#section-2 and will not surround the
329
+ * value in quotes if it doesn't contain the separator, double quote, or EOL.
330
+ *
331
+ * @param value The escaped value
332
+ */
333
+ const escape = (value) => {
334
+ if (value && SHOULD_QUOTE_REGEXP.test(value)) {
335
+ return `"${value.replace(/"/gi, '""')}"`;
336
+ }
337
+ return value;
338
+ };
339
+ exports.escape = escape;
348
340
  //# sourceMappingURL=reporters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reporters.js","sourceRoot":"","sources":["../src/reporters.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,2BAAyB;AACzB,2CAAoD;AAEpD,+BAA+B;AAC/B,m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AK,CAAC;AACf,CAAC,CAAC;AALW,QAAA,MAAM,UAKjB"}
@@ -0,0 +1,39 @@
1
+ # BulkBatch
2
+
3
+ Batch #%s
4
+
5
+ # BulkError
6
+
7
+ Upsert errors
8
+
9
+ # BulkJobStatus
10
+
11
+ Job Status
12
+
13
+ # BatchStatus
14
+
15
+ Batch Status
16
+
17
+ # PollingInfo
18
+
19
+ Will poll the batch statuses every %s seconds.
20
+ To fetch the status on your own, press CTRL+C and use the command:
21
+ sfdx data resume -i %s -b [<batchId>]
22
+
23
+ # ExternalIdRequired
24
+
25
+ An External ID is required on %s to perform an upsert.
26
+
27
+ # TimeOut
28
+
29
+ The operation timed out. Check the status with command:
30
+ sfdx data resume -i %s -b %s
31
+
32
+ # CheckStatusCommand
33
+
34
+ Check batch #%s’s status with the command:
35
+ sfdx data resume -i %s -b %s
36
+
37
+ # BatchQueued
38
+
39
+ Batch #%s queued (Batch ID: %s).
@@ -0,0 +1,31 @@
1
+ # summary
2
+
3
+ Bulk delete records from an org using a CSV file.
4
+
5
+ # description
6
+
7
+ The CSV file must have only one column ("Id") and then the list of record IDs you want to delete, one ID per line.
8
+
9
+ When you execute this command, it starts a job and one or more batches, displays their IDs, and then immediately returns control of the terminal to you by default. If you prefer to wait, set the --wait flag to the number of minutes; if it times out, the command outputs the IDs. Use the job and batch IDs to check the status of the job with the "<%= config.bin %> data resume" command. A single job can contain many batches, depending on the length of the CSV file.
10
+
11
+ # examples
12
+
13
+ - Bulk delete Account records using the list of IDs in the "files/delete.csv" file:
14
+
15
+ <%= config.bin %> <%= command.id %> --sobject Account --file files/delete.csv
16
+
17
+ - Bulk delete records from a custom object and wait 5 minutes for the command to complete:
18
+
19
+ <%= config.bin %> <%= command.id %> --sobject MyObject__c --file files/delete.csv --wait 5
20
+
21
+ # flags.sobjecttype
22
+
23
+ API name of the Salesforce object, either standard or custom, that you want to delete records from.
24
+
25
+ # flags.csvfile
26
+
27
+ CSV file that contains the IDs of the records to delete.
28
+
29
+ # flags.wait
30
+
31
+ Number of minutes to wait for the command to complete before displaying the results.
@@ -0,0 +1,17 @@
1
+ # summary
2
+
3
+ View the status of a bulk query.
4
+
5
+ # description
6
+
7
+ Run this command using the job ID returned from the "<%= config.bin %> data query --bulk" command.
8
+
9
+ # examples
10
+
11
+ - View the status of a bulk query with the specified ID:
12
+
13
+ <%= config.bin %> <%= command.id %> --bulk-query-id 7500x000005BdFzXXX
14
+
15
+ # flags.bulkQueryId
16
+
17
+ Job ID of the bulk query.
@@ -0,0 +1,29 @@
1
+ # summary
2
+
3
+ View the status of a bulk data load job or batch.
4
+
5
+ # description
6
+
7
+ Run this command using the job ID or batch ID returned from the "<%= config.bin %> data delete bulk" or "<%= config.bin %> data upsert bulk" commands.
8
+
9
+ # examples
10
+
11
+ - View the status of a bulk load job:
12
+
13
+ <%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA
14
+
15
+ - View the status of a bulk load job and a specific batches:
16
+
17
+ <%= config.bin %> <%= command.id %> --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA
18
+
19
+ # flags.jobid
20
+
21
+ ID of the job whose status you want to view.
22
+
23
+ # flags.batchid
24
+
25
+ ID of the batch whose status you want to view; you must also specify the job ID.
26
+
27
+ # NoBatchFound
28
+
29
+ Unable to find batch %s for job %s.
@@ -0,0 +1,43 @@
1
+ # summary
2
+
3
+ Bulk upsert records to an org from a CSV file.
4
+
5
+ # description
6
+
7
+ An upsert refers to inserting a record into a Salesforce object if the record doesn't already exist, or updating it if it does exist.
8
+
9
+ When you execute this command, it starts a job and one or more batches, displays their IDs, and then immediately returns control of the terminal to you by default. If you prefer to wait, set the --wait flag to the number of minutes; if it times out, the command outputs the IDs. Use the job and batch IDs to check the status of the job with the "<%= config.bin %> data resume" command. A single job can contain many batches, depending on the length of the CSV file.
10
+
11
+ See "Prepare CSV Files" in the Bulk API Developer Guide for details on formatting your CSV file. (https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/datafiles_csv_preparing.htm)
12
+
13
+ By default, the job runs the batches in parallel, which we recommend. You can run jobs serially by specifying the --serial flag. But don't process data in serial mode unless you know this would otherwise result in lock timeouts and you can't reorganize your batches to avoid the locks.
14
+
15
+ # examples
16
+
17
+ - Bulk upsert records to the Contact object:
18
+
19
+ <%= config.bin %> --sobject Contact --file files/contacts.csv --external-id Id
20
+
21
+ - Bulk upsert records to a custom object and wait 5 minutes for the command to complete:
22
+
23
+ <%= config.bin %> <%= command.id %> --sobject MyObject__c --file files/file.csv --external-id MyField__c --wait 5
24
+
25
+ # flags.sobjecttype
26
+
27
+ API name of the Salesforce object, either standard or custom, that you want to upsert records to.
28
+
29
+ # flags.csvfile
30
+
31
+ CSV file that contains the records to upsert.
32
+
33
+ # flags.externalid
34
+
35
+ Name of the external ID field, or the Id field.
36
+
37
+ # flags.wait
38
+
39
+ Number of minutes to wait for the command to complete before displaying the results.
40
+
41
+ # flags.serial
42
+
43
+ Run batches in serial mode.
@@ -0,0 +1,25 @@
1
+ # queryNotProvided
2
+
3
+ Provide a SOQL query or a file that contains a SOQL query.
4
+
5
+ # soqlInvalid
6
+
7
+ Invalid SOQL query: %s
8
+
9
+ # soqlMalformed
10
+
11
+ The provided SOQL query is malformed: %s
12
+
13
+ # soqlMalformedAction
14
+
15
+ Check the SOQL query syntax and try again.
16
+
17
+ # dataExportRecordCount
18
+
19
+ Processed %s records from query: %s
20
+
21
+ # dataExportRecordCountWarning
22
+
23
+ Query returned more than 200 records. Run the command using the --plan flag instead.
24
+ Record Count: %s
25
+ Query: %s
@@ -0,0 +1,52 @@
1
+ # dataFileNotProvided
2
+
3
+ Provide a data plan or file(s).
4
+
5
+ # dataFileNotFound
6
+
7
+ Can't find data file. Indicate a valid path: %s.
8
+
9
+ # unknownContentType
10
+
11
+ Unable to determine content type for file: %s.
12
+
13
+ # dataFileUnsupported
14
+
15
+ Content type: %s not supported.
16
+
17
+ # dataFileEmpty
18
+
19
+ Data file is empty: %s.
20
+
21
+ # dataFileInvalidJson
22
+
23
+ Data file is invalid JSON: %s
24
+
25
+ # dataFileNoRefId
26
+
27
+ Found references in file, but no reference-id content found (%s). Were parent SObjects saved first?
28
+
29
+ # tooManyFiles
30
+
31
+ Specify either sObject tree files or a plan definition file, but not both.
32
+
33
+ # dataImportFailed
34
+
35
+ Import failed from file: %s. Results: %s.
36
+
37
+ # dataPlanValidationError
38
+
39
+ Data plan file %s did not validate against the schema.
40
+
41
+ # dataPlanValidationErrorActions
42
+
43
+ - Did you run the "sfdx data export tree" command with the --plan flag?
44
+
45
+ - Make sure you're importing a plan definition file.
46
+
47
+ - Get help with the import plan schema by running "sfdx data import tree --config-help".
48
+ %s
49
+
50
+ # FlsError
51
+
52
+ We couldn't process your request because you don't have access to %s on %s. To learn more about field-level security, visit Tips and Hints for Page Layouts and Field-Level Security in our Developer Documentation.
@@ -0,0 +1,20 @@
1
+ # perfLogLevelOption
2
+
3
+ Get API performance data.
4
+
5
+ # perfLogLevelOptionLong
6
+
7
+ Gets data on API performance metrics from the server. The data is stored in $HOME/.sfdx/apiPerformanceLog.json.
8
+
9
+ # DataRecordGetNoRecord
10
+
11
+ No matching record found.
12
+
13
+ # DataRecordGetMultipleRecords
14
+
15
+ %s is not a unique qualifier for %s; %s records were retrieved.
16
+ Retrieve only one record by making your --where clause more specific.
17
+
18
+ # TextUtilMalformedKeyValuePair
19
+
20
+ Malformed key=value pair for value: %s.
@@ -0,0 +1,45 @@
1
+ # summary
2
+
3
+ Create and insert a record into a Salesforce or Tooling API object.
4
+
5
+ # description
6
+
7
+ You must specify a value for all required fields of the object.
8
+
9
+ When specifying fields, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.
10
+
11
+ This command inserts a record into Salesforce objects by default. Use the --use-tooling-api flag to insert into a Tooling API object.
12
+
13
+ # flags.sobject
14
+
15
+ API name of the Salesforce or Tooling API object that you're inserting a record into.
16
+
17
+ # flags.values
18
+
19
+ Values for the flags in the form <fieldName>=<value>, separate multiple pairs with spaces.
20
+
21
+ # flags.useToolingApi
22
+
23
+ Use Tooling API so you can insert a record in a Tooling API object.
24
+
25
+ # examples
26
+
27
+ - Insert a record into the Account object of your default org; only the required Name field has a value:
28
+
29
+ <%= config.bin %> <%= command.id %> --sobject Account --values "Name=Acme"
30
+
31
+ - Insert an Account record with values for two fields, one value contains a space; the command uses the org with alias "my-scratch":
32
+
33
+ <%= config.bin %> <%= command.id %> --sobject Account --values "Name='Universal Containers' Website=www.example.com" --target-org my-scratch
34
+
35
+ - Insert a record into the Tooling API object TraceFlag:
36
+
37
+ <%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --values "DebugLevelId=7dl170000008U36AAE StartDate=2022-12-15T00:26:04.000+0000 ExpirationDate=2022-12-15T00:56:04.000+0000 LogType=CLASS_TRACING TracedEntityId=01p17000000R6bLAAS"
38
+
39
+ # createSuccess
40
+
41
+ Successfully created record: %s.
42
+
43
+ # createFailure
44
+
45
+ Failed to create record. %s
@@ -0,0 +1,53 @@
1
+ # summary
2
+
3
+ Deletes a single record from a Salesforce or Tooling API object.
4
+
5
+ # description
6
+
7
+ Specify the record you want to delete with either its ID or with a list of field-value pairs that identify the record. If your list of fields identifies more than one record, the delete fails; the error displays how many records were found.
8
+
9
+ When specifying field-value pairs, use the format <fieldName>=<value>. Enclose all field-value pairs in one set of double quotation marks, delimited by spaces. Enclose values that contain spaces in single quotes.
10
+
11
+ This command deletes a record from Salesforce objects by default. Use the --use-tooling-api flag to delete from a Tooling API object.
12
+
13
+ # flags.sobject
14
+
15
+ API name of the Salesforce or Tooling API object that you're deleting a record from.
16
+
17
+ # flags.recordId
18
+
19
+ ID of the record you’re deleting.
20
+
21
+ # flags.where
22
+
23
+ List of <fieldName>=<value> pairs that identify the record you want to delete.
24
+
25
+ # flags.useToolingApi
26
+
27
+ Use Tooling API so you can delete a record from a Tooling API object.
28
+
29
+ # examples
30
+
31
+ - Delete a record from Account with the specified (truncated) ID:
32
+
33
+ <%= config.bin %> <%= command.id %> --sobject Account --record-id 00180XX
34
+
35
+ - Delete a record from Account whose name equals "Acme":
36
+
37
+ <%= config.bin %> <%= command.id %> --sobject Account --where "Name=Acme"
38
+
39
+ - Delete a record from Account identified with two field values, one that contains a space; the command uses the org with alias "my-scratch":
40
+
41
+ <%= config.bin %> <%= command.id %> --sobject Account --where "Name='Universal Containers' Phone='(123) 456-7890'" --target-org myscratch
42
+
43
+ - Delete a record from the Tooling API object TraceFlag with the specified (truncated) ID:
44
+
45
+ <%= config.bin %> <%= command.id %> --use-tooling-api --sobject TraceFlag --record-id 7tf8c
46
+
47
+ # deleteSuccess
48
+
49
+ Successfully deleted record: %s.
50
+
51
+ # deleteFailure
52
+
53
+ Failed to delete record. %s