The record.create: command creates a record with the given fields.
start:
record.create/newTask:
output: new_task
inputs:
# See: https://cerb.ai/docs/records/types/task/#records-api
record_type: task
fields:
title: This is a new task
status: open
importance: 50
Syntax
inputs:
Key | |
---|---|
record_type: |
The record type to create. |
fields: |
The fields to set based on the record type. |
expand: |
The keys to expand on the output: dictionary. |
disable_events@bool: |
Avoid triggering events for newly created records. This is particularly useful for import workflows where events like auto-responders and auto-assignment shouldn’t be triggered. |
output:
Save the record dictionary to this placeholder.
on_simulate:
The commands to run during simulation instead of creating the record.
If omitted, the record is created during simulation.
on_success:
The commands to run on success.
The output:
placeholder is a dictionary based on the record type.
on_error:
The commands to run on failure. If omitted, the automation exits in the error
state.
The output:
placeholder receives a dictionary with these keys:
Key | |
---|---|
error |
The error message. |