Default value

yardenKrispel
Tera Contributor

Hello! I need help. I have a certain field that I need to populate with two people according to their UserId and not according to the sys_id, that is, in the default value do not use the sys_id but the UserId which is according to the email. I would appreciate your help please!

 

yardenKrispel_0-1706010667596.png

yardenKrispel_2-1706010783200.png

 

 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @yardenKrispel 

 

Sys_id is the good way, as in future if email get changed then it create an issue. 

*************************************************************************************************************
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 know that according to the sys_id it works and that's good, but the problem is that the sys_id can change and that's why I need it according to the user_id, can you help me?

Why sys id get change? Sys ID is unique key and never get changed untill unless you delete the record and create it again. 

*************************************************************************************************************
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 have script included but he not work' you can help me? 

yardenKrispel_0-1706011891734.png