How to export the results on a query that runs in Logic App to a csv file

DS2022 20 Reputation points
2023-12-22T22:01:23.2+00:00

I'm trying to create a logic app that runs a query and sends the results via email as a CSV attachment.

Below is what the logic app looks like now.

User's image

I am able to get the email with the csv file however the contents of the file are not formatted correctly.

What I'm getting in the CVS file is shown below

User's image

What I want to get is shown below.

User's image

Can someone point me in the right direction on how to accomplish this?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. DS2022 20 Reputation points
    2023-12-22T23:22:51.1533333+00:00

    Never mind, I figured it out. the Below will produce the desired results.

    User's image

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.