microsoft / Dynamics-AX-Integration

Dynamics AX Integration samples and demos.
286 stars 356 forks source link

Data Package generation #36

Open Hesel opened 6 years ago

Hesel commented 6 years ago

How do you generate a Data Package for import? Is there a guide or tool for this?

In the FileBasedIntegrationSamples/ConsoleAppSamples/DataPackageHandler/SampleData/ folder there is a sample DataPackage. Is there a way to generate something similar outside D365FO?

JeroenLeeflang commented 6 years ago

Create an import job in D365FO.

In the import job, you can download a zip that you can use as a template. Replace the files in the zip and upload this zip as package.

ccampora commented 6 years ago

@JeroenLeeflang I think is and export project, not import. However I want to extend the question, how can you generate that .zip file on the fly? I mean, I have a process that creates the data file and leave it in a Input folder, how can a process that file? in what point I can add the metadata and zip it? Any workaround? Ty.

srpraveenkumar commented 6 years ago

There are .NET libraries available that can be used to zip files. This could be implemented in the middleware if needed. The key is to trigger this process when we have all the requires files needed to zip the file when your package has more than 1 data entity. This would be dictated by how you orchestrate data ingestion.