We have a PowerApps-based ticketing system that's currently in use. We're constantly re-evaluating the code to make it faster, better, more efficient, etc.
Our PowerApps has 3 screens:
1. Intake screen
2. Edit screen
3. Tickets List
The Intake & Edit screens are essentially the same. The biggest difference - the Default property for the Edit screen points to SharePoint for the ticket selected from the Tickets List. One of the fields is Team Assignee. It's a Combobox in PowerApps and a User/Group field in SharePoint (in PowerApps, it's "TeamAssignee_Intake" and "TeamAssignee_Edit")
> The Items property for the fields on both screens is --> Office365Users.SearchUser({searchTerm: Self.SearchText, top: 5})
> The DefaultSelectedItems property on the Edit screen is: Office365Users.SearchUser({searchTerm:LookUp('SharePoint List',ID=VarThisRecord,'Team Assignee'.DisplayName)})
Solved! Go to Solution.
I tried this and it worked OK:
If(IsBlank(Blank()),[],Office365Users.SearchUserV2({searchTerm:Blank()}).value)
Replace Blank() with your variable name and LookUp formula, and adjust the formula as you still seem to be using the old version of the SearchUser function.
I tried this and it worked OK:
If(IsBlank(Blank()),[],Office365Users.SearchUserV2({searchTerm:Blank()}).value)
Replace Blank() with your variable name and LookUp formula, and adjust the formula as you still seem to be using the old version of the SearchUser function.
BINGO! Thanks very much!!!
User | Count |
---|---|
122 | |
87 | |
86 | |
75 | |
67 |
User | Count |
---|---|
214 | |
181 | |
137 | |
96 | |
83 |