cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SunnySchindler
Helper IV
Helper IV

When new eMail arrive, how to use its Body as part of Notification eMail ?

How to use its Body when new eMail arrive ?

I need to use arrival of new eMail body in Notification eMail.

 

Thanks Ahead!

221109 When new eMail arrive, how to use its Body as part of Notification eMail.jpg

 

Here is the flow I did 
    "inputs": {
        "host": {
            "connectionName": "shared_office365",
            "operationId": "OnNewEmailV3",
            "apiId": "/providers/Microsoft.PowerApps/apis/shared_office365"
        },
        "parameters": {
            "folderPath": "Inbox",
            "to": "My.Name@MyCompany.com",
            "cc": "sunnyinhk22@gmail.com",
            "from": "My.Name@MyCompany.com",
            "includeAttachments": false,
            "importance": "Any",
            "fetchOnlyWithAttachment": false
        },
        "authentication": "@parameters('$authentication')"
    },
    "metadata": {
        "operationMetadataId": "e9dddf82-6f8f-4194-81d6-a211053a4c9b"
    },
    "splitOn": "@triggerOutputs()?['body/value']"


{
    "inputs": {
        "host": {
            "connectionName": "shared_flowpush",
            "operationId": "SendEmailNotification",
            "apiId": "/providers/Microsoft.PowerApps/apis/shared_flowpush"
        },
        "parameters": {
            "NotificationEmailDefinition/notificationSubject": "@{outputs('Get_Flow')?['body/properties/displayName']}🛫 Subject:  @{triggerOutputs()?['body/subject']}",
            "NotificationEmailDefinition/notificationBody": "FROM: @{triggerOutputs()?['body/from']}\n@{triggerOutputs()?['body/receivedDateTime']}\n\neMail Body\n@{triggerOutputs()?['body/body']}\n\nFLOW @{outputs('Get_Flow')?['body/properties/lastModifiedTime']}\n"
        },
        "authentication": "@parameters('$authentication')"
    },
    "metadata": {
        "operationMetadataId": "727375f0-7679-47c1-ad8f-48be0b1cf5b3"
    }
}
2 REPLIES 2
SudeepGhatakNZ
Resident Rockstar
Resident Rockstar

Works fine without an issue in my case. I just provided the Body from my trigger inside the Body of my Send email action.

 

SudeepGhatakNZ_0-1667971801003.png

 

 

If my suggestion helped you, please give it a Thumbs up and mark it as a Solution so that it can benefit others in the community.

Thanks for prompt response.

Would you also try notification eMail as shown in my screenshot?

 

Thanks !

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,352)