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!

Google Workspace: Purchasing and Setting up a Business Email

Resolving Email Issues

Changing the Priority of Your MX Records

Connecting Email Purchased Outside of Wix

Google Workspace: Adding a DKIM Record to your Business Email

Google Workspace: Adding an SPF Record to your Business Email

Adding a DKIM (TXT) Record

Adding or Updating SPF Records in Your Wix Account

Business Email: General Troubleshooting

Connecting Email Accounts from Different Email Providers for the Same Domain

Increasing Email Deliverability of Emails Sent from Your Business Email

Top Reasons for Using a Personalized Business Email

Business Email: An Overview

Wix Pay Links: Creating and Managing Pay Links in the Wix App

Wix Pay Links: Creating and Managing Pay Links

Wix Proposals: Managing Your Proposals on the Wix App

Wix Proposals by Prospero: Saving and Managing Proposal Templates

Wix Proposals by Prospero: Adding and Setting up Proposals

Wix Price Quotes: Managing Your Price Quotes in the Wix App

Wix Invoices & Price Quotes: Adding Default Notes

Wix Invoices & Price Quotes: Managing Your Settings

Wix Invoices & Price Quotes: Searching, Filtering, and Sorting

Wix Invoices & Price Quotes: Changing Your Initial Document Number

Wix Invoices & Price Quotes: Adding Tax Types

Wix Invoices & Price Quotes: Adding Your Items and Services

Wix Invoices & Price Quotes: Changing Your Currency and Payment Terms

Wix Invoices & Price Quotes: Adding Your Business Info

Wix Invoices: Managing Your Invoices

Wix Invoices: Creating and Managing Recurring Invoices

Wix Invoices: Creating and Managing Recurring Invoices

wix experts
Graphic2Traffic web design
©
bottom of page