- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 11:01 PM
((current.stockroom.changes() || current.assigned_to.changes() || global.AssetUtils.isPlaybookInReview(current)) && !current.location.changes())
Hi All above condition is written in my Before business rule condition, I m not sure about
global.AssetUtils.isPlaybookInReview(current)
Can Anyone please explain what is the meaning of it, or which condition it checks, Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 11:17 PM
@Community Alums
is this an OOB BR as changes() won't work in Query BR condition or script as it doesn't have access to the record.
AssetUtils -> is a script include
isPlaybookInReview -> is a function within that script inlcude
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
02-01-2024 11:19 PM
Hi @Community Alums ,
global.AssetUtils.isPlaybookInReview(current)
In the given code above:
- global: is the application scope.
- AssetUtils: is the script include name.
- isPlaybookInReview: is the function inside the "AssetUtils" script include. This function is basically checking the status and configurations of a playbook plugin 'com.sn_sam_playbook'.
- current: is the object of currently selected record in the business rule.
Please mark my answer helpful and correct if it helps.
Shivam Jaiswal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 11:17 PM
@Community Alums
is this an OOB BR as changes() won't work in Query BR condition or script as it doesn't have access to the record.
AssetUtils -> is a script include
isPlaybookInReview -> is a function within that script inlcude
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
02-01-2024 11:19 PM
Hi @Community Alums ,
global.AssetUtils.isPlaybookInReview(current)
In the given code above:
- global: is the application scope.
- AssetUtils: is the script include name.
- isPlaybookInReview: is the function inside the "AssetUtils" script include. This function is basically checking the status and configurations of a playbook plugin 'com.sn_sam_playbook'.
- current: is the object of currently selected record in the business rule.
Please mark my answer helpful and correct if it helps.
Shivam Jaiswal