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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating a new Email A...
Power Automate
Unanswered

Creating a new Email Attachment in Dynamics 365

(1) ShareShare
ReportReport
Posted on by 24

I am having a hard time creating a new attachment in Dynamics 365 for Emails.   When a gmail email arrives, I am creating a new Email Activity type record in Dyanmics 365.  That is working perfect.  When I create the attachment from the email, the settings dont look right.  There is nowhere to add the contents of the attachment, the file name, etc.  Please assist in telling me how to fill out that Create a new Dynamics 365 Attachment to my email?

 

 

Capture.PNG

 

Categories:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    on at
    Re: Creating a new Email Attachment in Dynamics 365

    Hi @ LauraWare,

     

    I have made a test on my side, there are two same entities name “Attachments” in the “Create a new record” action, and the screenshot you have share is the second one, if we choose the first one, we could fill the attachment content in the “”Body” field, and fill the attachment name in the “File Name” field.

    1.png

    But when submit the flow, the flow would run fail with error “The 'Create' method does not support entities of type 'attachment'.

     

    Create a new record in Dynamic 365 don’t support entities of type 'attachment' in Microsoft Flow currently.

    If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Regards,
    Alice Zhang

  • LauraWare Profile Picture
    24 on at
    Re: Creating a new Email Attachment in Dynamics 365

    Correct, I get the same error.

     

    I will submit it to the Flow Ideas Forum.

     

    Thank you,
    Laura

  • asdfaf4 Profile Picture
    on at
    Re: Creating a new Email Attachment in Dynamics 365

    This type of issue makes me really upset, total lack of quality assurance from Microsoft.  Why claiming we can interact with Dynamics 365, but yet, a basic use cases such as adding an attachment to an email entity is not supported, but being exposed in Flow UI?

     

    Because, this obvious "gap",  I cannot roll out this new automated process until then via flow...  I have to explain to my customers that the intial plan and deadline cannot be met anymore....

     

    Frustrating...

  • SimonNie Profile Picture
    65 on at
    Re: Creating a new Email Attachment in Dynamics 365

    At least with Azure logic app I found a workaround by hacking the connector in the code view.

    You create a new record of type ActivityMimeAttachment.

    What you are missing there is body, filename and mimetype in the Logic App Connector. But those missing elements you can add using the Code View of the Logic App.

     

    Just add the following lines in the right place in your code view and you will get the missing fields for Dynamics available (see screenshots):

    "body": "",
    "filename": "",
    "mimetype": "",

     

    SimonNie_0-1572354927349.png

     

    SimonNie_2-1572355142451.png

     

     

    The remaining issue is, that the connector requires you to fill out the field "_attachmentid_value" in order to save your flow in design view. You can remove the value and successfully save in the code view (see screenshot). But after you remove the required value in the code view you are not able to save the graphical design view anymore. For that I helped myself by creating a Sub-Logic App only doing the attachment step, that i only save in code view. (Google nested Logic Apps for more info on how to call nested logic apps)

     

    **bleep**ty, but it works. Please Mircosoft, do something about that.

  • Linn Zaw Win Profile Picture
    2,996 on at
    Re: Creating a new Email Attachment in Dynamics 365

    This is now possible with a combination of the CDS connector and CDS (current environment) connector to create the Attachment (ActivityMimeAttachment) for the Email record.

     

    I've written a blog post about it.
    http://linnzawwin.blogspot.com/2020/05/send-email-from-dynamics-365cds-with.html

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard