how to Auto populate based on logged in user

Ashok_308
Tera Contributor

I want to Auto populate Requested by, requested for ,user id ,contact number, location and email fields.

14 REPLIES 14

Nayum Pasha
Tera Contributor

1. If you want to populate based on logged in user use, gs.getUser(), will give object, do a dot walking to get userId and location, email, contact number. (gs.getUser().email).

2. if you want to populate based on the user selected on the filed use onChange client script and script include.

 

If my answer helps you in any way, please mark it as correct or helpful.

Maddysunil
Kilo Sage

@Ashok_308 

Please check the below link , it is similar question..

https://www.servicenow.com/community/guided-learning-itsm/how-to-auto-populate-manager-email-id-base... 

 

  

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks

AnimeshP_96
Tera Guru

@Ashok_308 
Is your query resolved? if not let me know what else you want to solve this.!!!


Please accept the solution /mark this response as correct or helpful if it assisted you with your question.




Regards,
Animesh

AnimeshP_96
Tera Guru

@Ashok_308 
is your query resolved, if not close this thread for proper readiblity


Please accept the solution /mark this response as correct or helpful if it assisted you with your question.




Regards,
Animesh

AnimeshP_96
Tera Guru

@Ashok_308 
could you please close the thread if your query is resolved?


Please accept the solution /mark this response as correct or helpful if it assisted you with your question.




Regards,
Animesh