Business rule userId

marcos manzo
Kilo Contributor

Hello, i have a problem. I need to create a business rule, that create the userId, with the first letter of name + last name.

My script is working, but this create me to records and generate an error. 

I don't know, how eliminate this error.find_real_file.pngfind_real_file.pngfind_real_file.png

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi

your script includes the lines

var gr = new GlideRecord("sys_user");
gr.initialize()

and

gr.insert()

Skip them, replace "gr" with "current" and make sure, that your script is a "before" Business Rule.

Kind regards
Maik

View solution in original post

6 REPLIES 6

thanks, the error don´t exist more.

Anka rao Addank
Tera Contributor

Can u please provide full requirement