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
* Should return ok: true to continue saving pipeline and allow creating record in database, and ok: false to interrupt pipeline and prevent record creation.
1350
-
* If you need to show error on UI, set error: <error message> in response.
1349
+
* Should return `ok: true` to continue saving pipeline and allow creating record in database, and `ok: false` to interrupt pipeline and prevent record creation.
1350
+
* If you need to show error on UI, set `error: \<error message\>` in response.
1351
1351
*
1352
1352
* Typical use-cases:
1353
-
* - Create record by custom code (return `{ ok: false, newRecordId: <id of created record from custom code>}`)
1354
-
* - Validate record before saving to database and interrupt execution if validation failed (return `{ok: false, error: <validation error>}`), though `allowedActions.create` should be preferred in most cases
1355
-
* - fill-in adminUser as creator of record (set record.<some field> = x; return {ok: true})
1353
+
* - Create record by custom code (return `{ ok: false, newRecordId: <id of created record from custom code>}`)
1354
+
* - Validate record before saving to database and interrupt execution if validation failed (return `{ok: false, error: <validation error>}`), though `allowedActions.create` should be preferred in most cases
1355
+
* - fill-in adminUser as creator of record (set `record.<some field> = x; return \{ ok: true \}`)
1356
1356
* - Attach additional data to record before saving to database (mostly fillOnCreate should be used instead)
0 commit comments