Custom function
How-to5 minExpert
Before you start
A Custom function runs a Smart ScriptSmart ScriptBeezr's scripting language (engine name Beezl) used in fields, rules, filters, workflow values and dashboards.Open glossary ↗ you write. Use it for work no other step does, such as calling a helper that changes data in a way requires a custom script.
When should I use a Custom function?
Section titled “When should I use a Custom function?”Reach for it last. A Record manager changes records, a Decision branches, and a Load data fetches records. Use a Custom function when none of them fits.
Add a Custom function
Section titled “Add a Custom function”- Click + and choose Custom function. It sits in the Data group.
- Under Smart Script, write the script. Insert data adds a field of this workflow. Functions lists the helpers you can call.
- Click Save.
The Smart Script box holds your script.
Insert data and Functions help you write it.
What do the settings do?
Section titled “What do the settings do?”| Setting | What it does |
|---|---|
| Smart Script | The script, stored exactly as you type it |
There is nothing else to set. Write the script and click Save.
What should I watch for?
Section titled “What should I watch for?”- Use the script for its effect on your data, such as changing records through a helper.
- To pass data to later steps, use steps that name their result, such as Load data, JSON parser or AI agent.