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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
nsmcan
Highly Voted 2 years, 5 months ago
Correct answer is B. gs.hasRole Business Rule is server-side, so it uses GlideSystem API. gs.hasRoleExactly doesn't exist
upvoted 14 times
...
Vinothkumar_Rangasamy
Highly Voted 2 years, 1 month ago
Correct ans :B
upvoted 6 times
...
MagdaGrs
Most Recent 8 months ago
Selected Answer: B
Only gs is for server side, g_form is for client side.
upvoted 1 times
...
Raz_Maz
9 months, 4 weeks ago
gs.hasRole is corect. g_form.hasRole and g_form.hasRoleExactly not exist
upvoted 3 times
...
Alice_Steele
1 year ago
Selected Answer: B
server side is gs
upvoted 3 times
...
SNAngler
1 year, 3 months ago
Selected Answer: B
server side api
upvoted 2 times
...
Krundol
1 year, 8 months ago
Selected Answer: B
Answer B is correct
upvoted 2 times
...
arunmech2001
2 years 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 ...