Issues With Triggering Campaigns App With An Alert
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.2K Product Ideas
- 1.2K Ideas Exchange
- 1.3K Connect
- 1.1K Connectors
- 273 Workbench
- 1 Cloud Amplifier
- 3 Federated
- 2.7K Transform
- 78 SQL DataFlows
- 525 Datasets
- 2.1K Magic ETL
- 2.9K Visualize
- 2.2K Charting
- 434 Beast Mode
- 22 Variables
- 510 Automate
- 114 Apps
- 388 APIs & Domo Developer
- 8 Workflows
- 26 Predict
- 10 Jupyter Workspaces
- 16 R & Python Tiles
- 332 Distribute
- 77 Domo Everywhere
- 255 Scheduled Reports
- 66 Manage
- 66 Governance & Security
- 1 Product Release Questions
- Community Forums
- 40 Getting Started
- 26 Community Member Introductions
- 68 Community Announcements
- 4.8K Archive