Write custom field
How to set a custom field on a device or customer from an automation, which value format to use and when the step fails.
Use this action to set or clear a custom field, either on the run's device or on that device's customer. For example, you can store a result from an earlier step right on the device. The device doesn't need to be online.
Configuration fields
You cannot save the automation without a selected field. octoja then shows A custom field is required for the write-custom-field step.
Enter the value in the format of the field's type:
Platform support
The action runs inside octoja and works the same on every platform.
Outputs
Multi-select dropdown fields behave differently in two ways: action always reports set when you write a selection, even if nothing changed. And value does not contain the selected options — don't use this output in later steps for such a field.
Result behaviour
All devices of a customer share its customer fields. When the automation runs on several devices of the same customer, each run writes to the same field. The value of the last run is what remains.
If a variable resolves to an empty value, the field is cleared. If octoja cannot resolve a variable, it stays as literal text. A text field stores that text; all other field types reject it.
See also: Create an automation · Custom fields
Was this helpful?
More in Actions
Send notificationAsk userDisable user accountCreate user accountStill need help? Ask the team