Issues With Triggering Campaigns App With An Alert
![Esten](https://us.v-cdn.net/6032830/uploads/defaultavatar/nZ5X977MOM3Z6.jpg)
I've been following along with https://domohelp.domo.com/hc/en-us/articles/1500000316201-Triggering-a-Campaign-from-a-Domo-DataSet-Alert#2.2.
I am currently at the point of testing the POST to the API in the WebHook and I am getting the Error:
{
"status": 400,
"error": "Bad Request",
"path": "/api/v1/campaigns/bae/start"
}
Below is my current JSON Included in the WebHook:
{
"campaignId": CampaignNum,
"instance": "Instance",
"domoAccessToken": "AccessToken",
"domoAccessTokenOwnerEmailAddress": "Email",
"emailAddresses": ["Email" ],
"isTest": true
}
I've found that I could POST the previous JSON to https://campaigns-prod.domolabs.io/api/v1/campaigns/start while testing the API on another program, but I am not able to get a successful POST while using the Domo WebHook.
I've also tried to POST to https://campaigns-prod.domolabs.io/api/v1/campaigns/bae/start, but I have also only gotten the error from above.
Best Answer
-
I figured it out with support. The issue I was having was the "Send Test" in Domo's Test Environment was throwing an error when trying to POST to https://campaigns-prod.domolabs.io/api/v1/campaigns/bae/start. Although the test environment was throwing an error the webhook still did a successful POST when the alert was triggered.
0
Answers
-
I figured it out with support. The issue I was having was the "Send Test" in Domo's Test Environment was throwing an error when trying to POST to https://campaigns-prod.domolabs.io/api/v1/campaigns/bae/start. Although the test environment was throwing an error the webhook still did a successful POST when the alert was triggered.
0
Categories
- All Categories
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 303 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3K Transform
- 104 SQL DataFlows
- 640 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 769 Beast Mode
- 72 App Studio
- 43 Variables
- 718 Automate
- 185 Apps
- 462 APIs & Domo Developer
- 57 Workflows
- 14 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 402 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 9 Software Integrations
- 135 Manage
- 132 Governance & Security
- 8 Domo Community Gallery
- 44 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive