Login Flows in Salesforce are typically built using Screen Flows, allowing administrators to present users with prompts, forms, and additional steps during the login process. When more complex logic is needed post-login (e.g., validating conditions or updating data), it is best practice to call an autolaunched flow.
Correct Design:
D. ✅ Use Screen Flow for user interaction and trigger an autolaunched flow in the background to handle logic such as validation, record updates, or redirection.
Incorrect Options:
A. Apex Triggers do not run in login flow context.
B. Handling all logic inside a Screen Flow can result in poor performance or limited modularity.
C. Process Builder and Workflow Rules cannot be used in Login Flows.
Reference Extracts from Salesforce Help – Screen Flows and Login Flows:
“Use Screen Flows for login flows to display forms and route logic through autolaunched flows for complex decisions.”
===========