You need to sign in to do that
Don't have an account?

Reset User Password with Flow and Apex Action/Class
Hi there, I am trying to setup a screen flow that asks for a User's name, after which I want to call an apex action that resets that user's password. I am a little unclear on how the Apex class would look - ideally I want to call it within the flow, pass the user Id to it and hasve it reset the password and send the password reset email.
Your help is greatly appreciated!
Your help is greatly appreciated!
Check below details.
For apex you can try below snippet.
For flow.
https://automationchampion.com/2020/12/01/email-notification-on-password-expiration/
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Hi Rashed,
To use an Apex class/or make the apex method visible to flow that particular method should be having @InvocableMethod.
Kindly refer this link :-
https://sachithradangalla.medium.com/how-to-invoke-apex-actions-from-flow-using-invocable-input-output-variables-salesforce-ffd8d0cc1818
Please mark it as best answer if you find the above information helpful.
Regards,
Priya Ranjan