web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Setting a combobox def...
Power Apps
Answered

Setting a combobox default from a split string of 365 emails

(0) ShareShare
ReportReport
Posted on by 16

Hi

 

I am testing sending emails within PowerApps. My main source is here (Shane Young send email) 
I have created a combo box linked to the Office365User connector to search to capture the people I wish to email in my organisation.

The combo items is set by the following, where DataCardValue153 is the combo box

 

Office365Users.SearchUserV2({searchTerm:DataCardValue153.SearchText}).value

 

The update statement in New form  mode for the data card is

 

Concat( DataCardValue153.SelectedItems, Mail,";")

 

This works and the data sored in the SQL table is fred.flintston@somedomain.com;barney.rubble@somedomain.com etc

 

The question I have is how to set the default of the combo box from the data retrieved from the SQL datatable when the form is in Edit Mode?
So when in edit mode the combo box would show the users, so far I have tried

 

Default = Filter(Table(Office365Users.SearchUserV2()) ,Mail in (Split(ThisItem.EmailRoute,";"))

 

however, my datatypes are incorrect

 

Any advise or pointers welcome

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,415 Super User 2025 Season 2 on at

    @coder57 

    If you set the DefaultSelectedItems property (rather than the Default property) to the following formula, it should hopefully display the email addresses correctly.

    RenameColumns(Split(ThisItem.EmailRoute, ";"),"Result", "Mail")

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard