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 Stores: Setting Up Affiliate Marketing with the Goaffpro App

Wix Contacts: About Your Contact Panel

Wix Contacts: Using Pinned Actions in Your Contact Panel

Wix Contacts: Creating a Test Contact

Wix Contacts: Changing a Contact's Subscription Status

Wix Contacts: Adding and Managing Custom Contact Fields

Wix Contacts: Creating and Using Contact Labels

Wix Contacts: Creating a Segment

Wix Contacts: About Segments

Wix Contacts: Exporting Your Contacts

Wix Contacts: Troubleshooting Contact Importing Issues

Wix Contacts: Importing Contacts by Uploading a CSV File

Wix Contacts: Importing Contacts from a Gmail Account

Wix Contacts: Managing Your Contact List

Wix Contacts: Manually Adding a Contact

Wix Contacts: An Overview

Wix Forms: Creating a Coupon

Wix Forms: Setting Up Tax on Your Form

Wix Forms: The Difference between the New and Old Wix Forms

Wix Forms: Viewing Form Submissions from Your Dynamic Pages

Wix Forms: Managing Your Forms from the Dashboard

Wix Forms: Choosing an Address Field

Wix Forms: Adding and Setting Up a Donation Form

Wix Forms: Adding Submission Limits to Your Forms

Wix Forms: Adding and Managing Rules

Wix Forms: Upgrading Wix Forms

Wix Forms: Adding and Setting Up a Multi-Step Form

Wix Forms: Adding Payments to a Site Form

Wix Forms: Enabling Double Opt-In for Subscribers

Wix Forms: Adding and Setting Up a Subscribe Form

wix experts
Graphic2Traffic web design
©
bottom of page