We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to create User id ,on submission of first name and last name ?

Rajababu
Giga Guru

Hi ,

I want to create ,User id on combination of First name and last name .

When user submit if user id already exists in sys_user table ,it will create other than that .

9 REPLIES 9

Naveen20
ServiceNow Employee

You can create a insert business rule on the sys_user table. Any logic can be added over there.

hvrdhn88
Giga Patron

is it on catalog form or on table ?

 

you can write here glide ajax to validate if username combination already exist on sys_user table or not and based on that set the value . 

 

 

can you help with that how i can create or validate user id already exists or not ?

And on that basis how i can create new user id ?

mittubhai
Giga Contributor

You can create a after insert Business Rule or onSubmit client script. If you only want it to work for new record add condition current.isNewRecord() or g_form.isNewRecord()