Importing Vendors into Dynamics 365 Business Central
This task will create or update vendors in Dynamics 365 Business Central. The data must be supplied in the Dynamics 365 Business Central Vendor XML format.
Vendors are matched based on the following XML elements, in the order listed: Id
, ExternalId
, Number
. If the 'Match Vendors On' setting is enabled, the fields specified here will also be used for matching. If a match is found, the existing vendor will be updated. If not, a new vendor will be created.
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.
Fail File
Required
The name of a file for records that fail to import to be output to. The data will be in the same XML format as the input file.
Input File
Required
The file containing the records that you want to import into Dynamics 365 Business Central. The records must be supplied in the XML format shown below.
Success File
Required
The name of a file for successfully imported records to be output to. The data will be in the same XML format as the input file.
Match Vendors On
Optional
The list of fields to use to try and find an existing vendor in Dynamics 365 Business Central which matches with the vendor in the input file. These settings will only be used if the vendor Id and Number are not provided in the input file, and the external ID is not found in the truth table. When multiple fields are selected, only vendors where the value of all the fields match will be considered a match. The following fields are supported:
- DisplayName
- PhoneNumber
Prevent Reprocessing
Required
Set this to 'True' to check the value specified in the ExternalId
element in the XML against the truth table to see if it has already been processed, and if so skip the record.
Zynk Settings
Examples
Sample input file, for full documentation see Dynamics 365 Business Central Vendor XML:
<?xml version="1.0" encoding="utf-8"?>
<Vendors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Vendor>
<Id>4d4971d5-39bc-ed11-9a88-002248002e07</Id>
<ExternalId>8888</ExternalId>
<Number>V00010</Number>
<DisplayName>Zynk Software</DisplayName>
<AddressLine1>6 Charlotte Square</AddressLine1>
<AddressLine2 />
<City>Newcastle Upon Type</City>
<State>Tyne & Wear</State>
<Country>GB</Country>
<PostalCode>NE1 4XF</PostalCode>
<PhoneNumber />
<Email>[email protected]</Email>
<Website>www.zynk.com</Website>
<TaxRegistrationNumber>GB123456789</TaxRegistrationNumber>
<CurrencyId>00000000-0000-0000-0000-000000000000</CurrencyId>
<CurrencyCode>GBP</CurrencyCode>
<Irs1099Code />
<PaymentTermsId>0298d7da-549e-ed11-988a-000d3a3885d3</PaymentTermsId>
<PaymentTerm>
<Code>CM</Code>
</PaymentTerm>
<PaymentMethodId>c58d3bdf-549e-ed11-988a-000d3a3885d3</PaymentMethodId>
<PaymentMethod>
<Id>a314deb9-611d-ea11-bb2d-000d3a4884fc</Id>
<Code>BANK</Code>
</PaymentMethod>
<TaxLiable>true</TaxLiable>
<Blocked> </Blocked>
</Vendor>
</Vendors>