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 12:28 AM
Hi @Lucky1,
Add the log statement at the beginning and print the urgency and impact values. I think value is not matching with conditions.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 12:30 AM
did you print the values of those variables just before you start the comparison i.e. the 1st IF
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 01:00 AM
Hello Ankur and Sagar,
The new log, Values are: is also not coming up.
Actually, it seems, it is not going to else if condition I guess.
Regards,
Lucky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 01:51 AM
I informed to add the logs at the very beginning
here
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader