cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tagustin2020
Impactful Individual
Impactful Individual

Send automated email to requestor with cc to a variable

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

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

View solution in original post

RandyHayes
Super User
Super User

@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.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

4 REPLIES 4
v-bofeng-msft
Community Support
Community Support

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

View solution in original post

RandyHayes
Super User
Super User

@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.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

@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

@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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,952)