The record.get: command loads a record from a type and ID.
start:
record.get:
output: record
inputs:
record_type: task
record_id: 123
return:
output@text:
Loaded {{record._context}} #{{record.id}}: {{record._label}}
output: Loaded cerberusweb.contexts.task #123: Install Cerb
Syntax
inputs:
Key | |
---|---|
record_type: |
The record type to load. |
record_id: |
The ID of the given record type to load. |
output:
Save the record dictionary to this placeholder.
on_simulate:
The commands to run during simulation instead of loading the record.
If omitted, the record will be loaded during simulation.
on_success:
The commands to run on success.
The dictionary of the loaded record is saved to the output:
placeholder.
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. |