Importing Journals into Dynamics 365 Business Central
This task will create or update journals in Dynamics 365 Business Central. The data must be supplied in the Dynamics 365 Business Central Journal XML format.
Journals are matched based on the following XML elements, in the order listed: Id
, ExternalId
, Code
. If a match is found, the existing journal will be updated. If not, a new journal will be created.
When updating existing journals, the journal lines are matched based on the following XML elements, in the order listed: Id
, ExternalId
, LineNumber
. If a match is found, the existing journal line will be updated. If not, a new journal line 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.
Auto Post
Required
Set to true to have the task automatically post each record.
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 Journal XML:
<?xml version="1.0" encoding="utf-8"?>
<Journals xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Journal>
<Id>177029af-4468-ea11-a813-000d3a86f9a1</Id>
<ExternalId>4325631</ExternalId>
<Code>TESTBATCH</Code>
<DisplayName>Test Journal Batch</DisplayName>
<BalancingAccountId>fdb2e6b3-611d-ea11-bb2d-000d3a4884fc</BalancingAccountId>
<BalancingAccountNumber>10250</BalancingAccountNumber>
<JournalLines>
<JournalLine>
<LineNumber>10000</LineNumber>
<AccountType>G/L Account</AccountType>
<AccountId>f9b2e6b3-611d-ea11-bb2d-000d3a4884fc</AccountId>
<AccountNumber>10100</AccountNumber>
<Account>
<Id>f9b2e6b3-611d-ea11-bb2d-000d3a4884fc</Id>
<Number>10100</Number>
</Account>
<PostingDate>2020-03-18T00:00:00</PostingDate>
<DocumentNumber>1234</DocumentNumber>
<ExternalDocumentNumber></ExternalDocumentNumber>
<Amount>25</Amount>
<Description>Employee expense</Description>
<Comment>Fuel</Comment>
</JournalLine>
</JournalLines>
</Journal>
</Journals>