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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Problem in Using a Tri...
Power Automate
Answered

Problem in Using a Trigger: When a new email arrives (V3)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I created a flow to copy attachments from email to a one drive folder. I started with using the "When a new email arrives (V3)" of the Office 365 Outlook type. It is able to create a file that is corrupted and of size 4 bytes.

There is also a template that does exactly the same thing but is using (V2) of the same connector type. It works perfectly fine with the same steps that I applied before. Is this supposed to be a bug in the (V3)? How to make a flow using V2 since V3 is not working?

How I know template is using V2:

Peek code of V3 from my custom flow:

{

    "inputs": {

        "host": {

            "connectionName": "shared_office365",

            "operationId": "OnNewEmailV3",

            "apiId": "/providers/Microsoft.PowerApps/apis/shared_office365"

        },

        "parameters": {

            "folderPath": "Inbox",

            "includeAttachments": false,

            "subjectFilter": "POCOM File Daily Dump",

            "importance": "Any",

            "fetchOnlyWithAttachment": true

        },

        "authentication": "@parameters('$authentication')"

    },

    "splitOn": "@triggerOutputs()?['body/value']"

}

Peek code of V2 from template flow:

{

    "inputs": {

        "host": {

            "connection": {

                "name": "@parameters('$connections')['shared_office365']['connectionId']"

            }

        },

        "method": "get",

        "path": "/v2/Mail/OnNewEmail",

        "queries": {

            "folderPath": "Inbox",

            "importance": "Any",

            "fetchOnlyWithAttachment": true,

            "includeAttachments": true

        },

        "authentication": "@parameters('$authentication')"

    },

    "recurrence": {

        "interval": 3,

        "frequency": "Minute"

    },

    "metadata": {

        "flowSystemMetadata": {

            "swaggerOperationId": "OnNewEmailV2"

        }

    },

    "splitOn": "@triggerBody()?['value']"

}

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,127 Most Valuable Professional on at

    If you ook at your Peek Code you will notice the other difference is that IncludeAttachments is set to true in the V2 version and set to false in the V3 version.  I suspect that is your problem, not the difference between v2 and V3

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Pstork1 Thanks for your response. This was the issue, I feel a bit stupid now.

    One more catch for me: When you make any change in the trigger, do not test the flow using automatic trigger from previous runs. In my case, it was still using the old format trigger when using attachments was false.

  • Pstork1 Profile Picture
    69,127 Most Valuable Professional on at

    Don't feel too stupid, I've done it myself many times.  Its very common that someone else will see something obvious that you missed because your eye is expecting something.  But your comment about testing is a good point.  Don't ever use previous runs for testing if you've added a new connector or changed the existing connector (the trigger).  It will often give a false test.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard