Work out a value with code.

The script action runs a short JavaScript program on each row. The inputs are variables, and the program sets one variable for each output. The script uses no AI, so the maths is exact.

Example 1 · Order Total

Work out the total of each order.

The script multiplies the quantity by the unit price, then takes off the tier discount: 10% for Gold and 5% for Silver. Order Total ran after Find Customer had written the tier. Each run took less than an eighth of a second.

Demo: the page of the script action Order Total, with its code: quantity times unit price, less 10% for Gold and 5% for Silver. It runs on Orders. A pointer clicks Orders. Five new orders, rows 17 to 21, arrive with Quantity and Unit Price. Find Customer fills Customer Tier. Then the script fills each Total: 32.5, 45.6, 615.6, 21.6 and 24.7.

What you set on a script.

These settings belong to the script. Inputs, outputs, columns and conditions work the same as on every action: see Actions.

Code

JavaScript. Each input is a variable with the input’s name. To give an output, set a variable with the output’s name.

Time limit

How long a run can take before the run stops and fails. If you do not set a limit, the limit is 30 seconds. The most is 300.

Input values

Numbers come in as numbers. Dates and times come in as ISO 8601 text, for example 2026-11-06.

Good to know.

No network and no database.

A script can only change its inputs into outputs. To call an API, use a web action.

An output must be a plain value.

If the program gives back a function or a Promise, the run fails.

Cost.

1 credit a run.

Add a script to a table.

Start with a table, then write the code for one row.

Security and compliance.

ISO 27001, SOC 2 Type 2 and GDPR are in progress. Oneleet shows the live status of each certification.

Oneleet compliance badge: ISO 27001Oneleet compliance badge: SOC 2 Type 2Oneleet compliance badge: GDPR
Oneleet compliance badge: ISO 27001Oneleet compliance badge: SOC 2 Type 2Oneleet compliance badge: GDPR
Oneleet compliance badge: ISO 27001Oneleet compliance badge: SOC 2 Type 2Oneleet compliance badge: GDPR

© 2026 Morphcloud