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 / SendEmailV2 using comb...
Power Apps
Unanswered

SendEmailV2 using combo box for recipient

(0) ShareShare
ReportReport
Posted on by 39

We are building an app and would like to utilize a combo box value as the recipient email address. We have it setup so that the combo box defaults to the current user. When trying to send an email it says that the value is blank. If I clear the combo box and manually select a user then it works.

 

This is the formula that is being used:  

Office365Outlook.SendEmailV2(cboRE_INIT_NAM.Selected.Mail,
Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @alecnelson01 ,

     

    Did you used the default property or DefaultSelectedItems property?

     

    For Combo box please use DefaultSelectedItems.

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.

    Thanks,

    ANB

  • AN-27081302-0 Profile Picture
    39 on at

    This is what is in the defaultselecteditems property:

    If(Text(frmShipReq.Mode)="1",{
      DisplayName:User().FullName,
      Claims:"i:0#.f|membership|" & Lower(User().Email),
      Department:"",
      Email:User().Email,
      JobTitle:"",
      Picture:""
    },
    Parent.Default)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @alecnelson01 , What is the Item property of this comb box?

     

    Thanks,

    ANB

  • AN-27081302-0 Profile Picture
    39 on at
    Office365Users.SearchUserV2({searchTerm:Self.SearchText}).value
  • cha_cha Profile Picture
    4,932 Moderator on at

    Hello @alecnelson01 

     

    I'm not sure how the combo box is set but what a more straightforward solution to send it to the Current User when no one is selected in the ComboBox:

     

    Office365Outlook.SendEmailV2(If(IsBlank(cboRE_INIT_NAM.Selected.Email),User().Email,cboRE_INIT_NAM.Selected.Email),

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @alecnelson01 : Can you try below code on defaultselecteditems property

     

     

    Office365Users.SearchUser({searchTerm:User().Email})

     

     

    And on item property

     

     

    Office365Users.SearchUser({searchTerm:Self.SearchText})

     

     

    And in the Layout, The Primary Text should be DisplayName

    ANB_0-1695300160368.png

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.

    Thanks,

    ANB

     

     

     

  • AN-27081302-0 Profile Picture
    39 on at

    When I put that in it doesn't auto populate the email address of the current user

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @alecnelson01 : I just repro and it is working for me. Can you try this:

    ANB_0-1695300708354.png

    Or close and reopen the app.

     

    ------------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    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.

    Thanks,

    ANB

  • AN-27081302-0 Profile Picture
    39 on at

    Okay now that worked and I changed it to show the email address. Is there a way to lock it so that after submitting the form it can't be changed? For example we are going to send this form to a different department and when they go into the form we don't want the email address to change. I should have mentioned also that this is using Sharepoint as the datasource so maybe I need to create a column for the email address to save that data.

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    @alecnelson01 Didnt got you. You are using User().Email, so whoever logs in that person email will be taken. I am not sure on the context of form. But even if form is submitted, then the default property of combo box will still have the current user email address.

     

    Thanks,

    ANB

     

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 408

#3
timl Profile Picture

timl 339 Super User 2026 Season 1

Last 30 days Overall leaderboard