Skip to content

Flow Name: Send Reset Password Email Flow

Last Updated: 2025-10-22 Source Code: Send_Reset_Password_Email_Flow.flow-meta.xml

API Name: Send_Reset_Password_Email_Flow Status: Active Type: Custom Trigger: Manual/Screen Flow (invoked from Person Account record)

Business Purpose

Enables password reset email delivery for Person Account users with duplicate prevention. Provides administrative interface to trigger password resets while tracking email delivery to prevent multiple sends per session.

Process Flow

  1. Gets User record associated with Person Account
  2. Checks if PasswordResetEmailSent__c flag is already true
  3. If not sent: Calls Apex to send password reset email
  4. Updates User.PasswordResetEmailSent__c to true
  5. Displays success or error screen based on result
📊 Click to view Process Flow Diagram
flowchart TD
    Start([Start: Manual Invocation]) --> GetUser[Get Related User]
    GetUser --> CheckFlag{Email Already<br/>Sent?}
    CheckFlag -->|Yes| Success[Display Success Message]
    CheckFlag -->|No| SendEmail[Call Apex to Send Email]
    SendEmail --> UpdateFlag[Update PasswordResetEmailSent Flag]
    UpdateFlag --> Success
    SendEmail --> |Error| Error[Display Error Screen]
    Success --> End([End])
    Error --> End

    style Start fill:#e1f5ff
    style GetUser fill:#e1ffe1
    style CheckFlag fill:#fff4e1
    style SendEmail fill:#ffe1e1
    style UpdateFlag fill:#ffe1e1
    style Success fill:#e1ffe1
    style Error fill:#ffe1e1
    style End fill:#e1f5ff

Key Business Rules

  • Only one password reset email per user per session
  • Requires Person Account with associated User record
  • PasswordResetEmailSent__c flag tracks email delivery
  • Apex class handles actual email sending
  • No mechanism to reset flag for additional emails in same session

Dependencies

  • Person Account with User association
  • Custom field: User.PasswordResetEmailSent__c
  • Custom Apex class: SendResetPasswordEmailFlowHandler
  • Email deliverability configuration

Changes

No Pull Request references found in metadata.

Pre-Go-Live Concerns

CRITICAL - Fix Before Go-Live

  • Add mechanism to reset PasswordResetEmailSent__c flag for subsequent password reset needs

HIGH - Address Soon After Go-Live

  • Verify Apex class SendResetPasswordEmailFlowHandler is properly deployed
  • Test email delivery in production environment

MEDIUM - Future Enhancement

  • Add admin override to send multiple password reset emails if needed
  • Implement time-based flag reset (e.g., reset after 24 hours)
  • Add logging for password reset email attempts

LOW - Monitor

  • Track password reset email success rates
  • Monitor flag reset requirements from support team

Maintenance Notes

Complexity: Low - Simple user lookup, Apex call, and flag update Review Schedule: Annual review recommended Apex Dependency: Requires SendResetPasswordEmailFlowHandler class Testing: Requires Person Account with User and email configuration