cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dhofknecht
Level: Powered On

ComboBox DefaultSelectedItems w/ Office 365 Users Connector

I am looking to setup a combobox for of users with the Office 365 Users connector and while I was able to properly populate the combobox, I am having trouble setting up the DefaultSelectedItems property for the combobox on my edit form.  The PowerApp pulls the majority of the data from a SQL Server where i have a User field in my table (we will call it Table1 for the sake of the example). So for example if on the Detail Screen the txtUser = "Mike" then when selecting to edit the record, I want the DefaultSelectedItem for the comboboxUser to already have "Mike" selected.  I have tried several methods from LookUp to context variable and have not had much luck.  Has anyone been able to setup the DefaultSelectedItems for Office 365 Users and if so how did you structure your formula to select the User from Office 365 Users that is stored in the SQL database.

1 REPLY 1
dhofknecht
Level: Powered On

Re: ComboBox DefaultSelectedItems w/ Office 365 Users Connector

After some more testing I found that this worked for me:

Office365Users.SearchUser({searchTerm:txtUser})

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,178)