User Story
As a System Administrator,
I want to provide a secure screen flow for users to delete accounts that do not have any closed-won opportunities or open cases,
So that I can ensure account cleanup is done securely and only by authorized users.
Acceptance Criteria:
-
Login Validation:
- Users must enter a username and password at the start of the flow.
- The username and password should be validated against values stored in the Screen Flow Access Credentials metadata.
-
Error Handling for Login:
- Display the following alert messages based on the validation result:
- If the username is incorrect: "The username you entered is incorrect. Please try again."
- If the password is incorrect: "The password you entered is incorrect. Please try again."
- If both username and password are incorrect: "Both the username and password you entered are incorrect. Please try again."
-
Account Identification:
- Once logged in, the flow should identify accounts that meet the following criteria:
- No Closed Won opportunities.
- No Open Cases.
-
Confirmation Screen:
- Display a confirmation screen listing the accounts to be deleted.
- Users must confirm before proceeding with the deletion.
-
Account Deletion:
- The flow should delete all selected accounts.