About the Wix Automations Trigger Provider Service Plugin

The Trigger Provider service plugin provides methods for implementing your app's trigger on Wix users' sites. With the service plugin, you can let users do the following:

  • Validate that they have configured their automation's trigger correctly.
  • Choose from multiple options, for example selecting a form from several options.
  • Retrieve updated data when an action is delayed following the trigger.

Use Case

Validate that the products listed in a trigger are still in the store.

Before you begin

It's important to note the following points before starting to code:

Get started

Follow these steps to begin implementing your service plugin:

Step 1 | Learn how to implement a self-hosted service plugin

This service plugin can only be implemented with the self-hosted framework. Learn how to implement a self-hosted service plugin with the SDK.

Step 2| Configure your trigger and select your service plugin methods

When you configure your trigger in the app dashboard, select the service plugin methods you intend to implement under Service plugin endpoints. You also need to provide a base URI so that Wix knows where to call each method.

Step 3| Define handler functions

Use triggerProvider.provideHandlers() to define the following handler functions that implement your custom business logic.

FunctionRequired
refreshPayload()No
getDynamicSchema()No
validateConfiguration()No

Code examples

This is the basic code structure for implementing a self-hosted Trigger Provider service plugin:

Copy

See also

Did this help?