Hi @Anonymous ,
I can give you a better solution instead of using dropdown try the Office365Users.SearchUser function.
Please watch this video.
I added a gallery and a searchTextInput to search for Office365 users that will automatically populate the forms:
*Screen*
OnVisible Property:
UpdateContext({Selected:false});
*Gallery*
Item:
If(Not(IsBlank(Trim(SubmitToSearchInput.Text))),Office365Users.SearchUser({searchTerm:Trim(SubmitToSearchInput.Text)}))
OnSelect property:
UpdateContext({Selected:true});
Set(SelectedDisplayName, ThisItem.DisplayName);
Set(SelectedDepartment,ThisItem.Department);
Set(SelectedGivenName, ThisItem.GivenName);
Set(SelectedID,ThisItem.Id);
Set(SelectedEmail, ThisItem.Mail);
Set(SelectedJobTitle,ThisItem.JobTitle);
Set(SelectedSurname, ThisItem.Surname);
Set(SelectedUserPrincipalName,ThisItem.UserPrincipalName)
*Forms*
You need to unlock all the data card value:
Set the Default of each Datacard values to corresponding data field that you want:
e.g On Department Datacard Default Property:
If(Selected = true, SelectedDepartment)
Let me know if you're having trouble.
Cheers