Having trouble running a workflow from a Domo Brick
There's a brick called Workflow Start Form that I'm basing my implementation on, primarily the function
const startWorkflowWithParams = (alias, params) => { var startURL = '/domo/workflow/v1/models/' + alias + '/start'; domo.post(startURL, params).then(data => { console.log(data); document.getElementById('resultText').innerText = `Workflow '${data.modelName}' started successfully`; }).catch(err => { console.log(err); document.getElementById('resultText').innerText = `Start failed`; }) };
Every attempt returns a 404 not found error.
{
"status": 404,
"statusReason": "Not Found",
"message": "No workflow found with the name "RunDataflow"",
"toe": [*omitted, looks like a token of some sort so I probably shouldn't share it]
}
I can't find much on the workflow API. I tried domo.get('/domo/workflow/v1/models') and it returned a list of all workflows, including a name property that matches what I'm trying. I can manually trigger the workflows, so it doesn't seem to be anything wrong with them.
Is this some security limitation? Is there an endpoint that uses the workflow ID instead of an alias I can try? Kind of stumped on this one, nothing I try seems to work.
Best Answer
-
The error message you're receiving indicates that the Domo API endpoint/domo/workflow/v1/models/RunDataflow/start
is returning a 404 Not Found status code, indicating that no workflow was found with the name "RunDataflow".Here are a few steps you can take to troubleshoot and resolve this issue:
- Verify Workflow Name: Double-check that the workflow alias or name "RunDataflow" is correct. It's possible that there might be a typo or inconsistency in the alias used to identify the workflow.
- Check Workflow Existence: Ensure that the workflow named "RunDataflow" exists in your Domo instance. You can verify this by logging into Domo and navigating to the workflows section to see if the specified workflow is present.
- Confirm API Endpoint: Confirm that the API endpoint
/domo/workflow/v1/models/RunDataflow/start
is the correct endpoint for starting the desired workflow. You may need to consult the Domo API documentation or contact Domo support to ensure you're using the correct endpoint. - Permissions: Ensure that the user or authentication token used to make the API request has sufficient permissions to access and execute the specified workflow. Lack of permissions could result in the workflow not being found.
- Error Handling: Implement more robust error handling in your code to provide additional information in case of errors. This could include logging more details about the request and response to aid in troubleshooting.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Answers
-
The error message you're receiving indicates that the Domo API endpoint/domo/workflow/v1/models/RunDataflow/start
is returning a 404 Not Found status code, indicating that no workflow was found with the name "RunDataflow".Here are a few steps you can take to troubleshoot and resolve this issue:
- Verify Workflow Name: Double-check that the workflow alias or name "RunDataflow" is correct. It's possible that there might be a typo or inconsistency in the alias used to identify the workflow.
- Check Workflow Existence: Ensure that the workflow named "RunDataflow" exists in your Domo instance. You can verify this by logging into Domo and navigating to the workflows section to see if the specified workflow is present.
- Confirm API Endpoint: Confirm that the API endpoint
/domo/workflow/v1/models/RunDataflow/start
is the correct endpoint for starting the desired workflow. You may need to consult the Domo API documentation or contact Domo support to ensure you're using the correct endpoint. - Permissions: Ensure that the user or authentication token used to make the API request has sufficient permissions to access and execute the specified workflow. Lack of permissions could result in the workflow not being found.
- Error Handling: Implement more robust error handling in your code to provide additional information in case of errors. This could include logging more details about the request and response to aid in troubleshooting.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
The name in the start endpoint is the aliased name. When you edit the app you can see the alias names in the wiring screen.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive