Scenario : Get a specific user associated attributes such as Manager, Job title, Department, etc..
Solution
- Create a Catalog Client script
- 'Applies to ' 'Variable Set'
- Select the appropriate variable set name
- Select the apprpriate variable name
- Use below script
function onChange(control, oldValue, newValue, isLoading) {
var userValue1 = g_form.getReference('variables.cat_requested_for');
// Get Manager
var managerVar = userValue1.manager;
// Get Job title
var managerVar = userValue1.title;
// Get Department
var managerVar = userValue1.department;
}
Thanks for sharing valuable information and very well explained. Keep posting.
ReplyDeletebest servicenow online training
servicenow developer training online
Too good article,Keep sharing more posts with us.
ReplyDeleteThank you...
ServiceNow Admin Online Training
nice........................!
ReplyDeleteworkday online training
power bi course
mulesoft training
pega training
servicenow training training