Re-open a catalog task

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2016 05:32 AM
Dear All ,
I have a requirement in which I need to re-open a catalog task if the approval gets rejected. The scenario is as explained in the below drawn image.
If (approval = yes) , then RITM state = closed. [No issues]
else( approval = no , then RITM state = open
catalog task gets created.
if catalog task state = closed, then again the same approval is triggered.
If (approval = yes) , then RITM state = closed.
else
the same catalog task should get reopened.
Please advise me as I am facing issues in re-opening the same catalog task, if approval = no.
Anyone knows the answer, please advise.
Best Regards,
Puru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2016 05:38 AM
Hi,
In your workflow just after the approval you have to add a "Rollback to" activity and link it to the "no" and to the catalog task.
Then It will re-open the task and reset it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2016 05:48 AM
Hello Mouhanadaou,
The issue I am facing is to re-open the same catalog task.
Let's say,
for the 1st cycle , approval gets rejected and catalog task gets created.
then workflow activity goes to "Approval"
for the 2nd cycle, if approval gets rejected , then the same catalog task should get re-opened.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2016 06:02 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2016 06:06 AM
Hi Pururava,
If the Roll back activity doesn't help then you need to have a RunScript and GlideRecord the target table "sc_task" and set the field value as per your req.
Template:Rollback Overview - ServiceNow Wiki
Activity Designer - Run Script - ServiceNow Wiki
http://wiki.servicenow.com/?title=GlideRecord#gsc.tab=0
Please let me know if you have any questions.