- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2025 04:58 AM
Hi everyone,
I have created a flow to update the emails of several users, create a new temporary password and force the reset of their passwords. The problem I have is that I am not able to link the generated password to the body of the email (it returns 0). I have tested the code to generate the password in a background script and it works.
Any ideas ?
Thank you very much in advance and best regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2025 06:14 AM
Hi @tomaslindev
I went through your case and setup a similar thing in my PDI.
As for email I can not test from here properly but I believe it will work. See the attached screenshot and updated sets artifacts for your reference. Let me know if this solution works for you or not.
If you like this opinion and your problem is resolved after reviewing and applying it. Please kindly mark this your best answer‌🌠‌ OR mark it Helpful ‌⛑‌ if you think that you get some insight from this content relevant to your problem and help me to contribute more to this community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2025 05:18 AM
you are sending encrypted value in email.
try to create a flow variable and set the normal password which is the non-encrypted in that flow variable
then use that flow variable in your email
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2025 05:32 AM
Hi Ankur,
Thank you very much for your help. I have made the changes you mentioned but I am still the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 04:24 AM
you need to create a flow variable
Then set that flow variable with the random password (currently what you are doing in script for password field of Update Password action)
Then use that flow variable
where is the step to set flow variable?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2025 07:47 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader