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 / Send automated email t...
Power Apps
Answered

Send automated email to requestor with cc to a variable

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have an automated email that is supposed to go to the Requestor when the status of their project changes. I was using varUser.Email, but that's no good as it only sends an email to the person who is currently logged in. I would like to keep it as the person triggering these emails is the one who changed the status and I would like them to be copied on the email. 

 

OnSuccessSS.png

When a user submits a new form request, I capture their email address. How do I adjust the formula above to reference the email in the data card in the To: line and the varUser.Email in the Cc: line?

ReqEmailSS.png

Thank you in advance for your assistance,

Teresa

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @tagustin2020 :

    Do you want to Cc the email to varUser.Email ?

    Please try:

    Office365Outlook.SendEmail(
     "To@xxxx.com", /*Note: "To" is a necessary parameter, so an object must be specified*/
     "Subject",
     "Body",
     {
     Cc:varUser.Email,
     Importance: "High"
     }
    )

    Best Regards,

    Bof

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @tagustin2020 

    Are you wanting to send the email To the Requestor and copy the current user, or the other way around?

    I will assume the first and then you can adjust as needed.

    So the formula would be (using the Cc provided by @v-bofeng-msft and omitting the bulk of the formula you have only for brevity and clarity of what to change):

    If(varRecord.'Proj.......,
    
     Office365Outlook.SendEmail(
     varRecord.'Requestor Email',
     "Tool Support .....
     <your message body here>,
     {
     Cc:varUser.Email,
     Importance: "High"
     }
     )
    )

     

    If the order was different, then just switch those two around.

     

    I hope this is helpful for you.

     

  • tagustin2020 Profile Picture
    on at

    @RandyHayes 

    @v-bofeng-msft 

     

    Hello, thank you both for your help! We are having stormy weather in Oregon at the moment and my internet is seizing up making it tough to work on the app. I will try this advice tomorrow and get back to you. Have a nice evening!

     

    Kind regards,

    Teresa

     

    Teresa

  • tagustin2020 Profile Picture
    on at

    @RandyHayes 

    @v-bofeng-msft 

     

    Hello, apologies for the delay. I couldn't get Power Apps to come up at all yesterday. I was able to update the formula today and it is working great. Thanks so much for your help! I will be saving this advice for future reference. Have a great day!

     

    Teresa

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard