User Story
As a Salesforce administrator, I want to create a screen flow that allows me to:
-
Select a License:
- Display the selected license along with the number of remaining licenses.
- If licenses are remaining, show an input field where I can specify the number of users to create (between 0 and the maximum remaining licenses).
-
Validate Input:
- If I enter a number less than 0 or greater than the remaining licenses, display an error message:
"Enter a number between 0 and [Remaining Licenses]".
-
User Creation:
- When I enter a valid number of users to create, display a user creation form.
- Repeat the form for each user until all specified users are created.
-
Username Management:
- Include a checkbox labeled "Username is same as Email":
- If selected, set the Username to match the Email value automatically.
- If not selected, allow manual input of the Username.
- Include a checkbox labeled "Generate Username":
-
CRM Integration:
- Ensure that all created users are added to the CRM system.
Acceptance Criteria:
- The screen flow validates the input for the number of users based on available licenses.
- Error messages appear when invalid input is provided.
- The user form functions dynamically, adjusting for the specified number of users to create.
- The "Username is same as Email" and "Generate Username" checkboxes work as expected, with the correct username formats generated.
- All created users are saved in the CRM system.