Which of the following methods are useful in Access Control scripts?
A. g_user.hasRole() and current.isNewRecord()
B. gs.hasRole() and current.isNewRecord()
C. g_user.hasRole() and current.isNew()
D. gs.hasRole() and current.isNew()
Which of the following methods are useful in Access Control scripts?
A. g_user.hasRole() and current.isNewRecord()
B. gs.hasRole() and current.isNewRecord()
C. g_user.hasRole() and current.isNew()
D. gs.hasRole() and current.isNew()
B is correct:
gs.hasRole() and current.isNewRecord() both are valid Servicer-Side.
g_user.hasRole() – this is Client-Side
current.isNew() does not exist in SerivceNow.
B
C