Update Password Data Pill

tomaslindev
Mega Guru

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.

 

Flow 3.pngCreación de contraseña.pngCuerpo correo 1.png

1 ACCEPTED SOLUTION

MackI
Kilo Sage

Screenshot 2025-01-12 at 1.07.04 am.pngScreenshot 2025-01-12 at 1.07.23 am.png

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

MackI | ServiceNow Developer | 2 *Mainline Certification | LinkedIn Top IT Operation Voice 2023 | Sydney,Australia

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@tomaslindev 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,
Thank you very much for your help. I have made the changes you mentioned but I am still the same.

temp password.pngemail body.png

@tomaslindev 

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?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@tomaslindev 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader