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.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 600 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 685 Beast Mode
- 43 App Studio
- 38 Variables
- 656 Automate
- 170 Apps
- 439 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 385 Distribute
- 110 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 111 Manage
- 108 Governance & Security
- 8 Domo University
- 25 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive