Change RITM Priority After a Certain Number of Days

JGuerrero0323
Tera Expert

I have a flow where I want a task to be created when a user requests a computer.

The user should return the computer within a maximum of 14 days! What happens if this doesn't occur? Both the task and the created RITM should have a higher priority.

What has been challenging for me?

  • If the user returns the computer before the 14-day deadline, the priority should not change! The task and the RITM should be closed (normal flow).

 

What I tried:
In the Flow, I added a Wait for Condition that triggers when the SCTASK is marked Closed Complete.
At the same time, when the SCTASK is created, I started a 14-day timer in parallel.

JGuerrero0323_0-1742512831560.png

 


However, I couldn’t get it to work as expected.

Any suggestions or guidance would be greatly appreciated!

6 REPLIES 6

Hemant Ch
Tera Expert

Hi J

 

Create a checkbox or a hidden variable and whenever the user returns before 14 days update that checkbox and refer to the checkbox value in the wait-for condition 

 

Regards

Ch Hemant Kumar

Ciena India

Community Alums
Not applicable

Hi @JGuerrero0323 

I would suggest a schedule job to monitor the active sctask of the RITMs of desired catalog item and compare the current date and creation date of task. If it is greater than 14 days then set the respective RITM Priority to High.

 

I believe doing it in Flow might not be accurate.

 


Regards

Saranesh

Ankur Bawiskar
Tera Patron
Tera Patron

@JGuerrero0323 

Simply run a scheduled job and query you RITM with specific catalog item

Then get the date, get current date, add 1 days to current date and then compare both the dates
If it's more then update the RITM priority

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@JGuerrero0323 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader