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

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

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: MS FLOW Help (SQL Query -> Insert rows on excel/Create CSV-> send that as excel attachment

Hi @mmkrapez,

 

 

You could create the flow as below:

Capture.PNG

 

 

 

 

Please let me know if your problem could be solved.

 

Best regards,

Alice

View solution in original post

4 REPLIES 4
mmkrapez
Level: Powered On

Re: MS FLOW Help (SQL Query -> Insert rows on excel/Create CSV-> send that as excel attachment

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.

Community Support Team
Community Support Team

Re: MS FLOW Help (SQL Query -> Insert rows on excel/Create CSV-> send that as excel attachment

Hi @mmkrapez,

 

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

mmkrapez
Level: Powered On

Re: MS FLOW Help (SQL Query -> Insert rows on excel/Create CSV-> send that as excel attachment

@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.

 

Community Support Team
Community Support Team

Re: MS FLOW Help (SQL Query -> Insert rows on excel/Create CSV-> send that as excel attachment

Hi @mmkrapez,

 

 

You could create the flow as below:

Capture.PNG

 

 

 

 

Please let me know if your problem could be solved.

 

Best regards,

Alice

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,901)