- 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 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-09-2020 03:34 AM
Let me know if I have answered your question.
If so, please mark appropriate answer as correct & helpful to close the thread.
If not, please let us know if you need some more assistance.
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-09-2020 04:18 AM
If your query is resolved please mark mark appropriate answer as correct & helpful to close the thread and others can be benefited by this.
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-09-2020 10:01 PM
Let me know if I have answered your question.
If so, please mark my response as correct & helpful to close the thread and others can be benefited by this.
If not, please let us know if you need some more assistance.
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-09-2020 10:18 PM
Hi Ankur - I don't think any value is added here by repeating the same message