Run Script

The Run Script action is one of the most powerful features in Tabidoo, offering users the ability to script virtually anything within their workflow. With this action, you can automate complex tasks, manipulate data, integrate with external services, and more.

Configuration Options

Scripting Editor

  • The Scripting Editor allows users to write custom scripts using TypeScript (JavaScript). This gives you full control over the logic and functionality of your workflow.
  • Scripts can be used to perform actions such as:
    • Reading and writing data from records or tables
    • Making API calls to external systems
    • Performing complex calculations or transformations on data
    • Automating processes like batch updates, data migrations, etc.
  • The editor provides syntax highlighting and basic code assistance, making it easier to write and debug scripts.

Run Button

  • Once your script is written, you can execute it by clicking the Run button. This will immediately trigger the script and perform the tasks defined in the code.

Encrypted Checkbox

  • The Encrypted option ensures that the script's content is not visible to others who may have access to the workflow. This is especially useful when you need to handle sensitive data, such as tokens or passwords, within the script.
    • When the Encrypted box is checked, the script content is encrypted and cannot be viewed by users, even by those with access to the workflow's configuration.
    • This is useful in scenarios where you store API tokens, sensitive data, or credentials within the script, and you do not want this information to be exposed or editable.

Use Case Examples

  • Use a script to fetch data from an external API and populate it into a Tabidoo table automatically.
  • Write a custom validation script that checks for specific conditions before a record is saved or updated.
  • Automate the integration of Tabidoo with third-party services like payment processors, email services, or CRM systems.

The Run Script action is ideal for users who need to customize their workflows beyond the built-in actions, providing flexibility to meet unique business needs. Whether you're automating routine tasks or building custom integrations, this action opens the door to limitless possibilities.

For more detailed information on scripting, please refer to the Developers section of the documentation.