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.
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?
Thank you in advance for your assistance,
Teresa
Solved! Go to Solution.
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
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.
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
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.
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
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
User | Count |
---|---|
256 | |
108 | |
97 | |
51 | |
39 |