- 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-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:56 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 08:36 PM
Hi,
pass value like this
in f(x) do this
1) pass ritm sysId
2) in script include function query RITM record and return the decrypted value
var ritmSysId = fd_data.trigger.request_item.sys_id;
var obj = new ScriptInclude.getValue(ritmSysId);
I hope I have answered your query.
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