Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Capture email address from gallery field and email that user via a button

Posted on by 121

Good evening,

 

I have an app that logs user records and if said user doesn't update their information after 30 days i want to be able to send that individual an email from powerapps.

 

I have a galley called GalleryCollect, within this gallery i have a button named MailSend, i am trying to capture the data held in a label called Label_EmailHold so that when the button is pressed on that specific line it will immediately send the email to the user.

 

Any help muchly appreciated

  • Verified answer
    Re: Capture email address from gallery field and email that user via a button

    Hi @Markswan20,

    Just set the OnSelect property of that button as:

    Office365Outlook.SendEmailV2(
     ThisItem.EmailHold,
     txt_Subject,
     txt_Body
    );

    Note that you should copy the formula you set for the Label_EmailHold, here I assume you set its Text property as ThisItem.EmailHold, so I refer to this formula directly.

  • Markswan20 Profile Picture
    Markswan20 121 on at
    Re: Capture email address from gallery field and email that user via a button

    Thanks Jeffrey,

     

    Using the Outlook Connector is my go to method but i'm unsure how to capture that information and use it in the connector.

  • JeffreyGonzalez Profile Picture
    JeffreyGonzalez 59 on at
    Re: Capture email address from gallery field and email that user via a button

    In the onSelect property of the gallery, I would set a variable to the text of the label that is holding the email address. You can then use this variable to send an email either through a power automate flow or with the office365 outlook connector. 

     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,297

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,890

Leaderboard