how to keep waiting the business rule for some time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2015 12:21 AM
Hi,
i have an update business rule which has to trigger after 3 minutes of ticket creation. how can i achieve this ?
Regards,
Hima Pallela.
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2015 12:27 AM
Hi Hima,
You may find the below links helpful.
https://community.servicenow.com/thread/150784
http://www.servicenowguru.com/scripting/stopping-record-submission-servicenow/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2015 12:46 AM
Hi Hima,
Either use async business rule for this purpose or use script action.
To use script action create a new event and then configure a script action for that event.Then fire that event from business rule. Now in script action script you could use gs.sleep() -please refer the 1st link provided by Pradeep.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2015 12:56 AM
Agree with Gurpreet. The best way would be to factor your code to be asynchronous and use callbacks.
Also please note that gs.sleep() will not work for scoped applications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2015 12:48 AM
Yes, gs.sleep(180000) will work.