cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tagustin2020
Post Prodigy
Post Prodigy

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 III
Super User III

@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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

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 III
Super User III

@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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (46,587)