Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Data extract from mult...
Finance forum
Suggested answer

Data extract from multiple table sources into a single CSV file

editSubscribe (2) ShareShare
ReportReport
Posted on by 110
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
    Kevin Xia 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
  • CU29041349-0 Profile Picture
    CU29041349-0 110 on at
    Data extract from multiple table sources into a single CSV file
    Hi Kevin,
    I sounds like you're suggesting I can create a data entity which can bring all the data I need from the multiple table sources. I'm not sure I'm following. Would you be able to point me to some reading or material? 
  • Suggested answer
    Kevin Xia Profile Picture
    Kevin Xia 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

Helpful resources

Quick Links

Take the Community feedback survey!

Answer this brief 15-question survey about your Community experience…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,375 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,308 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans