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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Object for Atta...
Power Automate
Answered

Custom Object for Attachments in "Send an email (V2)(Preview)"

(0) ShareShare
ReportReport
Posted on by 52

Hi Everyone,

 

I'm trying to send an email using Office 365 Outlook (Send an email (V2)) and am getting stuck adding an attachment to the email.  I wasn't able to find any references on how to create a List of Custom Objects to enter in the attachment field.   I'm just trying to send an email with an attachment saved on my desktop. Any help would be appreciated!

 

ErnieVelazquez_0-1691289982401.pngErnieVelazquez_1-1691290035445.png

 

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Use the Get files in folder action with appropriate filters to only get the one file you want to send. This will result in a list of file objects (even if it's just one file). It will be accepted as attachments.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Ernie-Velazquez Profile Picture
    52 on at

    Thanks Agnius!  Any ideas on what the filter would be if the file path is being generated based on a for each loop.  My filepath includes some variables from the loop (C:\Users\EV\Desktop\Certificates & EOIs\Merged\%CertHolder['Project Name']% - %InterestFileName% - ID%CertHolder['ID']%.pdf).  This particular folder has about 300 pdfs that i'm trying to email out.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Provide the exact name of the file in the file name filter and it will retrieve the one file.

     

  • Ernie-Velazquez Profile Picture
    52 on at

    Still get that same error.  It looks like that creates a 'list of files', but it requires a 'list of custom objects'. Closer than I was before though, lol.

     

    ErnieVelazquez_1-1691296309699.png

     

     

     

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Okay, I guess I misled you there a bit. Sorry about that.

    There's a special procedure to this.

    Agnius_0-1691299384246.png

     

    See this guide on how to do it: https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/office365outlook#sending-an-email-with-attachments-with-office-365-outlook-preview-in-desktop-flows

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Ernie-Velazquez Profile Picture
    52 on at

    Wow, that seems overly complex for an attachment!  I appreciate you sending the link, and thanks the guidance.  I'll keep that handy going forward. 

     

    It got it to work, though there's actually a typo in the documentation.  Looks like you need to enter the BinaryData variable within the quotation marks in the Contents attribute (they have it ""%BinaryData, and it should be "%BinaryData%".

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 463

#1
Valantis Profile Picture

Valantis 463

#3
11manish Profile Picture

11manish 264

Last 30 days Overall leaderboard