Create change using the entered values in catalog form/ritm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 12:50 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 01:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 01:07 AM
Hi @Theo BOULANGER ,
Can you please share me the steps which needs to be followed or if any script included.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 01:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 01:13 AM
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
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.