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
{{ message }}
Repository navigation
Commit 0dfeeda
Browse filesBrowse the repository at this point in the historyBrowse files
fix(lint): the `action-record-write-discarded` hint prescribes a write a sandboxed body can run
6
+
7
+
Clause-②: no
8
+
Metadata-protocol: none
9
+
10
+
The hint now reads `ctx.api.object('<object>').update({ id: ctx.recordId, <field>: … })`. It used to prescribe `ctx.api.object('<object>').updateById(ctx.recordId, { … })`, and the sandbox an action body runs in installs no `updateById` on `ctx.api.object(…)`: following the hint turned the discarded write into `TypeError: not a function` on the action's first run. The `os explain action-body-write-unknown-field` text no longer lists `create` and `updateById` among the calls an action body persists through, for the same reason. What lint judges is unchanged: an `updateById` payload in a body is still graded.
Copy file name to clipboardExpand all lines: content/docs/deployment/app-dependencies.mdx
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,15 +33,28 @@ export default defineStack({
33
33
34
34
The declaration does two things:
35
35
36
-
-**It opens the reference.** The runtime save door judges a list view against
37
-
your package's own objects and those of the packages your manifest declares,
38
-
transitively; a view bound to an object outside that set is refused there,
39
-
`422`, and the fix it prints is this declaration. A dependency opens the
40
-
reference, not the data: users still see the other app's records under that
41
-
app's own permission sets and sharing rules.
36
+
-**It opens the reference.** The runtime save door judges the bindings below
37
+
against your package's own objects and those of the packages your manifest
38
+
declares, transitively; a binding to an object outside that set is refused
39
+
there, `422`, and the fix it prints is this declaration. A dependency opens
40
+
the reference, not the data: users still see the other app's records under
41
+
that app's own permission sets and sharing rules.
42
42
-**It is checked before install** — below.
43
43
-**It lets your package share the depended-on app's namespace** — below.
44
44
45
+
The bindings the save door judges this way, when the item is saved into a
46
+
package, include:
47
+
48
+
| You save | The binding judged |
49
+
|:---|:---|
50
+
| A flow | its trigger object |
51
+
| A flow | the `objectName` of each `get_record`, `create_record`, `update_record` and `delete_record` node, and of a `screen` node that renders an object's form, nested nodes included |
52
+
| A dataset | its base object |
53
+
| A list view | its object |
54
+
| A form | its object |
55
+
| A knowledge source | its object |
56
+
| A standalone action | its `objectName`|
57
+
45
58
Every entry is required; there is no optional arm. Declare only the packages
46
59
your app actually references. Two modules of one app need not declare each
47
60
other: each declares the app, and that is enough for both to install, in either
0 commit comments