
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 03:43 PM
Can someone help me troubleshoot the following business rule? I use gs.isInteractive() to make sure that it runs when the user logs in the platform but not when in a non-interactive session. But it does run when the user submits a request and the log statement shows "gs.isInteractive(): true".
By the way, it's on Kingston.
Befrore query table sc_req_item.
(function executeRule(current, previous /*null when async*/) {
gs.log('gs.isInteractive():' + gs.isInteractive());
if (!gs.isInteractive()) {
gs.log('!gs.isInteractive():' + !gs.isInteractive());
return;
}
// do some processing here
})(current, previous);
Any help would be much appreciated.
Joy
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-13-2018 06:15 PM
Please close the thread by marking my response correct if it worked for you
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 03:47 PM
Where is the user submitting the request?
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 04:40 PM
It was submitted through a portal page.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 04:49 PM
Service portal in ServiceNow? Or external portal?
If external portal, which user account are you using to do that.
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2018 04:50 PM
It's Service portal in ServiceNow.