- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
My requestion is when the catalog varaiable name is changed only Notiifcation should be triggered, right now if any change happens on state or priority field of sc_task
I have sc_take (where Quality analyst variable ), Business rule on the sc_task table screen shot and current logic with below condition
and
and code is writtne like this
''
Can you help by added the required logic so that if only Quality Approver ( catalog variable ) is changed then only email should be triggered.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @LVPhanee ,
Before Business rule will work.After BR does not captures the Previous value.
If my response helped, mark it as helpful and accept the solution.
Thanks,
Teja.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
did you print the variable value and compare?
try to add this in BR condition current.variables.variableName.changes() along with your existing
it has worked in the past
Business rule condition - Variable value changes
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
here is the log screen shot and current BR code
log screen shot:
and code screen shot:
It is not working for Catalog variable, don't how it worked previously.
on the sc_task I changed the value from 'userA' to 'userB' Here i am getting sysid of 'userB' only. BR is on sc_task table only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
did you try same BR on RITM and see the behavior?
Another way is to write BR on sc_item_option table where variable and it's value are stored
You can write BR on that and then handle the logic
BR Condition: Question = Your Variable AND Value Changes
Script:
1) query sc_item_option_mtom with "Dependent Item" = current.sys_id
2) then check the RITM is for which catalog item and then proceed
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @LVPhanee ,
Before Business rule will work.After BR does not captures the Previous value.
If my response helped, mark it as helpful and accept the solution.
Thanks,
Teja.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Completed this requirement with your suggestion went with before BR.