{"id":1985,"date":"2024-10-09T11:31:38","date_gmt":"2024-10-09T10:31:38","guid":{"rendered":"https:\/\/france.magicsoftware.com\/blog\/?p=1985"},"modified":"2025-07-08T08:01:38","modified_gmt":"2025-07-08T07:01:38","slug":"d365fo-magic-xpi-how-to-use-dmf-importfrompackage-using-rest-api","status":"publish","type":"post","link":"https:\/\/france.magicsoftware.com\/blog\/magic-xpi\/d365fo-magic-xpi-how-to-use-dmf-importfrompackage-using-rest-api\/","title":{"rendered":"D365FO &#8211; Magic xpi: How to use DMF ImportFromPackage using REST API"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">5 import API has been provided by Microsoft to help customer to integrate third part solution or data migration.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DataManagementDefinitionGroups-<strong>ImportFromPackage<\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DataManagementDefinitionGroups-ImportFromPackageAsync<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DataManagementDefinitionGroups-ImportFromDMTPackage<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DataManagementTemplates-ImportTemplateFromPackage<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DataManagementTemplates-ImportTemplateFromPackageIgnoreMissingEntities<\/li>\n<\/ul>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Goal <\/strong>: We are going to focus , in this article, on the Execution of an <strong>ImportFromPackage<\/strong> in D365FO with DMF REST API and check the result<\/p>\n\n\n\n<p>1\/ To start with import you need to create a data project in D365<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"393\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import17-1024x393.png\" alt=\"\" class=\"wp-image-2041\" style=\"width:651px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import17-1024x393.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import17-300x115.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import17-768x295.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import17.png 1359w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>download package and grab manifest and Package header file to embed with data file to create new zip file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"879\" height=\"131\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import18.png\" alt=\"\" class=\"wp-image-2043\" style=\"width:859px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import18.png 879w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import18-300x45.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import18-768x114.png 768w\" sizes=\"auto, (max-width: 879px) 100vw, 879px\" \/><\/figure>\n\n\n\n<p>2\/ Check with Postman the complete sequence to execute (GetAzureWriteURL=&gt; Upload=&gt;ImportPackacge=&gt;GetStatus=&gt;GetErrors)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"120\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import3-1024x120.png\" alt=\"\" class=\"wp-image-1999\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import3-1024x120.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import3-300x35.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import3-768x90.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import3.png 1527w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>3\/ Define a REST Client Resource in the magic xpi project with informations below <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"578\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import4-1024x578.png\" alt=\"\" class=\"wp-image-2000\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import4-1024x578.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import4-300x169.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import4-768x434.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import4.png 1163w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Define 4 paths<\/p>\n\n\n\n<p><strong>\/DataManagementDefinitionGroups\/Microsoft.Dynamics.DataEntities.GetAzureWriteUrl<\/strong><\/p>\n\n\n\n<p><strong>\/DataManagementDefinitionGroups\/Microsoft.Dynamics.DataEntities.ImportFromPackage<\/strong><\/p>\n\n\n\n<p><strong>\/DataManagementDefinitionGroups\/Microsoft.Dynamics.DataEntities.GetExecutionErrors<\/strong><\/p>\n\n\n\n<p><strong>\/DataManagementDefinitionGroups\/Microsoft.Dynamics.DataEntities.GetExecutionSummaryStatus<\/strong><\/p>\n\n\n\n<p>For each endpoint, you have to define \u00ab\u00a0Authorization\u00a0\u00bb in the header<\/p>\n\n\n\n<p>4\/ The Magic xpi flow starts with the authentification process (Get Token)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"765\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import5.png\" alt=\"\" class=\"wp-image-2004\" style=\"width:538px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import5.png 962w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import5-300x239.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import5-768x611.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/figure>\n\n\n\n<p>To get the token, you can check Steps 2,3 and 4 in the article (<em><strong>D365FO &#8211; Magicxpi How to use DMF ExportToPackage Method using REST API<\/strong><\/em>)<\/p>\n\n\n\n<p>5\/ After retrieving the token, do a POST to Get the Azure URL, use the REST Client Connector<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"955\" height=\"763\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import6.png\" alt=\"\" class=\"wp-image-2007\" style=\"width:427px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import6.png 955w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import6-300x240.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import6-768x614.png 768w\" sizes=\"auto, (max-width: 955px) 100vw, 955px\" \/><\/figure>\n\n\n\n<p>Push the body in JSON format :<\/p>\n\n\n\n<p>&lsquo;{\u00ab\u00a0uniqueFileName\u00a0\u00bb:\u00a0\u00bb&lt;zip file name&gt;\u00a0\u00bb}&rsquo;<\/p>\n\n\n\n<p>6\/ Parse the JSON response to get the azure URL<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"200\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import7-1024x200.png\" alt=\"\" class=\"wp-image-2010\" style=\"width:973px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import7-1024x200.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import7-300x59.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import7-768x150.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import7.png 1197w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Retrieve the JSON value content in a blob variable then parse this JSON to get the BlobUrl<\/p>\n\n\n\n<p>Json response example :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"56\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import19-1024x56.png\" alt=\"\" class=\"wp-image-2046\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import19-1024x56.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import19-300x16.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import19-768x42.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import19-1536x84.png 1536w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import19.png 1807w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>7\/ Load a zip file with sample data that you want to push to D365FO, to a Blob variable<\/p>\n\n\n\n<p>(Zip generation can be done with magic xpi, using Datamapper and FileArchive component.<\/p>\n\n\n\n<p>Your zip file must contain <strong>PackageHeader.xml<\/strong>, <strong>Manifest.xml<\/strong> and your data file(s) (in our example, <strong>2 csv files<\/strong> for sales header and sales detail)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"458\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import8-1024x458.png\" alt=\"\" class=\"wp-image-2014\" style=\"width:862px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import8-1024x458.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import8-300x134.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import8-768x344.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import8.png 1267w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Update an environment variable with the Azure URL.<\/p>\n\n\n\n<p>8\/ upload the zip file using an HTTP component<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"596\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import9-1024x596.png\" alt=\"\" class=\"wp-image-2015\" style=\"width:624px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import9-1024x596.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import9-300x175.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import9-768x447.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import9.png 1227w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>use a PUT and set theDataBlob to the ZIPFile blob variable<\/p>\n\n\n\n<p>Set the header to : &lsquo;Content-Type:application\/zip,x-ms-version:2014-02-14,x-ms-blob-type:BlockBlob&rsquo;<\/p>\n\n\n\n<p>9\/ use a REST Client Connector to call the import<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"978\" height=\"719\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import10.png\" alt=\"\" class=\"wp-image-2020\" style=\"width:554px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import10.png 978w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import10-300x221.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import10-768x565.png 768w\" sizes=\"auto, (max-width: 978px) 100vw, 978px\" \/><\/figure>\n\n\n\n<p>Do a POST with content Type : application\/json and security : Yes<\/p>\n\n\n\n<p>The JSON body to push must be in the format :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"634\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import11.png\" alt=\"\" class=\"wp-image-2023\" style=\"width:494px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import11.png 799w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import11-300x238.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import11-768x609.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<p>example :<\/p>\n\n\n\n<p>&lsquo;{<br>\u00ab\u00a0packageUrl\u00a0\u00bb:\u00a0\u00bbhttps:\/\/ql1grpr93twb76.blob.core.windows.net\/dmf\/test.zip?sv=2014-02-14&amp;sr=b&amp;sig=qtnGxnvomjJ4fSq9ykaFI3D7%2FDOBMh8cqYrOOU6OJAI%3D&amp;st=2023-03-02T15%3A53%3A50Z&amp;se=2023-03-02T16%3A28%3A50Z&amp;sp=rw\u00a0\u00bb,<br>\u00ab\u00a0definitionGroupId\u00a0\u00bb:\u00a0\u00bbtest\u00a0\u00bb,<br>\u00ab\u00a0executionId\u00a0\u00bb:\u00a0\u00bb\u00a0\u00bb,<br>\u00ab\u00a0execute\u00a0\u00bb:false,<br>\u00ab\u00a0overwrite\u00a0\u00bb:false,<br>\u00ab\u00a0legalEntityId\u00a0\u00bb:\u00a0\u00bbMSE\u00a0\u00bb<br>}&rsquo;<\/p>\n\n\n\n<p>10 \/Parse the JSON response to get the execution ID <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"139\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import12-1024x139.png\" alt=\"\" class=\"wp-image-2026\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import12-1024x139.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import12-300x41.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import12-768x104.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import12.png 1181w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>11\/ Build a JSON Request to get the status of the import<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"481\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import13-1024x481.png\" alt=\"\" class=\"wp-image-2027\" style=\"width:666px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import13-1024x481.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import13-300x141.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import13-768x361.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import13.png 1353w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>{\u00ab\u00a0executionId\u00a0\u00bb:\u00a0\u00bb&lt;executionid&gt;\u00a0\u00bb}&rsquo;<\/p>\n\n\n\n<p>12\/ Use the REST CLIENT connector to get the Execution Summary Status<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"765\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import14.png\" alt=\"\" class=\"wp-image-2030\" style=\"width:589px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import14.png 950w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import14-300x242.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import14-768x618.png 768w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/figure>\n\n\n\n<p>Set the DataBlob to the Json Body used in the previous step.<\/p>\n\n\n\n<p>13\/ Parse the JSON response to get the status<\/p>\n\n\n\n<p>(*) Values for DMF Status are :<strong><em> Succeeded, PartiallySucceeded, Canceled, Executing, Failed, NotRun, Unknown<\/em><\/strong><\/p>\n\n\n\n<p>You can make a loop to ask for the status .<\/p>\n\n\n\n<p>You can stop the loop when Status is Succeeded, PartiallySucceeded, Canceled, or Failed<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"744\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import15-1024x744.png\" alt=\"\" class=\"wp-image-2035\" style=\"width:543px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import15-1024x744.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import15-300x218.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import15-768x558.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import15.png 1126w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>14\/ if the status is PartiallySucceeded or Failed, you can retrieve the errors by doing a POST on <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" src=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import16-1024x571.png\" alt=\"\" class=\"wp-image-2037\" style=\"width:738px;height:auto\" srcset=\"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import16-1024x571.png 1024w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import16-300x167.png 300w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import16-768x428.png 768w, https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2024\/10\/D365_DMF_Import16.png 1210w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>(*) Documentation can be found here<\/p>\n\n\n\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/dynamics365\/fin-ops-core\/dev-itpro\/data-entities\/data-management-api\">Data management package REST API &#8211; Finance &amp; Operations | Dynamics 365 | Microsoft Learn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>5 import API has been provided by Microsoft to help customer to integrate third part solution or data migration. Goal : We are going to focus , in this article, on the Execution of an ImportFromPackage in D365FO with DMF REST API and check the result 1\/ To start with import you need to create [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":100,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4,28,30],"tags":[12,24,14],"class_list":["post-1985","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magic-xpi","category-microsoft","category-d365fo","tag-d365","tag-data-management-framework","tag-magic-xpi"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/france.magicsoftware.com\/blog\/wp-content\/uploads\/2023\/11\/D365FO_Magicxpi-1.png","_links":{"self":[{"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/1985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/comments?post=1985"}],"version-history":[{"count":56,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/1985\/revisions"}],"predecessor-version":[{"id":3072,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/1985\/revisions\/3072"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/media\/100"}],"wp:attachment":[{"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/media?parent=1985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/categories?post=1985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/france.magicsoftware.com\/blog\/wp-json\/wp\/v2\/tags?post=1985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}