Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Tracking emails from a shared inbox

Posted on by 50

Hi,

I'm creating a Power Automate flow to track emails from a shared inbox, create them as email records with the relevant attachments etc. (Our system isn't capable of being set up with the shared inbox as a queue).

I originally was going to use the Add a new row, create an email record with relevant lookup fields etc, however this was very complicated due to the number of lookups and conditions needed to ensure that the right GUID was found for the right table for the Activity Parties (i.e. the To, From, CC fields).

I instead found a pre-built action - DeliverPromoteEmail, which takes string inputs from the email in question, creates the relevant email activity record (with lookups as appropriate) and then I can link it to the correct incident with an "update row" action..

HOWEVER when creating an email record with attachments, the attachments are not being created - Dynamics warns that they are restricted filetypes (they aren't) or couldn't be created for another reason.

I am passing to the action an array of attachments which contains:

pastedimage1643627341574v1.png where content is the contentBytes from Outlook.

Am I missing something?

The DeliverIncomingEmail action seems like it should be an alternative, but it doesn't work in Flow.

  • icimasa Profile Picture
    icimasa 390 on at
    RE: Tracking emails from a shared inbox

    Perfect,

    thanks mate.. :)

    regards

    Martin

  • SBeal Profile Picture
    SBeal 50 on at
    RE: Tracking emails from a shared inbox

    In case it is helpful, this is the set up of the bound action:

    pastedimage1643707903329v1.png
    where the if statement is: pastedimage1643707923352v2.png

    the RowID is a PowerAutomate generated GUID

    and the attachments is an array with the selected fields as in my OP.

    There is then an Update Row action below this to set the regardingobjectid (using the generated guid to pick the right row to update).

  • icimasa Profile Picture
    icimasa 390 on at
    RE: Tracking emails from a shared inbox

    Hi,

    thnaks for sharing, I'm looking into the same issue myself so this is great start.. :)

    regards

    Martin

  • Nya Profile Picture
    Nya 29,056 on at
    RE: Tracking emails from a shared inbox

    Hi,

    It's great to hear that.

    Thanks for your sharing!

  • Suggested answer
    SBeal Profile Picture
    SBeal 50 on at
    RE: Tracking emails from a shared inbox

    I've resolved this - I needed to decode the contentBytes into binary and then change the column name to body_binary

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans