- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 11:37 PM
Created a catalog item with variable
1. Company name > refernce
2. user name > string> autopuplated
3. password > mask type
Need to create a flow designer to create a new user and assign the role to him.
I start with trigger > service task , also add get catalog variable , and stuck at action to create a user
how can I create user and assign role to user
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2022 01:05 AM
Hi,
you need to use inline f(x) script to unmask and then set the value for password field
Sample script below
var password = fd_data._1__get_catalog_variables.passwordVariable.getDecryptedValue();
return password;
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
03-25-2022 09:41 AM
How to do in scoped application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2022 08:14 PM
for scoped app
you cannot access the getDecryptedValue() API from a scoped app.
So you need to create script include in global scope and make it accessible from all scopes and call it
If my response helped please mark it correct and close the thread so that it benefits future readers.
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
03-28-2022 11:55 AM
created a global script include, but how pass variable of flow designer to script include ,
i tried but not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 11:55 AM
created a global script include, but how pass variable of flow designer to script include ,
i tried but not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2022 11:55 AM
created a global script include, but how pass variable of flow designer to script include ,
i tried but not working.