In this article, I’ll walk you through how to import Business Central journal lines, along with dimension codes, using SmartConnect and the eOne Integration APIs.
Endpoint Reference: eOne Integration API >> Finance >> Journals >> Journal Lines
Important Update: Microsoft is retiring OData page endpoints. Therefore, we recommend using eOne Integration APIs to import data through API routes: Moving SmartConnect from OData Pages to the eOne Integration APIs.
The first thing to verify is that the eOne/core/v1.0 API route is enabled in your Business Central Connector.


For this article, we’ll use an Excel file containing all the required fields as the data source.
After creating a new Excel File data source, create a new map and preview the source data to confirm it loaded correctly.
Next, we’ll group the data by Batch Name and Template, using both fields as the Key Fields. This ensures that all journal lines belonging to the same batch and template are grouped together and imported into a single journal batch.


For the destination, select Dynamics 365 Business Central OData Api as the Destination Type.


After selecting your Business Central instance, choose the eOne/core/v1.0 API route.
Next, specify the endpoint (destination) where you want to import the data. Click the Add Service button and select journals from the lookup list.
Selecting journals adds the journal header, but we also need to include the journal lines.
To do this, select the journals node and click the + button to add a child node. From the lookup, select journalLines.
Once added, your screen should look similar to the screenshot above.
1. journals (Header)
When you expand the journals node, you’ll notice that only a few fields are available for mapping. That’s fine here, because our integration only needs the essential journal header information.
Endpoint Reference: eOne Integration API >> Finance >> Journals



We will map the following fields:
- code → Batch Name
- templateDisplayName → Journal Template Name
Since we want to create only one journal header record for each batch and group all related journal lines under that header, enable the Group Data checkbox.
Under Group On, select both Batch Name and Journal Template. These fields should match the Key Fields selected for the map.
We will also enable Update Existing so that SmartConnect updates existing journal headers (using a PATCH request) instead of trying to create them again.
Important Note: Both fields must be included in the Group On list. SmartConnect uses the selected Group On fields to determine whether a record already exists in Business Central. Therefore, you must select the fields that uniquely identify a journal batch in Business Central. In our example, the combination of Batch Name and Journal Template identifies the unique journal batch.
2. journalLines (Detail)
When you expand the journalLines node, you’ll find the fields you can map from your source columns, such as accountNumber, accountType, amount, description, and dimensionCode1 through dimensionCode8.
Optional fields such as documentNumber, currencyCode, and lineNumber can also be mapped if needed.
Endpoint Reference: eOne Integration API >> Finance >> Journals >> Journal Lines


About Parent Source Column: JOURNALS_ID
An interesting part of this integration is how we link the journal batch header to its corresponding journal lines.
Instead of performing an additional OData API lookup to retrieve the journal ID, we can use the Parent Source Column feature to get the ID directly from the parent mapping (journals).
To do this, click the (…) button next to the journals node, find the id field returned by the API call, and click (+) (Add parent field). This makes the journal ID available to the child mapping.
Now, when you expand the journalLines node, you’ll notice a new field named JOURNALS_ID, with the type Parent Source Column.
This field contains the GUID of the journal header created or retrieved by the parent mapping. Map JOURNALS_ID to the journalId field in the journalLines node.
This ensures that each journal line is correctly linked to its corresponding journal header without requiring an additional API lookup.


Have a question? Please reach out to us at support@eonesolutions.com.