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.

Update incident state field when specified 'on hold' date reached

foster1
Kilo Explorer

Hi, I'm going round in circles on this and hoping someone can help. I have set up the notifcation as mentioned in:
http://wiki.service-now.com/index.php?title=Creating_a_Simple_Reminder_Email
using an 'On Hold' date/time field in the Incident form (u_on_hold_expiry)

Condition: current.u_on_hold_expiry.changes()

Script: gs.eventQueueScheduled("Incident.reached.end.of.onhold.period", current, gs.getUserID(), gs.getUserName(), current.u_on_hold_expiry);

Event: Incident.reached.end.of.onhold.period

and this is working fine.
What I would like to do is reset the Incident state from 'On hold' to 'Active' at the same time i.e. when the 'current.u_on_hold_expiry.changes()' at the time set in the field, is this possible from the same Business Rule/event or does it have to be done separately? Any suggestions and/or assistance greatfully received.



Foster

5 REPLIES 5

Dan Tolgyesi1
Tera Expert

Hi Foster,

Did you ever manage to get this working, I have tried various script actions to run this as suggested above but I can't seem to get it working, have you been successful with this?

Thanks
Dan