- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 02:53 AM
Hello everyone,
I have created a flow to force certain users to enter a new password and generate a temporary one to send to their email. The problem is that I cannot embed the generated password in the body of the email (for which I have used a variable flow). 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-09-2025 04:32 AM
Hello @tomaslindev
Flow Variable should be setup first in flow which is at top right corner.
Then in your for each loop set that variable you created as per below image
Script will be like
var randomNUmber = Math.floor(Math.random() * 1000);
var tempPass = fd_data._2__for_each.item.first_name.toString()+ fd_data._2__for_each.item.last_name.toString() + randomNUmber;
return tempPass.toString();
Next step save that random generated password to user profile as below
When you sending email use that random password stored in flow variable as show in snip
Once you run that flow temp password is set to user account and email is triggered to user.
Email snip
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 03:52 AM
Hello @tomaslindev
Create a flow variable to store the temporary password that is generated. Ensure the password is strong and adheres to acceptable security standards. This flow variable should be used in the email body. If the process involves a loop, initialize and set the flow variable inside the loop to generate a unique temporary password for each user during each iteration.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 04:08 AM - edited ‎01-09-2025 04:08 AM
Please Look into this also if needed
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 04:35 AM
hi @Sanjay191,
Would I need to force each user to change their password via an update password? And in your proposed solution, how would I complete the empty field?
Flow update with proposed changes:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 04:47 AM
Hello @tomaslindev
You just needs to update the user record with their temporary password and also "Password needs reset" field to true , so if user try to login then with temp password at that time user again can be reset for the security reason.