- 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Changing User Assignments
- Updated on 12 Mar 2021
- 1 Minute to read
- Print
- DarkLight
Overview
Example Lab Details | |
Version | 6.4.0 |
Root Folder | Example Lab - Changing Assignments |
Modules | None |
Dependencies | None |
This Example Lab project demonstrates how to change what user(s) an assignment is assigned to after it has already been assigned.
Explanation
To test this project the user must first run the flow "Create Assignment". This Flow will create an assignment titled "Change assignment example" and assign it to the current user automatically. In order to change the assigned user run the Flow titled "Change Assignment". The Flow will first display the "select assignment" Form, here the user can search for any current assignment by name, for convenience, the assignment created in the previously run Flow is prefilled into the textbox. Once the user clicks the "Search" button the textbox input will be passed to the Fetch Entities step, where if the assignment exists that assignment data will be output into the Flow. If the Fetch Entities step yields no results a popup will be displayed informing the user of the error and the user will be redirected back to the "select assignment" Form. Once the assignment has been found the Flow will display the "Change Assignee" Form. Here the user will be able to view a list of the current assignees and be able to change the assigned user(s) to any desired input by adding assignees in the "Add Assignee" textbox. The Flow will then use a series of ForEach steps to remove the assignment from the currently assigned users and add the assignment to the newly added users.