VOOZH about

URL: https://www.cdata.com/kb/tech/d365businesscentral-odbc-tableau-server.rst

⇱ How to publish and share Dynamics 365 Business Central Data dashboards with Tableau Server


How to publish and share Dynamics 365 Business Central Data dashboards with Tableau Server

πŸ‘ Jerod Johnson
Jerod Johnson
Director, Technology Evangelism
The CData ODBC driver for Dynamics 365 Business Central enables you integrate Dynamics 365 Business Central data into Tableau dashboards.

Integrate connectivity to Dynamics 365 Business Central data into your enterprise reporting capabilities. The CData ODBC Driver for Dynamics 365 Business Central enables you to access live Dynamics 365 Business Central data in business intelligence tools like Tableau Server. Connectivity to Dynamics 365 Business Central APIs enables you to monitor changes to your data in real time. Other members of your organization can access your dashboards from a Web browser and get updates from their mobile phone.

This article explains how to configure a DSN on the client and server machines, publish a data source for Dynamics 365 Business Central to Tableau Server, and publish an entire Workbook to Tableau Server (including the data source). If you publish a data source, you will be able to create new, refreshable workbooks in Tableau Server.

Connect to Dynamics 365 Business Central as an ODBC Data Source

To create a data source or workbook in Tableau Desktop and publish the data source or workbook to Tableau server, you will need to configure a DSN on each machine (Desktop and Server), specifying connection properties and creating DSNs using the same name on each machine. Information for connecting to Dynamics 365 Business Central follows, along with different instructions for configuring a DSN in Windows and Linux environments.

To authenticate to Dynamics 365 Business Central, you must select an AuthScheme and provide the required properties (OAuth by default).

All Methods

Specify the . If you have multiple companies in your organization, you must also specify the to indicate which company you would like to connect to. does not need to be specified if you have only one company.

Access Key

To authenticate with an Access Key, set AuthScheme to "AccessKey" and provide the and properties.

To obtain the and values, navigate to the Users page in Dynamics 365 Business Central and then click on Edit. The User Name and Web Service Access Key values are what you will enter as the and connection string properties. Note that the User Name is not your email address. It is a shortened user name.

If you wish to authenticate through other methods, refer to the Help documentation.

When you configure the DSN, you may also want to set the Max Rows connection property. This will limit the number of rows returned, which is especially helpful for improving performance when designing reports and visualizations.

Windows

If you are installing the CData ODBC Driver for Dynamics 365 Business Central on Windows, DSN configuration is the last step of the driver installation. If you already have the driver installed, or you wish to configure new DSNs, you can use the Microsoft ODBC Data Source Administrator.

Linux

If you are installing the CData ODBC Driver for Dynamics 365 Business Central in a Linux environment, the driver installation predefines a system DSN. You can modify the DSN by editing the system data sources file (/etc/odbc.ini) and defining the required connection properties.

/etc/odbc.ini

[CData D365BusinessCentral Source]
Driver = CData ODBC Driver for Dynamics 365 Business Central
Description = My Description
OrganizationUrl = https://myaccount.financials.dynamics.com/
InitiateOAuth = GETANDREFRESH

For specific information on using these configuration files, please refer to the help documentation (installed and found online).

Publish the Dynamics 365 Business Central Data Source to Tableau Server

With the connections to Dynamics 365 Business Central data configured, you are ready to publish a Dynamics 365 Business Central data source on Tableau, ready to be leveraged by users in your organization to create workbooks based on Dynamics 365 Business Central data.

Create and Publish a Data Source

  1. In the Connect pane, click More -> Other Databases (ODBC). Select CData D365BusinessCentral Sys, the system DSN.

    The driver installation automatically creates matching user and system DSNs: The system DSN is needed to connect from Tableau Server.

    πŸ‘ The connection to the DSN. (Salesforce is shown.)
  2. In the Database menu, select CData.
  3. In the Table box, enter a table name or click New Custom SQL to enter an SQL query.
  4. Drag the table onto the join area. πŸ‘ A connection to a single table. (Salesforce is shown.)
  5. From the Server menu, click Publish Data Source -> (YOUR DATA SOURCE). πŸ‘ Image
  6. Enter the URL to the server. For most instances, you will authenticate with the Tableau Server username and password. Other authentication scenarios can be found below:
    • If Tableau is configured to use Kerberos and your computer has valid Active Directory credentials, Tableau connects to the server.
    • If Tableau is configured to use SAML, a login prompt for your external identity provider is displayed.
    • If Tableau is configured to use Active Directory, enter your Windows username and password.
  7. In the resulting dialog, set the Project, Data Source, and other properties. If you want to schedule refreshes, select Embedded Password in the Authentication menu. Click Publish.

You and other users in your organization can now create and share workbooks based on the published data source.

πŸ‘ Connectivity to your data source from the Web authoring environment in Tableau Server. (Salesforce is shown.)

Refresh Workbooks

With a system DSN configured on the client (Tableau Desktop) machine and server (Tableau Server) machine, you can refresh workbooks connected to the Dynamics 365 Business Central data source. From the Web interface for Tableau Sever, click Data -> (YOUR DATA SOURCE) -> Refresh.

πŸ‘ Refresh the data extract on demand from Tableau Desktop. (Salesforce is shown.)

Publish a Completed Workbook with Dynamics 365 Business Central Data to Tableau Server

If you have a specific Workbook that you wish to share with your organization, you can create the Workbook on Tableau Desktop and publish the Workbook directly to Tableau Server.

  1. To connect to Dynamics 365 Business Central and select data, follow steps 1-5 above. πŸ‘ A connection to a single table. (Salesforce is shown.)
  2. Click Server -> Sign in and configure the connection to the server. For most instances, you will authenticate with the Tableau Server username and password. Other authentication scenarios can be found below:
    • If Tableau is configured to use Kerberos and your computer has valid Active Directory credentials, Tableau connects to the server.
    • If Tableau is configured to use SAML, a login prompt for your external identity provider is displayed.
    • If Tableau is configured to use Active Directory, enter your Windows username and password.
  3. With the data selected, select dimensions and measures to visualize and select a type of chart or graph to build your visualization(s). πŸ‘ Image
  4. Once the Workbook is complete, click Server -> Publish Workbook to publish the Workbook to Tableau Server. πŸ‘ Image
  5. In the resulting dialog, set the Project, Name, Description and other properties. If you want to schedule refreshes, click Edit under Data Sources and change the Authentication option to Embedded Password. Click Publish. πŸ‘ Image

You and other users in your organization can now review the published workbook from Tableau Server.

πŸ‘ Connectivity to your published Workbook from the Web authoring environment in Tableau Server. (Salesforce is shown.)

Ready to get started?

Download a free trial of the Dynamics 365 Business Central ODBC Driver to get started:

 Download Now

Learn more:

πŸ‘ Dynamics 365 Business Central (NAV) Icon
Dynamics 365 Business Central ODBC Driver

The Dynamics 365 Business Central ODBC Driver is a powerful tool that allows you to connect with live Dynamics 365 Business Central data, directly from any applications that support ODBC connectivity.

Access Dynamics 365 Business Central like you would a database - read, write, and update Items, Sales Orders, Purchase Orders, etc. through a standard ODBC Driver interface.