- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2022 09:46 AM
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.
Solved! Go to Solution.
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2022 10:04 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2022 03:39 PM
thanks, the error don´t exist more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 07:46 PM
Can u please provide full requirement