Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CAD All Questions

View all questions & answers for the CAD exam

Exam CAD topic 1 question 29 discussion

Actual exam question from ServiceNow's CAD
Question #: 29
Topic #: 1
[All CAD Questions]

In a Business Rule, which one of the following returns true if the currently logged in user has the admin role?

  • A. g_form.hasRoleExactly('admin')
  • B. gs.hasRole('admin')
  • C. g_form.hasRole('admin')
  • D. gs.hasRoleExactly('admin')
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
nsmcan
Highly Voted 3 years, 1 month ago
Correct answer is B. gs.hasRole Business Rule is server-side, so it uses GlideSystem API. gs.hasRoleExactly doesn't exist
upvoted 16 times
...
Vinothkumar_Rangasamy
Highly Voted 2 years, 8 months ago
Correct ans :B
upvoted 6 times
...
RoadtoCad
Most Recent 2 months, 4 weeks ago
Selected Answer: B
Only gs is for server side, g_form is for client side
upvoted 1 times
...
adesogus
6 months, 1 week ago
hasRoleExactly only exists in the Glide User (g_user) class
upvoted 2 times
...
MagdaGrs
1 year, 3 months ago
Selected Answer: B
Only gs is for server side, g_form is for client side.
upvoted 1 times
...
Raz_Maz
1 year, 5 months ago
gs.hasRole is corect. g_form.hasRole and g_form.hasRoleExactly not exist
upvoted 3 times
...
Alice_Steele
1 year, 8 months ago
Selected Answer: B
server side is gs
upvoted 3 times
...
SNAngler
1 year, 11 months ago
Selected Answer: B
server side api
upvoted 2 times
...
Krundol
2 years, 4 months ago
Selected Answer: B
Answer B is correct
upvoted 2 times
...
arunmech2001
2 years, 7 months ago
Selected Answer: B
Correct Answer is B
upvoted 5 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...