exam questions

Exam CAD All Questions

View all questions & answers for the CAD exam

Exam CAD topic 1 question 115 discussion

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

In a Business Rule, which one of the following returns the sys_id of the currently logged in user?

  • A. g_form.getUserID()
  • B. gs.getUserSysID()
  • C. gs.getUserID()
  • D. g_form.getUserSysID()
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GoMaggieO2
3 months, 3 weeks ago
Selected Answer: C
https://servicenowguru.com/scripting/user-object-cheat-sheet/
upvoted 1 times
...
tinylifter
1 year, 1 month ago
Selected Answer: C
C is the answer. g_form is client-side and the getUserID method returns the sys_ID of the currently logged in user
upvoted 2 times
...
Bob_Loblaw
1 year, 2 months ago
Selected Answer: C
https://docs.servicenow.com/bundle/tokyo-application-development/page/app-store/dev_portal/API_reference/glideSystemScoped/concept/c_GlideSystemScopedAPI.html
upvoted 3 times
...
milokimok
1 year, 2 months ago
Selected Answer: C
The gs.getUserID method is used to determine the sys_id of the currently logged-in user.
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago