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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps - Default Se...
Power Apps
Answered

PowerApps - Default Selected Items - Canvas - Email ID in To:\

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I have a canvas mail app, where i have To:\ Cc:\ Bcc:\

I have  a To:\ combo box , the defaultselectedItems value is below.

dsab81_0-1618208048400.png

 

When i select the below , i am getting empty record, which means it is not recognizing the value from the 'default selected item'.

dsab81_2-1618208351293.png

 

But when i remove the default selected item , and manually go and select a email from a drop down, it is sending the email successfully to the person in To:

 

What is the wrong with picking the default selected item?

 

 

Just for understanding , here is my Sample canvas app 

dsab81_1-1618208254403.png

 

Categories:
  • WarrenBelz Profile Picture
    156,566 Most Valuable Professional on at

    HI @dsab81 ,

    What are the Items of the ComboBox (or more to the point, what is the valid output of xxxx in ComboBoxName.Selected.xxxx? If as an example is was EmailAddress, the DefaultSelectedItems would be

    {EmailAddress:User().Email}

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

  • dsab81 Profile Picture
    Microsoft Employee on at

    When i query 'ComboBox-To'.SelectedItems , it should display the User Record . But what i get is empty table as i mentioned in my original post. It doesnt pick the value from the default selected items.

     

    So when i send email using the send button (formulae) , it doesn't send email to the user as it find the value in the default selected item to be empty. 

    Office365Outlook_1.SendEmailV2( Concat(

    'ComboBox-To'.SelectedItems,

    Mail& ";" )

     

    Here is the 'items' : 

    Microsoft365Users.SearchUser({searchTerm: 'ComboBox-To'.SearchText})

     

    and Data fields 

    dsab81_0-1618244512258.png

     

  • Verified answer
    SafaK Profile Picture
    62 on at

    Yes, that is correct, because you are saying ('ComboBox-To'.SelectedItems), where in the default case the item was not selected manually, therefore the value will be blank, so what you can do as a work around, you can set the selected value in a variable, and declare a this variable onVisible property for the screen, which means : 
    1. go to screen OnVisible property, decalre new variable with the default value, 

    SafaK_0-1618247966532.png


    2. go to the Selected Default item in the comboBox and set it to the variable value,

    SafaK_1-1618248026069.png

     

     

    3. Onchange property for the comboBox change the value for the same variable 

    SafaK_2-1618248064592.png



    4. Use the variable value to send email ,

    SafaK_3-1618248106043.png



    This should work now 🙂 

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard