Re-open a catalog task

Puru2
Tera Contributor

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.

Screenshot_test.PNG

Best Regards,

Puru

5 REPLIES 5

lomouhamadou
Kilo Guru

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.


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.


lomouhamadou
Kilo Guru

re,



Here an example of what it could be.


I quicly used my developer instance and no sc_task so I used the event but what's important is to use the "rollback to" and connect it to the sc task you want to re-open



find_real_file.png


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

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.