Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

background script to close the ritm?

lakng
Tera Contributor

please someone provide me the background script to close only the targeted RITM records.

not all in sc_req_item table/ sc_request table

i will have a few RITM record numbers.

through background script i have to close only given RITM and REQ, not for remaining records or workflow.

8 REPLIES 8

@lakng 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

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

Hi Ankur,

I tried that works on request but not on sc_task.

My requirement is For 1 request item i have 2 task . how can close those two task. I can't do that with single task numbers I have bulk to autoclose can you please tell me how can I do that.

 

Thannks,

Jahnavi

Hi,

you need to query sc_task for that RITM and update all of those

Regards
Ankur

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

Hi all, I have a requirement to close the ritm using workflow script (state, assignment_group, owner) fields need to be set and additional comments as well. Any help would be useful