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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Ashok_308 

 you want it in Form or catalog item?

 

 

https://www.servicenow.com/community/developer-forum/how-do-i-implement-the-barcode-scanning-feature...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

I want in catalog item

Hi @Ashok_308 

 

You can use client script, and you can get base from above link.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

AnimeshP_96
Tera Guru

Hi @Ashok_308 
Is your query resolved or still facing issues? 

 

if not resolved tell me that Requested by and requester for datatypes would be reference or list so if you have want logged in user try below code

gs.getUserID() write this in default value of the field.!!!


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




Regards,
Animesh