Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Send email with attachment from SPO - Ideas?

(0) ShareShare
ReportReport
Posted on by 6

2021-02-15_15-16-15.jpgHi, can anyone provide some guidance on how to send specific files (attachments) from SPO in the flow email? 

 

The specific file that needs to be attached is dictated by the selected options from the MS Form.   

 

MS Form --> Flow Trigger --> Get file content (SPO) --> Email with attachment. 

 

I have the overall flow working fine when I am not trying to attach a file to the email. 

I tested a flow to practice email user with SPO Attachment when new file is added to SPO (this was just a test to confirm I could email an attachment from SPO via flow email).

 

Do you have any suggestions on how to "get content from SPO" based on MS Forms response?

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: Send email with attachment from SPO - Ideas?

    Hi @efowler99 

    I think you are confused. I told you to initialize the variable with the value or you can also append to the array variable. Sorry for the confusion.

     

  • efowler99 Profile Picture
    6 on at
    Re: Send email with attachment from SPO - Ideas?

    Sudharsan - Thank you for the info..  I do not see Compose an array variable as an option?  

     

    Variable Options.jpg

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: Send email with attachment from SPO - Ideas?

    Hi @efowler99 

    Try to get the content of the file using Get attachment content for list or Get file content using path for library. Then you have to compose an array variable with the values in the below format. You can also add multiple values in the same format if you want to add multiple attachments.

    {
     "Name": <Filename>,
     "ContentBytes": <file content in binary>
    }

    Send the above variable to the email action. Please try it out and let me know.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow