Back

Business Central – How To Publish Service (Page) And Upload Data Using OData Via SmartConnect

Published: Dec 09, 2024
Post Author Written by Amit Chaudhari

Microsoft Dynamics Business Central’s OData feature offers exceptional flexibility for customizing data management. It allows developers to connect to web services, enabling integration with applications such as SmartConnect for seamless data uploads. To further explore these capabilities, please refer to the Business Central web service documentation and the terms and conditions, which specify also which pages/services can and cannot be published here.

If you’d rather watch a video explaining this, click here.

In this article, I will demonstrate:

  1. How to find the page number.
  2. How to publish the page within the web service.
  3. How to utilize it within SmartConnect.
  • Example: Uploading Dimension Codes Master (Setup) Into BC Via SmartConnect

How to find the page number for a specific window

refer to the official Microsoft documentation on the Dimension Values page and note down <ID> that is used for the page.

Page Inspect search

Click on “Inspect pages and data”.

Page Inspect

Navigate to the data page where you intend to upload the data >> Choose any one of the records.

For Example: here is an example of dimensions and values for one specific dimension, namely DEPARTMENT.

dimension search
dimension data

Navigate to the right-hand side and open the “Page Inspection” window. Here, you will find the page number where the data is stored.

537 page

How to publish the service (page) within the web service

Go To Search >> Web Services

webservice search

Click on New and select Object Type as “Page.”
Enter Object ID: 537 and press Tab.
Assign a name, such as DimensionValues, ensuring the name is unique in the entire list and has no space in it
Click on Publish, mark the entry, and move the cursor out of the lines to confirm the OData V4 URL.

webservice page

How to utilize service within SmartConnect

Click the Refresh button in the Services box

smartconnect refresh

Click on the ellipsis (…) – dots and Locate the DisplayName corresponding to the name assigned to the page >> select it

smartconnect selection

It should appear as shown below: >> Select Mark >> Choose Ignore Update Conflicts.

smartconnect view

For Example: Define a mapping

smartconnect mapping 2

Click the Refresh button in the Services box

com fresh button

Click on the Select Service List and Locate the DisplayName corresponding to the name assigned to the page >> Select it

com dot

It should appear as shown below >> Select Mark >> Choose Ignore Update Conflicts.

com view

For Example: Define a mapping

com mapping1
com mapping

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

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.