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.