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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to use flow to sen...
Power Automate
Answered

How to use flow to send CRM email with attachments

(0) ShareShare
ReportReport
Posted on by 184

Hi

I have added the action to create an email record in CRM as below. This works fine. I would like to add attachments into this email which I retrieved from oneDrive business in my actions before this step.

 

Can I know how do I insert attachments in this email please?

 

IMG-1342.jpg

 

Thanks

vikram

Categories:
I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    90 on at

    Hi,

     

      this might help:

     

      https://www.itaintboring.com/dynamics-crm/power-automate-flow-creating-an-email-with-attachment-in-cds/

     

    Thanks,

    Alex

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @ashlega 

     

    Thanks for the blog post. 

     

    Please see below CDS has got attachment entity but I am not sure Attachment (Attachments) what I need to set to?

     

    I did tried attachments/(emailid) and activities(emailid) but no luck at all.

    image.png

     

    Thanks

  • ashlega Profile Picture
    90 on at

    Hi @abm 

     

      we need activitymimeattachment entity for email attachments, and that entity does not seem to be exposed through the CDS connector, so that's exactly why I had to use HTTP with Azure AD connector (to run Web API queries)

     

    Thanks,

    Alex

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @ashlega 

     

    Thanks for your quick reply. If you enter the entity name as dynamic "activitymimeattachment" it will expose all the properties eventually it will change to Attachments. Believe it is exposed but not sure all the exact syntax it is expecting. CDS has two attachments entity and I think one is realted to activitymimeattachment. 

     

     

    image.png

  • ashlega Profile Picture
    90 on at

    Hi @abm 

     

      I tried that attachment entity while working on the post, but could not get through the errors either. There is, also, "file attachment" entity exposed through the CDS connector, and, it seems, that second input box ("attachment") is supposed to have a reference there, so I tried to combine attachments and file attachments... to no avail. Does not mean there is no way - maybe I just could not find it.

     

    Thanks,

    Alex 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @ashlega 

     

    Thanks for your reply.

     

    Yes that file attachment is not related to Dynamics. Annotation (Notes) and ActivityMIMEAttachments are related to Dynamics.

     

    Yes looks like REST API is the workaround.

     

    Thanks

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @ashlega 

     

    Please see below when it errors it shows the entity name as activitymimeattachments. I selected from CDS entity name as Attachment. So definitely it is exposed and using the right entity. Wish there as more documentation around this.

     

    image.png

  • arjunmusuvathy Profile Picture
    184 on at

    Hi Alex @ashlega 

     

    Thanks for your reply in a short time and for the brilliant post. It worked for me and very helpful.

     

    You're a star.

     

     

    Thanks

    Vik

  • Linn Zaw Win Profile Picture
    2,996 on at

    Hi @ashlega  and @abm 

    Attachment lookup of ActivityMimeAttachment entity needs to be left empty (set null with old CDS connector) to let the system create internally.

     

    I've written a blog post about it on how to send Email with Attachments from Dynamics 365/CDS using CDS connectors only in flow.
    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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard