Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

query regarding BR Condition

Community Alums
Not applicable
((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!

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Shivam Techlene
Tera Guru

Hi @Community Alums ,

global.AssetUtils.isPlaybookInReview(current)

 

In the given code above:

  1. global: is the application scope.
  2. AssetUtils: is the script include name.
  3. 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'.
  4. current: is the object of currently selected record in the business rule.

Please mark my answer helpful and correct if it helps.

 

 

Thanks & Regards,
Shivam Jaiswal

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Shivam Techlene
Tera Guru

Hi @Community Alums ,

global.AssetUtils.isPlaybookInReview(current)

 

In the given code above:

  1. global: is the application scope.
  2. AssetUtils: is the script include name.
  3. 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'.
  4. current: is the object of currently selected record in the business rule.

Please mark my answer helpful and correct if it helps.

 

 

Thanks & Regards,
Shivam Jaiswal