web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How to query data from Dynamics 365 CRM, and send the result (csv file as attachment) in an email in a workflow

(0) ShareShare
ReportReport
Posted on by 95

Hi,

We need the query data from Dynamics 365 CRM, and send the result (csv file as attachment) in an email in a workflow. 

Could you please help?

Thanks a lot.

Frank

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Frank,

    You need use power automate to create a flow to achieve it, workflow can't do it.

    Flow:

    pastedimage1636700312106v1.png

    Details:

    (1)Trigger:

    pastedimage1636700748745v6.png

    pastedimage1636700791417v7.png

    (2)Add 'List rows' action and select the entity you want.

    pastedimage1636700568318v4.png

    (3)Add 'Create CSV table' action, Fill columns you want and get value from 'List rows'.

    pastedimage1636700479327v3.png

    (4)Add 'Send an email (V2)' action to fill information.

    pastedimage1636700675193v5.png

    Test Result:

    pastedimage1636700407305v2.png

  • Community Member Profile Picture
    on at

    Hi Partner,

    Can you click Yes under "Did this answer your question?" to close this thread if my answer is helpful.

     pastedimage1637227581421v1.png

    Thanks.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans