You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: messages/soql.query.md
+1-26Lines changed: 1 addition & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,7 @@ Execute a SOQL query.
6
6
7
7
Specify the SOQL query at the command line with the --query flag or read the query from a file with the --file flag.
8
8
9
-
If your query returns more than 10,000 records, specify the --bulk flag. The command then runs the query using Bulk API 2.0, which has higher limits than the default API used by the command.
10
-
11
-
When using --bulk, the command waits 3 minutes by default for the query to complete. Use the --wait parameter to specify a different number of minutes to wait, or set --wait to 0 to immediately return control to the terminal. If you set --wait to 0, or you use the --async flag, or the command simply times out, the command displays an ID. Pass this ID to the the "data query resume" command using the --bulk-query-id flag to get the results; pass the ID to the "data resume" command to get the job status.
9
+
If your query returns more than 10,000 records, prefer to use the `sf data export bulk` command instead. It runs the query using Bulk API 2.0, which has higher limits than the default API used by the command.
12
10
13
11
# examples
14
12
@@ -24,10 +22,6 @@ When using --bulk, the command waits 3 minutes by default for the query to compl
24
22
25
23
<%= config.bin %> <%= command.id %> --query "SELECT Name FROM ApexTrigger" --use-tooling-api
26
24
27
-
- Use Bulk API 2.0 to run a query that returns many rows, and return control to the terminal immediately:
28
-
29
-
<%= config.bin %> <%= command.id %> --query "SELECT Id FROM Contact" --bulk --wait 0
30
-
31
25
# flags.query.summary
32
26
33
27
SOQL query to execute.
@@ -40,22 +34,10 @@ Use Tooling API so you can run queries on Tooling API objects.
40
34
41
35
File that contains the SOQL query.
42
36
43
-
# flags.bulk.summary
44
-
45
-
Use Bulk API 2.0 to run the query.
46
-
47
-
# flags.async.summary
48
-
49
-
Use Bulk API 2.0, but don't wait for the job to complete.
50
-
51
37
# flags.all-rows.summary
52
38
53
39
Include deleted records. By default, deleted records are not returned.
54
40
55
-
# flags.wait.summary
56
-
57
-
Time to wait for the command to finish, in minutes.
58
-
59
41
# flags.output-file.summary
60
42
61
43
File where records are written; only CSV and JSON output formats are supported.
@@ -67,10 +49,3 @@ Total number of records retrieved: %s.
67
49
# queryRunningMessage
68
50
69
51
Querying Data
70
-
71
-
# bulkQueryTimeout
72
-
73
-
Query ID: %s
74
-
Query is in progress.
75
-
76
-
Run "sf data query resume -i %s -o %s" to get the latest status and results.
0 commit comments