Workflow not attached when ticket created via API
Hello, we have a service with a linked workflow that gets set correctly when creating a ticket in TDNext or through the service page. However, the workflow is not attached correctly when we create a ticket through an API.
Any ideas why an API-generated ticket would not attach the workflow?
Thanks, Tevis
Answers (3)
Hello Tevis,
Are you utilizing the WorkflowID property when you create your tickets via API to ensure there is a workflow being specified for these tickets?
Sincerely,
Mark Sayers
Sr Support Consultant, CS
However, I had thought that if a workflow was "hardcoded" into the service settings, the workflow would be attached on ticket creation. Is this not the case?
Thanks, Tevis - Tevis Boulware Tue 8/16/22 10:32 AM
Thanks Mark,
We do not want to have a Service in the Client Portal for this since we want this ticket creation to only be possible using the API. Is it possible to create a hidden or inactive service that would still function with the API? This is the reson I went with the subsequent PUT endpoint to add the workflow after the ticket is created by the API which is working for the time being.
Otherwise just doing the subsequent PUT call would be the only other way to add the workflow to the created ticket. - Mark Sayers Wed 9/18/24 12:11 PM
Hi Mark,
I am using this in the JSON body and the workflow is not being added to the ticket created by POST to the API endpoint:
{
...,
"WorkflowID": 1234567,
...
}
Any idea why?