Workflow not starting on RITMs, missing context

Sitrix
Tera Guru

Hello all 🙂

We're having an issue with RITMs not recieving a workflow upon creation. They're created by an external system through the regular table API. 

RITMs are create correctly, but their workflow only trigger ever so often, the rest will just have the "start workflow" option on the record. Its not cancelled or similar, its simply not started from what I can tell; context is empty on these records.

Seems to happen at random, same order type, same catalog item, same workflow etc. - but this time it won't work.

Anyone had experience with this issue? Its kinda headscratching to be honest 😄

1 ACCEPTED SOLUTION

Sitrix
Tera Guru

Found out it was a BR that starts the workflow once inserted via the API. Was only set to trigger on update, which was the issue.

Thanks for the feetback though 🙂

 

 

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

so if RITM is created using API the workflow doesn't start?

But if it is submitted manually then workflow starts?

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur 🙂

Yes, we can create RITMs using ex. tryit (this is for technical catalog, so not on portal). Workflow trigger correctly.

 

 

Hi,

how is RITM getting created?

If you are using Cart API then it generated RITM and REQ and then it should start RITM workflow.

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Sitrix
Tera Guru

Note: it does start sometimes while using the API, but more often than not it won't.