top of page

Previous Automation Builder

Wix Automations: Using the Run Velo Code Action

Velo is Wix's full-stack development platform. Select the Run Velo Code action to enhance your automation using your own Velo code. Write your code, then run it to test, and then activate the automation.

With this automation action and the Velo APIs, you can customize your site or business in any way you like, for example, by updating your CMS, formatting data, or connecting to third-party applications. Learn more about using Velo.

Before you begin:

  • In order to use the Run Velo Code action, you must first enable Velo.

  • The custom extensions feature currently can’t be added to a site when using Git integration and Wix CLI. You need to have permission to publish the site and the site must be published.

To use the Run Velo Code action:

  1. Go to Automations in your site's dashboard.

  2. Start creating your automation by choosing your trigger in the Trigger section and selecting Run Velo Code in the Action section.

  3. Click Start Coding.

  1. Write your code in the window that opens.
    Note: 1. Lines 2 - 6 support the autocompletion system. Make sure you keep it in your code file. 2. Use the "Invoke" function to implement your action logic.

  2. You can use the data from the trigger or other parts of the automation by employing:

1payload.my_field
  1. You can view the payload specification by clicking Payload View.

  2. Save your code to integrate your custom logic in this automation.

  3. Before activating your automation, run your code to test it and make sure it gives the results you expect. Before you start your test:Define the sample data that will run in the test.
    Open your site logs to monitor the result.

Important:

Running your code to test it means it's running live, so might make changes within your site and/or dashboard.

  1. When you're happy it's running correctly, click Activate to activate your automation.

Notes:

  • You can edit the Run Velo Code action to work in your neutral code environment. Only editing is possible from the VS code and Velo editor environments. Learn more about custom extensions.

  • If you connect to a third-party provider using SPIs, you agree to the Wix.com Terms of Use. Wix is not responsible for your use of such a third-party provider, and any liability resulting from such use will be your responsibility.

Need A Professional Website?
Contact Us 
Today!

Wix Forms: Troubleshooting

Wix Forms: Removing a Form from Your Site

Wix Forms: Saving Your Form Data to Your Contacts

Wix Forms: Creating Automated Email Responses for Form Submissions

Wix Forms: Choosing Who Gets Notified About Form Submissions

Wix Forms: Viewing and Managing a Submissions Table

Wix Forms: Customizing the Success Message and Thank You Page of Site Forms

Wix Forms: Designing Your Site Forms

Wix Forms: Adding a Signature Field

Wix Forms: Protecting Your Site Forms from Spam

Wix Forms: Adding a Subscriber Opt-In Checkbox to a Site Form

Wix Forms: Adding a File Upload Field

Wix Forms: Managing Your Form Fields

Wix Forms: Managing Your Standalone Form Fields

Wix Forms: Translating Your Forms with Wix Multilingual

Wix Forms: Adding and Setting Up a Standalone Form

Wix Forms: Adding and Setting Up a Form on Your Site

Wix Forms: An Overview

Wix Functions: Creating a Custom Loyalty Program Reward

Wix Functions: Adding Custom Validations to Your Forms

Wix Functions: Adding Additional Fees at Checkout

Wix Functions: Creating a Function

Wix Automations: Understanding Conditions Operators

Wix Automations: Using the Run Velo Code Action

Wix Automations: Troubleshooting Wix Automations

Wix Automations: Creating a Multi-Action Automation

Wix Automations: Sending Data via Webhook

Using Zapier to Automate Connections with Third-Party Apps

Wix Automations: Sending Data to Google Sheets

Wix Automations: Managing Your Automations

wix experts
Graphic2Traffic web design
©
bottom of page