cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Mgodby
Level: Powered On

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
Community Support Team
Community Support Team

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

4 REPLIES 4
Super User
Super User

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!



Mgodby
Level: Powered On

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

Can I access that in Flow?

Super User
Super User

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!



Community Support Team
Community Support Team

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,260)