cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,854)