Intro
You can start a Campaign from a Domo DataSet Alert. Documentation on Domo DataSet Alerts can be found here.Setting up a Domo DataSet Alert with Campaigns
Go to DataSet Alerts
To setup a Domo DataSet Alert, go to Data, select your DataSet, select the Alerts tab, and click on New Alert.
Configure your Alert
Configure your Alert Rule. Documentation on setting up your Alert can be found here. Click Next when finished.Create a Domo Webhook
The next step is to create the Domo Webhook that will be triggering your Campaign. In the Message screen, click Attach Action and select Domo Webhook.
Configure the Domo Webhook
Next:- In the box titled URL, paste the following URL: https://campaigns-prod.domolabs.io/api/v1/campaigns/bae/start
- Set Method to POST.
- Leave the box Secret (optional) blank.
- Click on Webhook body to expand that section.

Configure the Domo Webhook body
In order to configure the Domo Webhook body, you need to click the pencil icon next to Message.

Campaign Id
The id of the Campaign you want to start. You can get the Campaign Id by editing the Campaign and going to the Settings tab:
Domo Access Token
A Domo access token that has been generated in Domo. You can generate Domo Access Tokens by logging in, going to the Admin settings section, go to Security, and selecting Access tokens. There you can simply generate a new access token to use for calls to the API.
Domo Access Token Owner Email Address
The email address of the user who owns the Domo Access Token specified above.Email Addresses (OPTIONAL)
A list of email addresses the campaign should be delivered to. If no email addresses are selected, the entire campaign will be started and delivered to all recipients in the distribution list.Note: T hese email addresses MUST exist in your distribution list. If you specify an email address that does not exist in your distribution list, no email will be delivered to that email address.
Instance
You Domo instance (e.g. domo.domo.com ).Is Test (OPTIONAL)
You can use this flag to send a test Campaign. This can help you test your Campaign, connection, access token, etc. without actually sending an email to your recipients. This is the same functionality as when you click the Test Email button from within the Distribution List in the Campaigns app. When you send a test Campaign the email will be delivered to the Sender Address of the Campaign rather than the recipients so that the delivered content can be tested and verified.Note: If you set this flag to true, you MUST specify at least one email address in the Email Addresses field. You cannot send a Test Campaign without specifying at least one email address.
Fields (OPTIONAL)
Fields give you the ability to pass other information and values from the Alert to Campaigns so that information can be used in the Campaign messages. For instance, if the DataSet to which I am adding this Alert has a field for first name and last name and I want to include those fields in my Campaign, I would include those fields from my DataSet in the fields list. You can then use the key to insert those values into Campaigns.

Example of Webhook’s Body’s Message
An example of a completed webhook’s body’s message would look like this:
Testing and errors
Testing
Once you have your webhook’s body’s message configured, you can test it by clicking on the Send Test button.
Note: b e sure to have the isTest flag set to true and include at least one email address in the emailAddresses field so you don’t accidentally deliver this Campaign to all of your recipients.
Errors
If your test does not succeed, there are a number of things to check. A few of them are:- Ensure your Campaign Id is correct.
- Ensure you have a valid Domo Access Token specified in the domoAccessToken field.
- Ensure the Domo user who owns the Domo Access Token has access to the Campaign and the Campaign’s distribution list DataSet.
- Ensure the email address specified in the domoAccessTokenOwnerEmailAddress field matches the email address of the user in Domo who owns the Domo Access Token.
- If the isTest flag is set to true, ensure you have included at least one email address in the emailAddresses field.
- Ensure your webhook’s body’s message is a correctly formed JSON object. There are a number of JSON validators available online that you could use to check.


