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 / MS FLOW Help (SQL Quer...
Power Automate
Unanswered

MS FLOW Help (SQL Query -> Insert rows on excel/Create CSV-> send that as excel attachment in email)

(0) ShareShare
ReportReport
Posted on by

Hi,

I am having trouble but very close to making it work!

Let me know if you have any ideas. Ive tried doing insert row for excel but doesnt show up in dynamic text in email attachment so I think the way to go is create CSV table. The error I get is Bad Request on 'Send an email'

Capture.PNG

 

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    I've got it to send a file. 

    But it's of type FILE...I need it to go into an excel file organized?with headers and data under.

  • v-yuazh-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Could you please share a full screenshot of your flow which could send a file?

    Could you please explain more details about the go into an excel file organized with headers and data under that you mentioned?

     

    If you would like to send an email with an excel file as the attachment,

    You could create the excel file in your onedrive for business to trigger the flow, and then the flow would send an email with the excel as attachment.

    You could create the flow as below:

    Capture.PNG

     

     

    You could also create an CSV table,and then send the email with attachment, you could create the flow as below:

    Capture.PNG

     

    Please share more details about your problem so we could provide a proper workaround for you or let me know if your problem could be solved.

     

    Best regards,

    Alice

  • Community Power Platform Member Profile Picture
    on at

    @v-yuazh-msft

     

    I don't want to get excel rows, I want to insert excel rows because the process should go like this: I am getting the rows from SQL and inserting them into a blank excel document table, then I want to email that excel document. 

     

    I created the headings already so that shouldnt be a problem.

     

  • Verified answer
    v-yuazh-msft Profile Picture
    on at

    Hi @mmkrapez,

     

     

    You could create the flow as below:

    Capture.PNG

     

     

     

     

    Please let me know if your problem could be solved.

     

    Best regards,

    Alice

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard