- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2020 12:33 PM
How to set default password to a new user...when the user record inserted for the first time we need to set default password as "Sathwik@"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2020 11:36 PM
If you only want to set the default password for the users when you are loading in bulk then no need of Business rule.
you can handle this via onBefore transform script as well
Sample script below:
(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {
// Add your code here
target.user_password.setDisplayValue('Sathwik@');
})(source, map, log, target);
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2020 10:51 PM
Yes, Sathwik. It worked well for me & the suggestion provided was post a check in my PDI.
Alternatively you can use the script line as suggested by Pradeep. In case even if that does not work then you can help with complete logic with proper screenshots for further check.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 10:36 PM