User Story
As a Salesforce user,
I want a flow triggered by a "Mass Delete" button in the Account list view,
so that I can efficiently delete selected accounts or choose specific account types for deletion if no selection is made.
Acceptance Criteria
Triggering the Flow:
A "Mass Delete" button is available on the Account list view.
Clicking the button initiates the flow.
Scenario 1: Accounts Selected:
If accounts are selected from the list view:
All selected accounts are deleted.
A success message appears:
"Selected Accounts have been deleted."
Scenario 2: No Accounts Selected:
If no accounts are selected:
A message appears:
"You did not select any account. Do you want to proceed by choosing an option from the provided list?"
The user sees a radio button list with the following options:
Active Accounts
Inactive Accounts
Hot Accounts
Warm Accounts
Cold Accounts
Based on the user's selection:
If matching accounts exist:
The selected accounts are deleted.
A success message appears:
"Active Accounts deleted successfully."
(Replace "Active Accounts" with the selected category.)
If no matching accounts exist:
A fault message appears:
"No accounts found matching the selected criteria."
Scenario 3: No Option Selected:
If no accounts are selected and the user does not choose an option:
A message appears:
"No account was deleted."