cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

How to get attachments from CDS in Flow and attach to an email?

I have a flow that triggers when an new item is created in the CDS database. The entity allows for attachments and what I'm trying to do is get that attachment and send it in an email. I already know how to send an email with an attachment, I'm just wondering if there's any way to get the attachment from my CDS entity in Flow?

 

Is there any dynamic content here that will hold the attachments? Is it in Body? I don't see any dynamic content saying attachments.

GetAttachmentFlow.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: How to get attachments from CDS in Flow and attach to an email?

 

Hi @Mgodby ,

 

Please try to refer to the following methods.

  • Use List records to get the corresponding records in the Notes entity.
  • Determine whether the Regarding is equal to the record id contained in the specified entity. I am using the Account entity as an example.
  • Then you can get the file name and file content.

Image reference:

64.PNG65.PNG

 

Best Regards,

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

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: How to get attachments from CDS in Flow and attach to an email?

Hi @Mgodby 

 

Attachments are stored under Annotations (Notes Entity). Here you can access the filename and document content.



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Helper V
Helper V

Re: How to get attachments from CDS in Flow and attach to an email?

Can I access that in Flow?

Highlighted
Super User III
Super User III

Re: How to get attachments from CDS in Flow and attach to an email?

Yes you can. Try using CDS > Get Item > Select Entity > Notes



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Community Support
Community Support

Re: How to get attachments from CDS in Flow and attach to an email?

 

Hi @Mgodby ,

 

Please try to refer to the following methods.

  • Use List records to get the corresponding records in the Notes entity.
  • Determine whether the Regarding is equal to the record id contained in the specified entity. I am using the Account entity as an example.
  • Then you can get the file name and file content.

Image reference:

64.PNG65.PNG

 

Best Regards,

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

View solution in original post

Highlighted
New Member

Re: How to get attachments from CDS in Flow and attach to an email?

And how do I add the Composed-Item to a Mail outside the "Apply to each" Node?

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 (5,909)