Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Data extract from multiple table sources into a single CSV file

(1) ShareShare
ReportReport
Posted on by 387
Hello,
I have a requirement to generate a CSV file which will contain data from multiple source tables and likely require some code logic. I will need to export project data (ProjTable) including the forecast records (ProjForecastEmpl and ProjForecastCost), then within the same CSV file but as separate lines, pull in project category (ProjCategory). 
 
TypeValueDescriptionRelated codeRelated value
ProjectPROJ001ExtractionCategory codeERF1
ProjectPROJ001SeedingCategory codeSRF1
Category codeERF1Mobilization  
Category codeSRF1Retention  
 
Ideally, I would like to be able to generate the extract using a custom data entity (if possible) so a Power Automate job could trigger, create, and handle transmission of the file. I would likely need to add logic in code to ensure I send only required category codes. 
 
I could create a batch job to generate/load the data into a temp (or regular) table, but the export of that data to a format that Power Automate would then be an unknown for me. Maybe a data entity would make the most sense here after the data is 'staged'. 
 
Without knowing all the minute details, which one sounds the best options, and what other options have I not considered?
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Data extract from multiple table sources into a single CSV file
    Hi,
    Yes, that's what I mean. You can refer to this official document: Build and consume data entities - Finance & Operations | Dynamics 365 | Microsoft LearnThis tutorial shows how to build an entity and how to consume some out-of-band (OOB) entities in an integration scenario.
    Best regards,
    Kevin
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Data extract from multiple table sources into a single CSV file
    Hi,
    Creating custom entities is a good choice. You can create a custom data entity that contains the fields you need to fetch from different tables, and write custom code according to your needs. You can then use Power Automate to trigger the export of this data entity, exporting it as a CSV file.
    Or you can use the export feature of the data management framework: Data management overview - Finance & Operations | Dynamics 365 | Microsoft LearnWith that feature you can very easily create csv data exports.
    Or you can export data directly from the FO using power automate. Refer to this thread, but I haven't tried this method: Export data from d365 F&O to csv file - Power Platform Community (microsoft.com).
    These methods require you to obtain the data you need through custom development.
    Best regards,
    Kevin

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,916 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,782 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans