Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Suggested answer

Delete Email (V2) step gets error "ActionBranchingConditionNotSatisfied"

(0) ShareShare
ReportReport
Posted on by 4
Hello All,

I am new to Power Automate so I thought I would ask some experts to help.

I have an email with a  3 attachments (csv file and 2 imbedded pictures within the email which are treated as attachments by Power automate)

I successfully created steps to only send the correct attachment to Sharepoint (which does appear in Sharepoint)

I looked at the test flow run results and the step (Create File 1) that sends the attachment does indeed shows the status as successful.

When I add another step to delete the email if previous step is successful i get the following error message
 
ActionBranchingConditionNotSatisfied
The execution of template action 'Delete_email_(V2)' skipped: the branching condition for this action is not satisfied.
 
What could be the issue ?

here is some extra information

* BCP1 is a Variable that was created to give the filename going to sharepoint a name
* In the Delete email (V2) process
     here is the code
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx             
{
  "type": "OpenApiConnection",
  "inputs": {
    "parameters": {
      "messageId": "@triggerOutputs()?['body/id']"
    },
    "host": {
      "apiId": "/providers/Microsoft.PowerApps/apis/shared_office365",
      "connection": "shared_office365-1",
      "operationId": "DeleteEmail_V2"
    }
  },
  "runAfter": {
    "Create_file_1": [
      "Succeeded"
    ]
  }
}
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx             
Below is the flow diagram which may assist you

So if the condition (Attachment name = Customer_File then follow true path and send attachment to Sharepoint and Delete email.

I have a feeling my Message Id is wrong
Categories:
  • Tomac Profile Picture
    799 Moderator on at
    Delete Email (V2) step gets error "ActionBranchingConditionNotSatisfied"
    Hi @FW-14110328-0, it looks like you're encountering two issues here:
     
    1. Your Condition action is always evaluating to FALSE, so the If Yes actions never execute. Please post screenshots of the following actions expanded so we can see what they're trying to do:
    • Apply To Each
    • Set Variable 1
    • Condition
    2. The Delete Email (V2) action is failing because it can't find the message ID from the trigger. This means that your trigger and your Delete Item actions are looking at different mailboxes or different folders within those mailboxes.
  • Suggested answer
    Srini007 Profile Picture
    3,183 Super User 2025 Season 2 on at
    Delete Email (V2) step gets error "ActionBranchingConditionNotSatisfied"
     
    Can you make sure that the Current Mail boxes are the same you are trying? Also, try Get Mail action before the Delete Mail action and check, could you expand the screenshot and show the mail box, if this is not having any sensitive information
     

    (If this answers your question you can mark as Answered and give it a Like)

    Regards,
    Srini
  • FW-14110328-0 Profile Picture
    4 on at
    Delete Email (V2) step gets error "ActionBranchingConditionNotSatisfied"
    Now the Delete email is out of the "Apply to each " I get the error message


    NotFound
     
    I am using this in the message ID section
  • Srini007 Profile Picture
    3,183 Super User 2025 Season 2 on at
    Delete Email (V2) step gets error "ActionBranchingConditionNotSatisfied"
    Hi,
     
    Thanks for providing the screenshot, can you please tell me what error you are facing now as you moved the delete action out of the Apply to each?
     
    Regards,
    Srini
  • FW-14110328-0 Profile Picture
    4 on at
    Delete Email (V2) step gets error "ActionBranchingConditionNotSatisfied"
    Hello Srini

    Is this what you mean ?


    This is the full Flow below
     * 1 When a new mail comes into the Shared Mailbox
     * 2 Check each attachment
     * If attachment name = Customer_File then send attachment to Sharepoint Drive and Delete email

      - In testing



  • Suggested answer
    Srini007 Profile Picture
    3,183 Super User 2025 Season 2 on at
    Delete Email (V2) step gets error "ActionBranchingConditionNotSatisfied"
     
    May I know what is your trigger? As you are passing the ID from the trigger outputs are you sure it is the exact ID to verify further you can keep a compose before the delete mail action and check the value is not getting null.
     
    Also, it's better you share the outputs of the actions also show what you are passing as inputs to action. This will better understand your issue
     
    Regards,
    Srini

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2