cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Create an email attachment in Dynamics 365 online CRM

I would like to create an email with attachment in CRM when an email is received on a shared mailbox.

I succeeded in creating the email itself, however I am not sure which parameters should go where in the 'Create new record (Preview) 2' for the attachment.

 

Can anyone upload a screenshot of what parameter goes into what field? (The red astrics fields).

Thanks

Attachment.PNG

7 REPLIES 7
Highlighted
Community Support
Community Support

Re: Create an email attachment in Dynamics 365 online CRM

Hi OmSh,

 

Please take this doc about “activitymimeattachment EntityType” for a reference:
https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/activitymimeattachment?view...

 

For what parameter should go into each field in Flow, I will help confirm it on my side.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Create an email attachment in Dynamics 365 online CRM

Hi @v-yamao-msft,

 

Thank you for your assistance.

This is still unclear to me.

For example, I do not understand what field I should map into activitymimeattachmentidunique.

Is it one of the shared inbox fields or the create email in CRM field? Which one?

How can I solve this?

 

Thank you, OmSh

Highlighted
Advocate I
Advocate I

Re: Create an email attachment in Dynamics 365 online CRM

I am having this same issue, was this ever resolved?  I have an email with attachments, created the email activity successfully, but cannot figure out what fields to update in the Attachment entity to have them come across.  Thanks

Highlighted
Frequent Visitor

Re: Create an email attachment in Dynamics 365 online CRM

@LauraWare,

 

Hi Laura,

If I remember correctly (this was a while back), you should choose the 'Create a new record' option without the 'Preview'.

Doing so, the options become clearer.

Highlighted
Advocate I
Advocate I

Re: Create an email attachment in Dynamics 365 online CRM

The options the same in preview and regular Attachments entity.

 

Can someone please assist in letting me know how this attachments entity needs to be filled out for Dynamics 365 Email Attachments?

 

Thank you!

Highlighted
Frequent Visitor

Re: Create an email attachment in Dynamics 365 online CRM

As to this date it seems this is not yet supported using Flow. I had created this functionality before using .NET, and essenially you would create the 'activtitymimeattachment' record that would include the 'body' attribute for the file content. The create request would then subsequently create the 'attachment' record based on the 'body' and then create the 'activtitymimeattachment' to add the attachment to the specified e-mail record.

 

But in Flow the 'activtitymimeattachment' 'adapter' does not include the 'body' input. Trying to create the 'attachment' record first using Flow (with a bit of fiddling because 'body' input does not accept the available body-payload from within the UI helper) will result in a [The 'Create' method does not support entities of type 'attachment'.] message, thus there seems to be no way to create this from Flow.

 

Alternatives would be to add the attachment to a non-activity record (this is possible using Flow) and create the e-mail with adding the attachment using (extended) workflow in CRM. And of course one could create a custom connector for Flow in order to create the e-mail attachment.

 

The Power platform seems to be updated daily (or at least regularly) so this could change any time now...

Highlighted
Kudo Collector
Kudo Collector

Re: Create an email attachment in Dynamics 365 online CRM

Hi @EdwinVC 

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

 

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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,421)