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.
1351
+
*
1349
1352
* Typical use-cases:
1350
-
* - Validate record before saving to database and interrupt execution if validation failed (`allowedActions.create` should be preferred in most cases)
1351
-
* - fill-in adminUser as creator of record
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})
1352
1356
* - Attach additional data to record before saving to database (mostly fillOnCreate should be used instead)
0 commit comments