Exporting Items from Dynamics 365 Business Central
This task will export items from Dynamics 365 Business Central to Dynamics 365 Business Central Item XML format.
Settings
Dynamics 365 Business Central Connection
Required
The connection to Dynamics 365 Business Central to use. See the Connecting to Dynamics 365 Business Central article if you require more information on how to create/manage connections.
Export Default Dimensions
Required
Set to true to include detailed default dimension information in the output from the task.
Export Item Categories
Required
Set to true to include detailed item category information in the output from the task.
Export Item Variants
Required
Set to true to include detailed item variant information in the output from the task.
Export Pictures
Required
Set to true to include detailed picture information in the output from the task, including a base-64 encoded copy of the image.
Export Settings
Required
- Date Modified - Only records modified after this date will be exported. The date will update automatically each time the task runs.
- Export Modified or All Records - Used to choose which records should be included in the export. Note that the 'Modified' setting will also export any new records.
Export Units Of Measure
Required
Set to true to include detailed unit of measure information in the output from the task.
Filter
Optional
Specify criteria to use to filter the records output by the task. The filter is specified using the OData format, e.g. id eq c998d7da-549e-ed11-988a-000d3a3885d3
. See Filtering for more information.
Output File
Required
The name of the file to write the exported records to. The data will be exported in XML format, a sample is provided below.
Page Size
Required
The maximum number of records to requested at a time. Increasing this will speed up the export but will use more memory and may result in timeout errors. The maximum is 20000.
Zynk Settings
Examples
Sample output file:
<?xml version="1.0" encoding="utf-8"?>
<Items xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Item>
<Id>2499d7da-549e-ed11-988a-000d3a3885d3</Id>
<ExternalId>1896-S</ExternalId>
<ODataETag>W/"JzIwOzEzNzc1NTQyNTYwMTE3ODMwMTE5MTswMDsn"</ODataETag>
<Number>1896-S</Number>
<DisplayName>ATHENS Desk</DisplayName>
<Type>Inventory</Type>
<ItemCategoryId>b58f3bdf-549e-ed11-988a-000d3a3885d3</ItemCategoryId>
<ItemCategoryCode>TABLE</ItemCategoryCode>
<Blocked>false</Blocked>
<Gtin />
<Inventory>4</Inventory>
<UnitPrice>649.4</UnitPrice>
<PriceIncludesTax>false</PriceIncludesTax>
<UnitCost>506.6</UnitCost>
<TaxGroupId>00000000-0000-0000-0000-000000000000</TaxGroupId>
<TaxGroupCode />
<BaseUnitOfMeasureId>2d8c3bdf-549e-ed11-988a-000d3a3885d3</BaseUnitOfMeasureId>
<BaseUnitOfMeasureCode>PCS</BaseUnitOfMeasureCode>
<LastModifiedDateTime>2023-01-27T15:14:17.27Z</LastModifiedDateTime>
<ItemCategory>
<Id>b58f3bdf-549e-ed11-988a-000d3a3885d3</Id>
<ODataETag>W/"JzIwOzE0NTM3Mjc4ODY4Nzk2OTAwODkzMTswMDsn"</ODataETag>
<Code>TABLE</Code>
<DisplayName>Assorted Tables</DisplayName>
<LastModifiedDateTime>2023-01-27T15:12:05.163Z</LastModifiedDateTime>
</ItemCategory>
<Picture>
<Id>2499d7da-549e-ed11-988a-000d3a3885d3</Id>
<ODataETag>W/"JzIwOzExNTY5NDg5Mjk3NzMzMzM1Nzg0MTswMDsn"</ODataETag>
<ParentType>Item</ParentType>
<Width>500</Width>
<Height>375</Height>
<ContentType>image/jpeg</ContentType>
<PictureContentEditLink>https://api.businesscentral.dynamics.com/v2.0/PRODUCTION/api/v2.0/companies(bba482b8-549e-ed11-988a-000d3a3885d3)/items(2499d7da-549e-ed11-988a-000d3a3885d3)/picture/pictureContent</PictureContentEditLink>
<PictureContentReadLink>https://api.businesscentral.dynamics.com/v2.0/PRODUCTION/api/v2.0/companies(bba482b8-549e-ed11-988a-000d3a3885d3)/items(2499d7da-549e-ed11-988a-000d3a3885d3)/picture/pictureContent</PictureContentReadLink>
<PictureContent><!-- base 64 encoded content here --></PictureContent>
</Picture>
<DefaultDimensions />
<ItemVariants />
</Item>
</Items>