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 / Send Email V2 how to a...
Power Automate
Unanswered

Send Email V2 how to add attachment using file path

(0) ShareShare
ReportReport
Posted on by 54

Hi,

 

I'm having trouble adding attachment using file path to send an email (v2). Please help.

 

mjbaylon_1-1713941376383.png

 

mjbaylon_2-1713941461302.png

 

 

mjbaylon_0-1713941343695.png

 

Variable content:

mjbaylon_4-1713941654148.png

 

 

Error:

mjbaylon_3-1713941588599.png

 

I have the same question (0)
  • Verified answer
    VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @mjbaylon ,

     

    You have enabled Power Fx option while creating a new flow.

    Please Disable the Power Fx option and try Creating same flow it will work.

    VishnuReddy1997_0-1713941885013.png

     

     

    (Note:- if you got your solution you can mark as solution and gives kudos)

     

    Thanks & Regards

    Vishnu Reddy

  • eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at

    Yeah it seems like its problem with Power Fx Convert file to binary data -action or the usage of its output value.
    Even if you try to just Set variable with the BinaryData output it gives the same error:

    eetuRobo_1-1713945391098.png

     

    So preview version bug for Power Fx most likely.

    I did find a way to do a simple work around with Run .NET script -action for anyone interested:

    eetuRobo_2-1713945447078.png

    And in the Edit script parameters window:

    eetuRobo_3-1713945472619.png

    So "filename" is the variable that has the file path. The direction is In since it takes that value in and the type is String.
    "bytes" is List type variable and direction is Out. And the Output variable I named to BinaryOut

    BinaryOut returns PAD a long list like so:

    eetuRobo_6-1713945677410.png

     


    Send an Email (V2) Attachment:

    eetuRobo_5-1713945585989.png

    So just use the output from the Run .Net Script action

    The whole flow:

    eetuRobo_7-1713946346626.png

     

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard