Not understanding why this one line of code Not Working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 12:21 AM
Hello all,
Because of some business need, we have in activated Priority look up rules on Incident.
Now I have written a BR, before - Insert and Update on Incident table and here is the script
I see that highlighted line of code is not executing, and I don't see the log message in the logs. Rest of all the log messages are coming up.
Can someone tell me what went wrong over there?
Regards,
Lucky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 01:26 AM - edited 04-23-2025 01:41 AM
Hi @Lucky1 ,
on which application scope this BR is in?
gs.log is only supported in the global scope
try changing the gs.log to gs.info if the BR is in any other scope or create the BR in global application
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 01:39 AM
Hello Chaitanya, Ankur and Sagar,
I don't understand why service-now behaves weird.
Because I just inactivated the Urgency choices and activated again. Now it's working fine.
Thank you all for your responses.
Regards,
Lucky