web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send an Email V2: Erro...
Power Automate
Unanswered

Send an Email V2: Error Trap

(0) ShareShare
ReportReport
Posted on by 784 Moderator

When using the 'Send an Email V2' action, there doesn't appear to be way to setup error trapping. For example, a malformed email address. 

 

For comparison, when a 'Run a Child Flow' action is used, the Dynamic Content will show properties of that Action that are returned. The 'Send an Email V2' has no presence in the Dynamic Content. 

 

That said, when the 'Send an Email V2' is executed and fails, I've found that the "x-ms-apihub-cached-response" will be False. I want to be able to query this value to denote an email failure, but don't know how to refer to it, as 'Send an Email V2' does not become an Output.

 

What is the proper way to perform this error trap?

Categories:
I have the same question (0)
  • Tristan_D Profile Picture
    400 on at
    Re: Send an Email V2: Error Trap

    Hi @GDSI ,

    Quick question, are you trying to test any email or only mails from users located in your tenant (Entra ID) ?

    T

  • abc 123 Profile Picture
    784 Moderator on at
    Re: Send an Email V2: Error Trap

    Whether I enter my work email address or my gmail address in the To section, neither will cause it to have a presence in the Dynamic Content, such that I can test against it as an Output.

     

    Where are you headed with this question?   

  • Jordan-Ryan Profile Picture
    112 on at
    Re: Send an Email V2: Error Trap

    Have you thought about putting it inside a Scope then having a failed step after to check for any errors?

  • abc 123 Profile Picture
    784 Moderator on at
    Re: Send an Email V2: Error Trap

    Have you tried putting a malformed email address in the To and run it? It completes successfully, so, in theory, the Scope won't know that it's failed, when the Action reports back a Success when there NO way to trap for the failure. (I'm dizzy.)

     

    Today, I did find where the failed Action emailed the Developer user that the email failed to send, but I'd really LOVE to trap that an Automated Process Email failed on my terms, not the Flows.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard