Create change using the entered values in catalog form/ritm

AKASH BANERJEE
Mega Guru

We have a requirement in which user will enter values in catalog form, then RITM will be created and after that change is created, and when the change is closed, the ritm will be closed automatically. Please let me know how we can implement this requirement in servicenow.

8 REPLIES 8

Theo BOULANGER
Giga Guru

Hello @AKASH BANERJEE !

You can try it with a flow designer when RITM creation is triggered if the change is closed then close the RITM 🙂

 

Regards,

Theo

Hi @Theo BOULANGER ,

 

Can you please share me the steps which needs to be followed or if any script included.

I will explain you what i'm thinking about your case :

 

The first step in flow designer is to select a trigger (something that will excecute the flow), so in your case it's a RITM record creation. You have to select the table and see what's happening.

 

The second step is a flow action is a condition builder like if change state is closed.

 

The third step is an action in the if condition -> row update, drag the first field in data pills on the right, select state and put the state you want.

 

Regards,

Theo

Nayan  Dhamane
Kilo Sage
Kilo Sage

Hello @AKASH BANERJEE ,

The requirement to create a change can be achieved by using a run script in the workflow to create a change. In the change table create a field which is refering to the current ritm and set the RITM number in it while creation.

To close the RITM once the change is closed write a bsuiness rule on change table and make it update a newly created checkbox field on the RITM table. Also in the workflow add a 'wait for condition' activity which will only run when the checkbox is checked and then you can close the RITM from workflow itself.

BR

If my answer solved your issue, please mark my answer as Correct & Helpful based on the Impact

Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.