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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Bulk Forward Emails from Shared Mailbox

(0) ShareShare
ReportReport
Posted on by 35

Hello,

as a reminder, I have to bulk forwar or reply to already sent emails to the same recipient.

First, I created a Flow collecting the contacts and corresponding emails and used the ReplyToV3 activity from the outlook connector as below:

ReminderFromSharedMailbox.jpg

In the last step I get a Bad Request and a "The response is not in a JSON format." runtime error.

This happens with both the Reply and Forward activities and with a variation of values inserted.

Could somebody give me a clue to what the actual error here is?

2. 

Then I tried to use the Dataverse connector to create an email activity and simulate the forward / reply action from within dynamics.

Sadly, while fields for the correlatedactivityid and parentactivityid exist, the necessary (I think) fields for correlationmethod and inreplyto are missing:

{
    "inputs": {
        "host": {
            "connectionName""shared_commondataserviceforapps",
            "operationId""CreateRecord",
            "apiId""/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
        },
        "parameters": {
            "entityName""emails",
            "item/activitypointer_activity_parties": [
                {
                    "participationtypemask"2,
                    "partyid@odata.bind""@items('Auf_alle_anwenden')?['@odata.id']"
                },
                {
                    "participationtypemask"1,
                    "partyid@odata.bind""@outputs('Get_Queue')?['body/@odata.id']"
                }
            ],
            "item/description""@body('HTML_zu_Text')",
            "item/ownerid_email@odata.bind""teams(Team Guid)",
            "item/subject""@items('Auf_alle_anwenden_2')?['subject']",
            "item/regardingobjectid_contact_email@odata.bind""contacts(@{items('Auf_alle_anwenden')?['contactid']})",
            "item/torecipients""@items('Auf_alle_anwenden_2')?['torecipients']",
            "item/followemailuserpreference"true,
            "item/parentactivityid@odata.bind""emails(@{items('Auf_alle_anwenden_2')?['activityid']})",
            "item/CorrelatedActivityId_Email@odata.bind""emails(@{items('Auf_alle_anwenden_2')?['activityid']})"
        },
        "authentication": {
            "type""Raw",
            "value""@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
        }
    },
    "metadata": {
        "operationMetadataId""dc89cab2-d394-4d60-b275-5718aaa733db"
    }
}

An email is created but it is not referring the original mail.

How can I reference the original message as a reply or forwarded?

Any suggestions appreciated.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi andreasrgfischer,

    Your issue is more related to Power Automate. Please post it at here for further help:

    Microsoft Power Automate Community - Power Platform Community

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans