Export Data Packages using Data Management and Postman in D365FO
Steps to export data packages using data management framework and Rest API in D365FO
Step 1:
Create a new data export project using DMF. This project should include the data entities which are required for the export.
Step 2:
Export the package using postman, To do it, Mainly we need below 3 information.
- {{D365URL}}: Dynamics 365 URL
- DefinitionGroupId: DMF Project name
- packageName: Name of the export package
REST API URL: {{D365URL}}/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.ExportToPackage
Body:
Response from Postman: Upon execution success, Postman will provide a response indicating that the export has been initiated.
Step 3:Check export package status using the API {{D365URL}}/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetExecutionSummaryStatus
Response of the API call:
Step 4: Download the Package. To download the exported package, run the the below API and Body.
The response will provide a URL. Copy and Paste the URL to any browser to initiate the downloading process.
API URL: {{D365URL}}/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.GetExportedPackageUrl
Body:
Response: