Which of the following objects does a Display Business Rule NOT have access to?
A. previous
B. GlideSystem
C. g_scratchpad
D. current
Which of the following objects does a Display Business Rule NOT have access to?
A. previous
B. GlideSystem
C. g_scratchpad
D. current
As per documentation answer should be A but this is not true in practice.
Question is either tricky or messed up.
https://docs.servicenow.com/bundle/sandiego-application-development/page/script/business-rules/concept/c_ScriptingWithDisplayBusinessRules.html
…but still there is access to “previous” object but as there was no change on the form yet then previous == current.
…so still answer A even if in practice it is wrong answer but on the other hand there is no purpose of using “previous” if it’s the same as “current”.
I just played around with a Display business rule and found out that all objects are accessable via script:
current – contains the record
previous – also contains the record
GlideSystem – I used gs.error() and it worked
g_scratchpad – JSON.stringify(g_scratchpad, null, “\t”) yields
{
“browserSupported”: true,
“isNewUI”: true
}
So I would say the whole question is faulty.
A is correct.