Once a ticket is created and the workflow attached it really cannot be changed but i want to attach new workflow changes for old existing RITM's as well .please some one give me sample code to attach new workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2017 08:26 AM
Hi friends ,
Once a ticket is created and the workflow attached it really cannot be changed but i want to attach new workflow changes for old existing RITM's as well .please some one give me sample code to attach new workflow.please some one give me sample code to update in production.
It is equivalent to swapping out a program in the middle of execution. The best that could be done is to cancel the workflow and start a new one but this is very hard to do depending on the workflow trigger and whether you can revert the ticket to cause that trigger (sometimes a state or request for approval triggers the workflow). Simpler generally is just to resubmit the ticket.
If reset / resubmit does not work then evaluation could be done on programmatic options but these are high risk. Part of that is to evaluate what it means to restart the workflow in the middle of the process.
Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2017 10:51 PM
Hi Kambham,
You can trigger specific workflow by using a UI Action,
Workflow Script - ServiceNow Wiki
Section 3.2
Regards,
Vineet
Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2017 06:36 PM
hi yadav,
thanks for the quick action but i am looking sample script .