@simplysf/simply-aep 0.6.1 → 0.8.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 +208 -579
- package/lib/commands/simply/aep/at4dx/binding/create.d.ts +28 -0
- package/lib/commands/simply/aep/at4dx/binding/create.js +116 -0
- package/lib/commands/simply/aep/at4dx/binding/create.js.map +1 -0
- package/lib/commands/simply/aep/at4dx/binding/list.js +1 -1
- package/lib/commands/simply/aep/at4dx/binding/list.js.map +1 -1
- package/lib/commands/simply/aep/at4dx/binding/update.d.ts +29 -0
- package/lib/commands/simply/aep/at4dx/binding/update.js +119 -0
- package/lib/commands/simply/aep/at4dx/binding/update.js.map +1 -0
- package/lib/commands/simply/aep/at4dx/binding/validate.d.ts +23 -0
- package/lib/commands/simply/aep/at4dx/binding/validate.js +143 -0
- package/lib/commands/simply/aep/at4dx/binding/validate.js.map +1 -0
- package/lib/common/bindingWriteError.d.ts +14 -0
- package/lib/common/bindingWriteError.js +58 -0
- package/lib/common/bindingWriteError.js.map +1 -0
- package/messages/simply.aep.at4dx.binding.create.md +123 -0
- package/messages/simply.aep.at4dx.binding.update.md +121 -0
- package/messages/simply.aep.at4dx.binding.validate.md +65 -0
- package/messages/simply.aep.at4dx.domain-process-binding.validate.md +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -22,12 +22,85 @@ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/sim
|
|
|
22
22
|
|
|
23
23
|
<!-- commands -->
|
|
24
24
|
|
|
25
|
+
- [`sf simply aep at4dx binding create`](#sf-simply-aep-at4dx-binding-create)
|
|
25
26
|
- [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
|
|
27
|
+
- [`sf simply aep at4dx binding update`](#sf-simply-aep-at4dx-binding-update)
|
|
28
|
+
- [`sf simply aep at4dx binding validate`](#sf-simply-aep-at4dx-binding-validate)
|
|
26
29
|
- [`sf simply aep at4dx domain-process-binding create`](#sf-simply-aep-at4dx-domain-process-binding-create)
|
|
27
30
|
- [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
|
|
28
31
|
- [`sf simply aep at4dx domain-process-binding set`](#sf-simply-aep-at4dx-domain-process-binding-set)
|
|
29
32
|
- [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
|
|
30
33
|
|
|
34
|
+
## `sf simply aep at4dx binding create`
|
|
35
|
+
|
|
36
|
+
Create a new AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
USAGE
|
|
40
|
+
$ sf simply aep at4dx binding create -t service|selector|domain -n <value> -c <value> [--json] [--flags-dir <value>] [-d <value>]
|
|
41
|
+
[-o <value>] [--api-version <value>] [--wait <value>] [--label <value>] [--binding-interface <value>] [-s <value>]
|
|
42
|
+
[--sobject-alternate] [--priority <value>] [--force]
|
|
43
|
+
|
|
44
|
+
FLAGS
|
|
45
|
+
-c, --to=<value> (required) The interface/SObject's implementing Apex class (To__c).
|
|
46
|
+
-d, --source-dir=<value> The package directory to create the binding's .md-meta.xml under. Created if the
|
|
47
|
+
customMetadata folder doesn't exist yet.
|
|
48
|
+
-n, --developer-name=<value> (required) The binding's DeveloperName. Must start with a letter, contain only
|
|
49
|
+
letters, numbers, and single underscores, not end with an underscore, and be 40
|
|
50
|
+
characters or fewer.
|
|
51
|
+
-o, --target-org=<value> Deploy the generated binding to this org after writing it.
|
|
52
|
+
-s, --sobject=<value> The SObject API name to bind against (BindingSObject__c, or
|
|
53
|
+
BindingSObjectAlternate__c with --sobject-alternate). Required, and only allowed,
|
|
54
|
+
when --type is selector or domain.
|
|
55
|
+
-t, --type=<option> (required) Which Application Factory binding type to create: service, selector, or
|
|
56
|
+
domain.
|
|
57
|
+
<options: service|selector|domain>
|
|
58
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
59
|
+
--binding-interface=<value> BindingInterface__c — the Apex interface this binding maps to. Required, and only
|
|
60
|
+
allowed, when --type is service.
|
|
61
|
+
--force Write (and deploy) even if validation finds an error-severity issue. Validation still
|
|
62
|
+
runs and its issues are still printed and returned.
|
|
63
|
+
--label=<value> The binding's label. Defaults to --developer-name. Must be 40 characters or fewer.
|
|
64
|
+
--priority=<value> Priority__c. Higher numbers are higher priority; omit for least priority. Only
|
|
65
|
+
allowed when --type is service or selector — Domain has no Priority__c field.
|
|
66
|
+
--[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c. Use this
|
|
67
|
+
for a SObject that can't be referenced through an EntityDefinition field at all (for
|
|
68
|
+
example ServiceResource and other Setup objects). Only allowed when --type is
|
|
69
|
+
selector or domain.
|
|
70
|
+
--wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
71
|
+
|
|
72
|
+
GLOBAL FLAGS
|
|
73
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
74
|
+
--json Format output as json.
|
|
75
|
+
|
|
76
|
+
DESCRIPTION
|
|
77
|
+
Create a new AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
|
|
78
|
+
|
|
79
|
+
Generates a `<LocalObjectName>.<DeveloperName>.md-meta.xml` file from the given flags and writes it under
|
|
80
|
+
--source-dir, deploys it to --target-org, or both. Validates the resulting binding — alongside everything else of the
|
|
81
|
+
same --type already in scope — with the same rules `simply aep at4dx binding validate` uses, and refuses to write if
|
|
82
|
+
that introduces an error-severity issue unless --force is passed. At least one of --source-dir/--target-org is
|
|
83
|
+
required; both may be given at once (write to source and deploy it live in the same run). Given --target-org alone,
|
|
84
|
+
the file is written to a temporary directory, deployed, and discarded — no working-tree footprint.
|
|
85
|
+
|
|
86
|
+
`--type service` uses --binding-interface (BindingInterface__c) and rejects --sobject/--sobject-alternate; `--type
|
|
87
|
+
selector`/`domain` use --sobject and write it to BindingSObject__c by default (pass --sobject-alternate to write
|
|
88
|
+
BindingSObjectAlternate__c instead, for a SObject — such as ServiceResource and other Setup objects — that can't be
|
|
89
|
+
referenced through an EntityDefinition field at all). `--priority` is accepted for `--type service`/`selector` only;
|
|
90
|
+
Domain has no such field.
|
|
91
|
+
|
|
92
|
+
EXAMPLES
|
|
93
|
+
$ sf simply aep at4dx binding create --source-dir sfdx-source/core --type service --developer-name My_Service_Binding --binding-interface IMyService --to MyServiceImpl
|
|
94
|
+
|
|
95
|
+
$ sf simply aep at4dx binding create --target-org myOrg --type selector --developer-name Account_Selector --sobject Account --to AccountsSelector --priority 1
|
|
96
|
+
|
|
97
|
+
$ sf simply aep at4dx binding create --source-dir sfdx-source/core --type domain --developer-name Account_Domain --sobject Account --to AccountDomain
|
|
98
|
+
|
|
99
|
+
$ sf simply aep at4dx binding create --source-dir sfdx-source/core --type selector --developer-name ServiceResource_Selector --sobject ServiceResource --sobject-alternate --to ServiceResourceSelector
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
_See code: [lib/commands/simply/aep/at4dx/binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/create.js)_
|
|
103
|
+
|
|
31
104
|
## `sf simply aep at4dx binding list`
|
|
32
105
|
|
|
33
106
|
List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
|
|
@@ -82,7 +155,133 @@ FLAG DESCRIPTIONS
|
|
|
82
155
|
Comma-separated list of binding types to include. If not specified, all four are included.
|
|
83
156
|
```
|
|
84
157
|
|
|
85
|
-
_See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
158
|
+
_See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
|
|
159
|
+
|
|
160
|
+
## `sf simply aep at4dx binding update`
|
|
161
|
+
|
|
162
|
+
Update an existing AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected org.
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
USAGE
|
|
166
|
+
$ sf simply aep at4dx binding update -t service|selector|domain -n <value> [--json] [--flags-dir <value>] [-d <value>...] [-o
|
|
167
|
+
<value>] [--api-version <value>] [--wait <value>] [--label <value>] [-c <value>] [--binding-interface <value>] [-s
|
|
168
|
+
<value>] [--sobject-alternate] [--priority <value>] [--force]
|
|
169
|
+
|
|
170
|
+
FLAGS
|
|
171
|
+
-c, --to=<value> The interface/SObject's implementing Apex class (To__c). If not given, the existing
|
|
172
|
+
value is kept.
|
|
173
|
+
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source, searched for the
|
|
174
|
+
binding to update.
|
|
175
|
+
-n, --developer-name=<value> (required) The DeveloperName of the binding to update.
|
|
176
|
+
-o, --target-org=<value> Locate (when --source-dir isn't given) and/or deploy the binding to this org.
|
|
177
|
+
-s, --sobject=<value> The SObject API name to bind against. Only allowed when --type is selector or domain.
|
|
178
|
+
If not given, the existing value is kept.
|
|
179
|
+
-t, --type=<option> (required) Which Application Factory binding type to look in: service, selector, or
|
|
180
|
+
domain.
|
|
181
|
+
<options: service|selector|domain>
|
|
182
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
183
|
+
--binding-interface=<value> BindingInterface__c — the Apex interface this binding maps to. Only allowed when
|
|
184
|
+
--type is service. If not given, the existing value is kept.
|
|
185
|
+
--force Write (and deploy) even if validation finds an error-severity issue. Validation still
|
|
186
|
+
runs and its issues are still printed and returned.
|
|
187
|
+
--label=<value> The binding's label. If not given, the existing label is kept.
|
|
188
|
+
--priority=<value> Priority__c. Only allowed when --type is service or selector — Domain has no
|
|
189
|
+
Priority__c field. If not given, the existing value is kept.
|
|
190
|
+
--[no-]sobject-alternate Write --sobject to BindingSObjectAlternate__c instead of BindingSObject__c, for a
|
|
191
|
+
SObject that can't be referenced through an EntityDefinition field at all (for
|
|
192
|
+
example ServiceResource and other Setup objects). Only allowed when --type is
|
|
193
|
+
selector or domain. If not given, the binding keeps whichever field it already uses —
|
|
194
|
+
this flag only needs to be passed to change it.
|
|
195
|
+
--wait=<value> [default: 33] Deploy poll timeout, in minutes. Only meaningful with --target-org.
|
|
196
|
+
|
|
197
|
+
GLOBAL FLAGS
|
|
198
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
199
|
+
--json Format output as json.
|
|
200
|
+
|
|
201
|
+
DESCRIPTION
|
|
202
|
+
Update an existing AT4DX Application Factory binding (Service, Selector, or Domain) in local source and/or a connected
|
|
203
|
+
org.
|
|
204
|
+
|
|
205
|
+
Finds the binding named --developer-name (of the given --type) in local source and/or a connected org, applies only
|
|
206
|
+
the fields given as flags — everything else, including which SObject reference field a Selector/Domain binding uses,
|
|
207
|
+
is preserved from the found record — and rewrites its `.md-meta.xml` file. Validates the resulting binding — alongside
|
|
208
|
+
everything else of the same --type already in scope — with the same rules `simply aep at4dx binding validate` uses,
|
|
209
|
+
and refuses to write if that introduces an error-severity issue unless --force is passed.
|
|
210
|
+
|
|
211
|
+
When --source-dir is given, the binding is located there (searched across every directory given, same as
|
|
212
|
+
`list`/`validate`) and that exact file is rewritten; the found file is also deployed if --target-org is given. When
|
|
213
|
+
only --target-org is given, the binding is located and updated directly in the org via a temporary file, deployed,
|
|
214
|
+
then discarded — no working-tree footprint.
|
|
215
|
+
|
|
216
|
+
--developer-name identifies the binding to update and can't itself be changed by this command. --type identifies which
|
|
217
|
+
Application Factory Custom Metadata Type to look in and can't be changed either — bindings don't move between types.
|
|
218
|
+
|
|
219
|
+
EXAMPLES
|
|
220
|
+
$ sf simply aep at4dx binding update --source-dir sfdx-source/core --source-dir sfdx-source/app --type selector --developer-name Account_Selector --priority 5
|
|
221
|
+
|
|
222
|
+
$ sf simply aep at4dx binding update --target-org myOrg --type domain --developer-name Account_Domain --to AccountDomainV2
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
_See code: [lib/commands/simply/aep/at4dx/binding/update.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/update.js)_
|
|
226
|
+
|
|
227
|
+
## `sf simply aep at4dx binding validate`
|
|
228
|
+
|
|
229
|
+
Validate the AT4DX Application Factory bindings configured in an org or local source, failing when a wiring problem is found.
|
|
230
|
+
|
|
231
|
+
```
|
|
232
|
+
USAGE
|
|
233
|
+
$ sf simply aep at4dx binding validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
|
|
234
|
+
service|selector|domain|unit-of-work...]
|
|
235
|
+
|
|
236
|
+
FLAGS
|
|
237
|
+
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
238
|
+
local-source discovery.
|
|
239
|
+
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
240
|
+
-t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
241
|
+
<options: service|selector|domain|unit-of-work>
|
|
242
|
+
--api-version=<value> Override the api version used for api requests made by this command
|
|
243
|
+
|
|
244
|
+
GLOBAL FLAGS
|
|
245
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
246
|
+
--json Format output as json.
|
|
247
|
+
|
|
248
|
+
DESCRIPTION
|
|
249
|
+
Validate the AT4DX Application Factory bindings configured in an org or local source, failing when a wiring problem is
|
|
250
|
+
found.
|
|
251
|
+
|
|
252
|
+
Reads `ApplicationFactory_ServiceBinding__mdt`, `ApplicationFactory_SelectorBinding__mdt`, and
|
|
253
|
+
`ApplicationFactory_DomainBinding__mdt` — either from a live org or from local Salesforce DX source — and checks them
|
|
254
|
+
for problems `simply aep at4dx binding list` doesn't fail on: a binding with no resolvable key, a Selector/Domain
|
|
255
|
+
binding whose SObject reference is ambiguous or names a standard object that can't actually go through an
|
|
256
|
+
EntityDefinition metadata relationship, two records sharing a platform-unique `To__c`, two Domain records resolving to
|
|
257
|
+
the same SObject, and the same DeveloperName defined more than once within one binding type. Exactly one of
|
|
258
|
+
`--target-org` or `--source-dir` must be specified.
|
|
259
|
+
|
|
260
|
+
`ApplicationFactory_UnitOfWorkBinding__mdt` records are scanned when `--type` includes `unit-of-work` (to keep
|
|
261
|
+
`--type`'s meaning consistent with `binding list`) but never contribute an issue — every record contributes to one
|
|
262
|
+
ordered registration list with no possible wiring conflict.
|
|
263
|
+
|
|
264
|
+
Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
|
|
265
|
+
command) — use this in CI to gate on AT4DX Application Factory wiring problems before they reach an org.
|
|
266
|
+
|
|
267
|
+
EXAMPLES
|
|
268
|
+
$ sf simply aep at4dx binding validate --target-org myOrg
|
|
269
|
+
|
|
270
|
+
$ sf simply aep at4dx binding validate --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
271
|
+
|
|
272
|
+
$ sf simply aep at4dx binding validate --target-org myOrg --type service,selector
|
|
273
|
+
|
|
274
|
+
$ sf simply aep at4dx binding validate --target-org myOrg --json
|
|
275
|
+
|
|
276
|
+
FLAG DESCRIPTIONS
|
|
277
|
+
-t, --type=service|selector|domain|unit-of-work...
|
|
278
|
+
|
|
279
|
+
Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
280
|
+
|
|
281
|
+
Comma-separated list of binding types to include. If not specified, all four are included.
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
_See code: [lib/commands/simply/aep/at4dx/binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/validate.js)_
|
|
86
285
|
|
|
87
286
|
## `sf simply aep at4dx domain-process-binding create`
|
|
88
287
|
|
|
@@ -163,7 +362,7 @@ EXAMPLES
|
|
|
163
362
|
$ sf simply aep at4dx domain-process-binding create --source-dir sfdx-source/core --developer-name ServiceResource_Before_Update_Sync --sobject ServiceResource --sobject-alternate --process-context TriggerExecution --trigger-operation Before_Update --type Action --class-to-inject ServiceResourceSyncAction --order 10
|
|
164
363
|
```
|
|
165
364
|
|
|
166
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
365
|
+
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/create.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/create.js)_
|
|
167
366
|
|
|
168
367
|
## `sf simply aep at4dx domain-process-binding list`
|
|
169
368
|
|
|
@@ -209,7 +408,7 @@ EXAMPLES
|
|
|
209
408
|
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
|
|
210
409
|
```
|
|
211
410
|
|
|
212
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
411
|
+
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
|
|
213
412
|
|
|
214
413
|
## `sf simply aep at4dx domain-process-binding set`
|
|
215
414
|
|
|
@@ -288,165 +487,7 @@ EXAMPLES
|
|
|
288
487
|
$ sf simply aep at4dx domain-process-binding set --target-org myOrg --developer-name Account_Before_Insert_Assign_Owner --class-to-inject AccountAssignOwnerActionV2
|
|
289
488
|
```
|
|
290
489
|
|
|
291
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/set.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
292
|
-
|
|
293
|
-
## `sf simply aep at4dx domain-process-binding validate`
|
|
294
|
-
|
|
295
|
-
Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring problem is found.
|
|
296
|
-
|
|
297
|
-
```
|
|
298
|
-
USAGE
|
|
299
|
-
$ sf simply aep at4dx domain-process-binding validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
|
|
300
|
-
<value>...]
|
|
301
|
-
|
|
302
|
-
FLAGS
|
|
303
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
304
|
-
local-source discovery.
|
|
305
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
306
|
-
-s, --sobject=<value>... SObject API name(s) to filter to. Applies only to issues that name an SObject; issues
|
|
307
|
-
that span the whole scan (a duplicate DeveloperName, or a binding with no resolvable
|
|
308
|
-
SObject) are always reported, since filtering could hide the exact conflict they exist to
|
|
309
|
-
catch. If not specified, every issue is included.
|
|
310
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
311
|
-
|
|
312
|
-
GLOBAL FLAGS
|
|
313
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
314
|
-
--json Format output as json.
|
|
315
|
-
|
|
316
|
-
DESCRIPTION
|
|
317
|
-
Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring
|
|
318
|
-
problem is found.
|
|
319
|
-
|
|
320
|
-
Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
|
|
321
|
-
from local Salesforce DX source, and checks it for problems `simply aep at4dx domain-process-binding list` doesn't
|
|
322
|
-
fail on: two active records silently fighting over the same execution slot, a binding with no resolvable SObject, a
|
|
323
|
-
binding whose declared process context doesn't match the field that's actually populated (so it never runs), the same
|
|
324
|
-
DeveloperName defined more than once, and an ambiguous SObject reference. Exactly one of `--target-org` or
|
|
325
|
-
`--source-dir` must be specified.
|
|
326
|
-
|
|
327
|
-
Prints a table of every issue found. When --sobject is specified, scan-wide issues (a duplicate DeveloperName, or a
|
|
328
|
-
binding with no resolvable SObject) print in their own section below the filtered table, since they can't be
|
|
329
|
-
attributed to one SObject. Exits non-zero when any issue is an error (a warning alone doesn't fail the command) — use
|
|
330
|
-
this in CI to gate on AT4DX wiring problems before they reach an org.
|
|
331
|
-
|
|
332
|
-
EXAMPLES
|
|
333
|
-
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg
|
|
334
|
-
|
|
335
|
-
$ sf simply aep at4dx domain-process-binding validate --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
336
|
-
|
|
337
|
-
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg --sobject Account
|
|
338
|
-
|
|
339
|
-
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
|
|
343
|
-
<!-- commandsstop -->
|
|
344
|
-
|
|
345
|
-
- [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
|
|
346
|
-
- [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
|
|
347
|
-
- [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
|
|
348
|
-
|
|
349
|
-
## `sf simply aep at4dx binding list`
|
|
350
|
-
|
|
351
|
-
List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
|
|
352
|
-
|
|
353
|
-
```
|
|
354
|
-
USAGE
|
|
355
|
-
$ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
|
|
356
|
-
service|selector|domain|unit-of-work...] [--effective-only]
|
|
357
|
-
|
|
358
|
-
FLAGS
|
|
359
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
360
|
-
local-source discovery.
|
|
361
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
362
|
-
-t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
363
|
-
<options: service|selector|domain|unit-of-work>
|
|
364
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
365
|
-
--effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
|
|
366
|
-
records.
|
|
367
|
-
|
|
368
|
-
GLOBAL FLAGS
|
|
369
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
370
|
-
--json Format output as json.
|
|
371
|
-
|
|
372
|
-
DESCRIPTION
|
|
373
|
-
List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
|
|
374
|
-
for each binding key.
|
|
375
|
-
|
|
376
|
-
Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
|
|
377
|
-
`ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
|
|
378
|
-
`ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
|
|
379
|
-
reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
|
|
380
|
-
interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
381
|
-
|
|
382
|
-
Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
|
|
383
|
-
priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
|
|
384
|
-
have no winner concept at all — every record contributes to one ordered registration list.
|
|
385
|
-
|
|
386
|
-
EXAMPLES
|
|
387
|
-
$ sf simply aep at4dx binding list --target-org myOrg
|
|
388
|
-
|
|
389
|
-
$ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
390
|
-
|
|
391
|
-
$ sf simply aep at4dx binding list --target-org myOrg --type service,selector
|
|
392
|
-
|
|
393
|
-
$ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
|
|
394
|
-
|
|
395
|
-
FLAG DESCRIPTIONS
|
|
396
|
-
-t, --type=service|selector|domain|unit-of-work...
|
|
397
|
-
|
|
398
|
-
Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
399
|
-
|
|
400
|
-
Comma-separated list of binding types to include. If not specified, all four are included.
|
|
401
|
-
```
|
|
402
|
-
|
|
403
|
-
_See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
|
|
404
|
-
|
|
405
|
-
## `sf simply aep at4dx domain-process-binding list`
|
|
406
|
-
|
|
407
|
-
List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
|
|
408
|
-
|
|
409
|
-
```
|
|
410
|
-
USAGE
|
|
411
|
-
$ sf simply aep at4dx domain-process-binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
|
|
412
|
-
<value>...] [--active-only]
|
|
413
|
-
|
|
414
|
-
FLAGS
|
|
415
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
416
|
-
local-source discovery.
|
|
417
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
418
|
-
-s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
|
|
419
|
-
included.
|
|
420
|
-
--active-only Only show active bindings; hide inactive records.
|
|
421
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
422
|
-
|
|
423
|
-
GLOBAL FLAGS
|
|
424
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
425
|
-
--json Format output as json.
|
|
426
|
-
|
|
427
|
-
DESCRIPTION
|
|
428
|
-
List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
|
|
429
|
-
|
|
430
|
-
Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
|
|
431
|
-
from local Salesforce DX source, showing which criteria/action classes are bound to each SObject's trigger events (or
|
|
432
|
-
domain method tokens), and the order they run in. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
433
|
-
|
|
434
|
-
Unlike `simply aep at4dx binding list`, there's no "winner" here — every active record in a group (same SObject,
|
|
435
|
-
process context, and trigger operation or domain method token) runs, in `OrderOfExecution__c` order. Two active
|
|
436
|
-
records sharing the same order within a group are flagged as a collision, since AT4DX doesn't guarantee which one runs
|
|
437
|
-
first in that case.
|
|
438
|
-
|
|
439
|
-
EXAMPLES
|
|
440
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg
|
|
441
|
-
|
|
442
|
-
$ sf simply aep at4dx domain-process-binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
443
|
-
|
|
444
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --sobject Account
|
|
445
|
-
|
|
446
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.5.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
|
|
490
|
+
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/set.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/set.js)_
|
|
450
491
|
|
|
451
492
|
## `sf simply aep at4dx domain-process-binding validate`
|
|
452
493
|
|
|
@@ -479,8 +520,10 @@ DESCRIPTION
|
|
|
479
520
|
from local Salesforce DX source, and checks it for problems `simply aep at4dx domain-process-binding list` doesn't
|
|
480
521
|
fail on: two active records silently fighting over the same execution slot, a binding with no resolvable SObject, a
|
|
481
522
|
binding whose declared process context doesn't match the field that's actually populated (so it never runs), the same
|
|
482
|
-
DeveloperName defined more than once,
|
|
483
|
-
|
|
523
|
+
DeveloperName defined more than once, an ambiguous SObject reference, RelatedDomainBindingSObject__c set to a standard
|
|
524
|
+
object that can't actually go through an EntityDefinition relationship, and RelatedDomainBindingSObjectAlternate__c
|
|
525
|
+
set to an object that didn't need the Alternate field. Exactly one of `--target-org` or `--source-dir` must be
|
|
526
|
+
specified.
|
|
484
527
|
|
|
485
528
|
Prints a table of every issue found. When --sobject is specified, scan-wide issues (a duplicate DeveloperName, or a
|
|
486
529
|
binding with no resolvable SObject) print in their own section below the filtered table, since they can't be
|
|
@@ -497,419 +540,5 @@ EXAMPLES
|
|
|
497
540
|
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
|
|
498
541
|
```
|
|
499
542
|
|
|
500
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.
|
|
501
|
-
<!-- commandsstop -->
|
|
502
|
-
|
|
503
|
-
- [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
|
|
504
|
-
- [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
|
|
505
|
-
- [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
|
|
506
|
-
|
|
507
|
-
## `sf simply aep at4dx binding list`
|
|
508
|
-
|
|
509
|
-
List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
|
|
510
|
-
|
|
511
|
-
```
|
|
512
|
-
USAGE
|
|
513
|
-
$ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
|
|
514
|
-
service|selector|domain|unit-of-work...] [--effective-only]
|
|
515
|
-
|
|
516
|
-
FLAGS
|
|
517
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
518
|
-
local-source discovery.
|
|
519
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
520
|
-
-t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
521
|
-
<options: service|selector|domain|unit-of-work>
|
|
522
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
523
|
-
--effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
|
|
524
|
-
records.
|
|
525
|
-
|
|
526
|
-
GLOBAL FLAGS
|
|
527
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
528
|
-
--json Format output as json.
|
|
529
|
-
|
|
530
|
-
DESCRIPTION
|
|
531
|
-
List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
|
|
532
|
-
for each binding key.
|
|
533
|
-
|
|
534
|
-
Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
|
|
535
|
-
`ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
|
|
536
|
-
`ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
|
|
537
|
-
reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
|
|
538
|
-
interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
539
|
-
|
|
540
|
-
Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
|
|
541
|
-
priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
|
|
542
|
-
have no winner concept at all — every record contributes to one ordered registration list.
|
|
543
|
-
|
|
544
|
-
EXAMPLES
|
|
545
|
-
$ sf simply aep at4dx binding list --target-org myOrg
|
|
546
|
-
|
|
547
|
-
$ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
548
|
-
|
|
549
|
-
$ sf simply aep at4dx binding list --target-org myOrg --type service,selector
|
|
550
|
-
|
|
551
|
-
$ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
|
|
552
|
-
|
|
553
|
-
FLAG DESCRIPTIONS
|
|
554
|
-
-t, --type=service|selector|domain|unit-of-work...
|
|
555
|
-
|
|
556
|
-
Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
557
|
-
|
|
558
|
-
Comma-separated list of binding types to include. If not specified, all four are included.
|
|
559
|
-
```
|
|
560
|
-
|
|
561
|
-
_See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.1/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
|
|
562
|
-
|
|
563
|
-
## `sf simply aep at4dx domain-process-binding list`
|
|
564
|
-
|
|
565
|
-
List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
|
|
566
|
-
|
|
567
|
-
```
|
|
568
|
-
USAGE
|
|
569
|
-
$ sf simply aep at4dx domain-process-binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
|
|
570
|
-
<value>...] [--active-only]
|
|
571
|
-
|
|
572
|
-
FLAGS
|
|
573
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
574
|
-
local-source discovery.
|
|
575
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
576
|
-
-s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
|
|
577
|
-
included.
|
|
578
|
-
--active-only Only show active bindings; hide inactive records.
|
|
579
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
580
|
-
|
|
581
|
-
GLOBAL FLAGS
|
|
582
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
583
|
-
--json Format output as json.
|
|
584
|
-
|
|
585
|
-
DESCRIPTION
|
|
586
|
-
List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
|
|
587
|
-
|
|
588
|
-
Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
|
|
589
|
-
from local Salesforce DX source, showing which criteria/action classes are bound to each SObject's trigger events (or
|
|
590
|
-
domain method tokens), and the order they run in. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
591
|
-
|
|
592
|
-
Unlike `simply aep at4dx binding list`, there's no "winner" here — every active record in a group (same SObject,
|
|
593
|
-
process context, and trigger operation or domain method token) runs, in `OrderOfExecution__c` order. Two active
|
|
594
|
-
records sharing the same order within a group are flagged as a collision, since AT4DX doesn't guarantee which one runs
|
|
595
|
-
first in that case.
|
|
596
|
-
|
|
597
|
-
EXAMPLES
|
|
598
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg
|
|
599
|
-
|
|
600
|
-
$ sf simply aep at4dx domain-process-binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
601
|
-
|
|
602
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --sobject Account
|
|
603
|
-
|
|
604
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
|
|
605
|
-
```
|
|
606
|
-
|
|
607
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
|
|
608
|
-
|
|
609
|
-
## `sf simply aep at4dx domain-process-binding validate`
|
|
610
|
-
|
|
611
|
-
Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring problem is found.
|
|
612
|
-
|
|
613
|
-
```
|
|
614
|
-
USAGE
|
|
615
|
-
$ sf simply aep at4dx domain-process-binding validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
|
|
616
|
-
<value>...]
|
|
617
|
-
|
|
618
|
-
FLAGS
|
|
619
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
620
|
-
local-source discovery.
|
|
621
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
622
|
-
-s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
|
|
623
|
-
included.
|
|
624
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
625
|
-
|
|
626
|
-
GLOBAL FLAGS
|
|
627
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
628
|
-
--json Format output as json.
|
|
629
|
-
|
|
630
|
-
DESCRIPTION
|
|
631
|
-
Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring
|
|
632
|
-
problem is found.
|
|
633
|
-
|
|
634
|
-
Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
|
|
635
|
-
from local Salesforce DX source, and checks it for problems `simply aep at4dx domain-process-binding list` doesn't
|
|
636
|
-
fail on: two active records silently fighting over the same execution slot, a binding with no resolvable SObject, a
|
|
637
|
-
binding whose declared process context doesn't match the field that's actually populated (so it never runs), the same
|
|
638
|
-
DeveloperName defined more than once, and an ambiguous SObject reference. Exactly one of `--target-org` or
|
|
639
|
-
`--source-dir` must be specified.
|
|
640
|
-
|
|
641
|
-
Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
|
|
642
|
-
command) — use this in CI to gate on AT4DX wiring problems before they reach an org.
|
|
643
|
-
|
|
644
|
-
EXAMPLES
|
|
645
|
-
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg
|
|
646
|
-
|
|
647
|
-
$ sf simply aep at4dx domain-process-binding validate --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
648
|
-
|
|
649
|
-
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg --sobject Account
|
|
650
|
-
|
|
651
|
-
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
|
|
652
|
-
```
|
|
653
|
-
|
|
654
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
|
|
655
|
-
<!-- commandsstop -->
|
|
656
|
-
|
|
657
|
-
- [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
|
|
658
|
-
- [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
|
|
659
|
-
- [`sf simply aep at4dx domain-process-binding validate`](#sf-simply-aep-at4dx-domain-process-binding-validate)
|
|
660
|
-
|
|
661
|
-
## `sf simply aep at4dx binding list`
|
|
662
|
-
|
|
663
|
-
List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
|
|
664
|
-
|
|
665
|
-
```
|
|
666
|
-
USAGE
|
|
667
|
-
$ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
|
|
668
|
-
service|selector|domain|unit-of-work...] [--effective-only]
|
|
669
|
-
|
|
670
|
-
FLAGS
|
|
671
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
672
|
-
local-source discovery.
|
|
673
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
674
|
-
-t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
675
|
-
<options: service|selector|domain|unit-of-work>
|
|
676
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
677
|
-
--effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
|
|
678
|
-
records.
|
|
679
|
-
|
|
680
|
-
GLOBAL FLAGS
|
|
681
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
682
|
-
--json Format output as json.
|
|
683
|
-
|
|
684
|
-
DESCRIPTION
|
|
685
|
-
List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
|
|
686
|
-
for each binding key.
|
|
687
|
-
|
|
688
|
-
Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
|
|
689
|
-
`ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
|
|
690
|
-
`ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
|
|
691
|
-
reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
|
|
692
|
-
interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
693
|
-
|
|
694
|
-
Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
|
|
695
|
-
priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
|
|
696
|
-
have no winner concept at all — every record contributes to one ordered registration list.
|
|
697
|
-
|
|
698
|
-
EXAMPLES
|
|
699
|
-
$ sf simply aep at4dx binding list --target-org myOrg
|
|
700
|
-
|
|
701
|
-
$ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
702
|
-
|
|
703
|
-
$ sf simply aep at4dx binding list --target-org myOrg --type service,selector
|
|
704
|
-
|
|
705
|
-
$ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
|
|
706
|
-
|
|
707
|
-
FLAG DESCRIPTIONS
|
|
708
|
-
-t, --type=service|selector|domain|unit-of-work...
|
|
709
|
-
|
|
710
|
-
Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
711
|
-
|
|
712
|
-
Comma-separated list of binding types to include. If not specified, all four are included.
|
|
713
|
-
```
|
|
714
|
-
|
|
715
|
-
_See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.0/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
|
|
716
|
-
|
|
717
|
-
## `sf simply aep at4dx domain-process-binding list`
|
|
718
|
-
|
|
719
|
-
List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
|
|
720
|
-
|
|
721
|
-
```
|
|
722
|
-
USAGE
|
|
723
|
-
$ sf simply aep at4dx domain-process-binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
|
|
724
|
-
<value>...] [--active-only]
|
|
725
|
-
|
|
726
|
-
FLAGS
|
|
727
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
728
|
-
local-source discovery.
|
|
729
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
730
|
-
-s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
|
|
731
|
-
included.
|
|
732
|
-
--active-only Only show active bindings; hide inactive records.
|
|
733
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
734
|
-
|
|
735
|
-
GLOBAL FLAGS
|
|
736
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
737
|
-
--json Format output as json.
|
|
738
|
-
|
|
739
|
-
DESCRIPTION
|
|
740
|
-
List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
|
|
741
|
-
|
|
742
|
-
Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
|
|
743
|
-
from local Salesforce DX source, showing which criteria/action classes are bound to each SObject's trigger events (or
|
|
744
|
-
domain method tokens), and the order they run in. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
745
|
-
|
|
746
|
-
Unlike `simply aep at4dx binding list`, there's no "winner" here — every active record in a group (same SObject,
|
|
747
|
-
process context, and trigger operation or domain method token) runs, in `OrderOfExecution__c` order. Two active
|
|
748
|
-
records sharing the same order within a group are flagged as a collision, since AT4DX doesn't guarantee which one runs
|
|
749
|
-
first in that case.
|
|
750
|
-
|
|
751
|
-
EXAMPLES
|
|
752
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg
|
|
753
|
-
|
|
754
|
-
$ sf simply aep at4dx domain-process-binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
755
|
-
|
|
756
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --sobject Account
|
|
757
|
-
|
|
758
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
|
|
759
|
-
```
|
|
760
|
-
|
|
761
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
|
|
762
|
-
|
|
763
|
-
## `sf simply aep at4dx domain-process-binding validate`
|
|
764
|
-
|
|
765
|
-
Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring problem is found.
|
|
766
|
-
|
|
767
|
-
```
|
|
768
|
-
USAGE
|
|
769
|
-
$ sf simply aep at4dx domain-process-binding validate [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
|
|
770
|
-
<value>...]
|
|
771
|
-
|
|
772
|
-
FLAGS
|
|
773
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
774
|
-
local-source discovery.
|
|
775
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
776
|
-
-s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
|
|
777
|
-
included.
|
|
778
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
779
|
-
|
|
780
|
-
GLOBAL FLAGS
|
|
781
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
782
|
-
--json Format output as json.
|
|
783
|
-
|
|
784
|
-
DESCRIPTION
|
|
785
|
-
Validate the AT4DX Trigger Action Framework bindings configured in an org or local source, failing when a wiring
|
|
786
|
-
problem is found.
|
|
787
|
-
|
|
788
|
-
Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
|
|
789
|
-
from local Salesforce DX source, and checks it for problems `simply aep at4dx domain-process-binding list` doesn't
|
|
790
|
-
fail on: two active records silently fighting over the same execution slot, a binding with no resolvable SObject, a
|
|
791
|
-
binding whose declared process context doesn't match the field that's actually populated (so it never runs), the same
|
|
792
|
-
DeveloperName defined more than once, and an ambiguous SObject reference. Exactly one of `--target-org` or
|
|
793
|
-
`--source-dir` must be specified.
|
|
794
|
-
|
|
795
|
-
Prints a table of every issue found. Exits non-zero when any issue is an error (a warning alone doesn't fail the
|
|
796
|
-
command) — use this in CI to gate on AT4DX wiring problems before they reach an org.
|
|
797
|
-
|
|
798
|
-
EXAMPLES
|
|
799
|
-
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg
|
|
800
|
-
|
|
801
|
-
$ sf simply aep at4dx domain-process-binding validate --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
802
|
-
|
|
803
|
-
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg --sobject Account
|
|
804
|
-
|
|
805
|
-
$ sf simply aep at4dx domain-process-binding validate --target-org myOrg --json
|
|
806
|
-
```
|
|
807
|
-
|
|
808
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.4.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
|
|
809
|
-
<!-- commandsstop -->
|
|
810
|
-
|
|
811
|
-
- [`sf simply aep at4dx binding list`](#sf-simply-aep-at4dx-binding-list)
|
|
812
|
-
- [`sf simply aep at4dx domain-process-binding list`](#sf-simply-aep-at4dx-domain-process-binding-list)
|
|
813
|
-
|
|
814
|
-
## `sf simply aep at4dx binding list`
|
|
815
|
-
|
|
816
|
-
List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins for each binding key.
|
|
817
|
-
|
|
818
|
-
```
|
|
819
|
-
USAGE
|
|
820
|
-
$ sf simply aep at4dx binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-t
|
|
821
|
-
service|selector|domain|unit-of-work...] [--effective-only]
|
|
822
|
-
|
|
823
|
-
FLAGS
|
|
824
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
825
|
-
local-source discovery.
|
|
826
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
827
|
-
-t, --type=<option>... Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
828
|
-
<options: service|selector|domain|unit-of-work>
|
|
829
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
830
|
-
--effective-only Only show the bindings that actually win for their key; hide shadowed/non-winning
|
|
831
|
-
records.
|
|
832
|
-
|
|
833
|
-
GLOBAL FLAGS
|
|
834
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
835
|
-
--json Format output as json.
|
|
836
|
-
|
|
837
|
-
DESCRIPTION
|
|
838
|
-
List the AT4DX Application Factory bindings configured in an org or local source, resolved to show which record wins
|
|
839
|
-
for each binding key.
|
|
840
|
-
|
|
841
|
-
Reads the four AT4DX Application Factory Custom Metadata Types — `ApplicationFactory_ServiceBinding__mdt`,
|
|
842
|
-
`ApplicationFactory_SelectorBinding__mdt`, `ApplicationFactory_DomainBinding__mdt`, and
|
|
843
|
-
`ApplicationFactory_UnitOfWorkBinding__mdt` — either from a live org or from local Salesforce DX source, and
|
|
844
|
-
reproduces the resolution rules AT4DX applies at runtime so you can see which record actually wins for a given
|
|
845
|
-
interface or SObject, and which ones are shadowed. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
846
|
-
|
|
847
|
-
Service and Selector bindings resolve deterministically on `Priority__c` (highest wins). Domain bindings have no
|
|
848
|
-
priority field, so a duplicated key is flagged `ambiguous` rather than reporting a guessed winner. UnitOfWork bindings
|
|
849
|
-
have no winner concept at all — every record contributes to one ordered registration list.
|
|
850
|
-
|
|
851
|
-
EXAMPLES
|
|
852
|
-
$ sf simply aep at4dx binding list --target-org myOrg
|
|
853
|
-
|
|
854
|
-
$ sf simply aep at4dx binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
855
|
-
|
|
856
|
-
$ sf simply aep at4dx binding list --target-org myOrg --type service,selector
|
|
857
|
-
|
|
858
|
-
$ sf simply aep at4dx binding list --target-org myOrg --effective-only --json
|
|
859
|
-
|
|
860
|
-
FLAG DESCRIPTIONS
|
|
861
|
-
-t, --type=service|selector|domain|unit-of-work...
|
|
862
|
-
|
|
863
|
-
Binding type(s) to include: service, selector, domain, unit-of-work.
|
|
864
|
-
|
|
865
|
-
Comma-separated list of binding types to include. If not specified, all four are included.
|
|
866
|
-
```
|
|
867
|
-
|
|
868
|
-
_See code: [lib/commands/simply/aep/at4dx/binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.3.1/packages/simply-aep/lib/commands/simply/aep/at4dx/binding/list.js)_
|
|
869
|
-
|
|
870
|
-
## `sf simply aep at4dx domain-process-binding list`
|
|
871
|
-
|
|
872
|
-
List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
|
|
873
|
-
|
|
874
|
-
```
|
|
875
|
-
USAGE
|
|
876
|
-
$ sf simply aep at4dx domain-process-binding list [--json] [--flags-dir <value>] [-o <value>] [--api-version <value>] [-d <value>...] [-s
|
|
877
|
-
<value>...] [--active-only]
|
|
878
|
-
|
|
879
|
-
FLAGS
|
|
880
|
-
-d, --source-dir=<value>... One or more paths to directories containing Salesforce DX source. Use this for
|
|
881
|
-
local-source discovery.
|
|
882
|
-
-o, --target-org=<value> Username or alias of the org to read bindings from. Use this for live-org discovery.
|
|
883
|
-
-s, --sobject=<value>... SObject API name(s) to filter to. If not specified, bindings for every SObject are
|
|
884
|
-
included.
|
|
885
|
-
--active-only Only show active bindings; hide inactive records.
|
|
886
|
-
--api-version=<value> Override the api version used for api requests made by this command
|
|
887
|
-
|
|
888
|
-
GLOBAL FLAGS
|
|
889
|
-
--flags-dir=<value> Import flag values from a directory.
|
|
890
|
-
--json Format output as json.
|
|
891
|
-
|
|
892
|
-
DESCRIPTION
|
|
893
|
-
List the AT4DX Trigger Action Framework bindings configured in an org or local source, in execution order.
|
|
894
|
-
|
|
895
|
-
Reads AT4DX's Trigger Action Framework Custom Metadata Type — `DomainProcessBinding__mdt` — either from a live org or
|
|
896
|
-
from local Salesforce DX source, showing which criteria/action classes are bound to each SObject's trigger events (or
|
|
897
|
-
domain method tokens), and the order they run in. Exactly one of `--target-org` or `--source-dir` must be specified.
|
|
898
|
-
|
|
899
|
-
Unlike `simply aep at4dx binding list`, there's no "winner" here — every active record in a group (same SObject,
|
|
900
|
-
process context, and trigger operation or domain method token) runs, in `OrderOfExecution__c` order. Two active
|
|
901
|
-
records sharing the same order within a group are flagged as a collision, since AT4DX doesn't guarantee which one runs
|
|
902
|
-
first in that case.
|
|
903
|
-
|
|
904
|
-
EXAMPLES
|
|
905
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg
|
|
906
|
-
|
|
907
|
-
$ sf simply aep at4dx domain-process-binding list --source-dir sfdx-source/core --source-dir sfdx-source/app
|
|
908
|
-
|
|
909
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --sobject Account
|
|
910
|
-
|
|
911
|
-
$ sf simply aep at4dx domain-process-binding list --target-org myOrg --active-only --json
|
|
912
|
-
```
|
|
913
|
-
|
|
914
|
-
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/list.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.3.1/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/list.js)_
|
|
543
|
+
_See code: [lib/commands/simply/aep/at4dx/domain-process-binding/validate.js](https://github.com/SimplySF/simply-node/blob/@simplysf/simply-aep@0.7.0/packages/simply-aep/lib/commands/simply/aep/at4dx/domain-process-binding/validate.js)_
|
|
915
544
|
<!-- commandsstop -->
|