Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →Model Dynamics 365 Business Central Data Using Azure Analysis Services
Leverage CData Connect Cloud to establish a connection between Azure Analysis Services and Dynamics 365 Business Central, enabling the direct import of real-time Dynamics 365 Business Central data.
Microsoft Azure Analysis Services (AAS) is a fully-managed platform-as-a-service (PaaS) offering that delivers enterprise-grade data models in the cloud. When combined with CData Connect Cloud, AAS facilitates immediate cloud-to-cloud access to Dynamics 365 Business Central data for applications. This article outlines the process of connecting to Dynamics 365 Business Central via Connect Cloud and importing Dynamics 365 Business Central data into Visual Studio using an AAS extension.
CData Connect Cloud offers a seamless cloud-to-cloud interface tailored for Dynamics 365 Business Central, enabling you to create live models of Dynamics 365 Business Central data in Azure Analysis Services without the need to replicate data to a natively supported database. While constructing high-quality semantic data models for business reports and client applications, Azure Analysis Services formulates SQL queries to retrieve data. CData Connect Cloud is equipped with optimized data processing capabilities right from the start, directing all supported SQL operations, including filters and JOINs, directly to Dynamics 365 Business Central. This leverages server-side processing for swift retrieval of the requested Dynamics 365 Business Central data.
Configure Dynamics 365 Business Central Connectivity for AAS
Connectivity to Dynamics 365 Business Central from Azure Analysis Services is made possible through CData Connect Cloud. To work with Dynamics 365 Business Central data from Azure Analysis Services, we start by creating and configuring a Dynamics 365 Business Central connection.
- Log into Connect Cloud, click Connections and click Add Connection
- Select "Dynamics 365 Business Central" from the Add Connection panel
-
Enter the necessary authentication properties to connect to Dynamics 365 Business Central.
To authenticate to Dynamics 365 Business Central, you must provide the User and AccessKey properties.
To obtain the User and AccessKey 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 User and AccessKey connection string properties. Note that the User Name is not your email address. It is a shortened user name.
To connect to data, specify OrganizationUrl. If you have multiple companies in your organization, you must also specify the Company to indicate which company you would like to connect to. Company does not need to be specified if you have only one company.
- Click Create & Test
- Navigate to the Permissions tab in the Add Dynamics 365 Business Central Connection page and update the User-based permissions.
Add a Personal Access Token
If you are connecting from a service, application, platform, or framework that lacks support for OAuth authentication, you have the option to generate a Personal Access Token (PAT) for authentication purposes. It's advisable to follow best practices by creating a distinct PAT for each service to uphold access granularity.
- Click on your username at the top right of the Connect Cloud app and click User Profile.
- On the User Profile page, scroll down to the Personal Access Tokens section and click Create PAT.
- Give your PAT a name and click Create.
- The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.
With the connection configured, you are ready to connect to Dynamics 365 Business Central data from Visual Studio using Azure Analysis Services.
Connect to Dynamics 365 Business Central in Visual Studio Using AAS
The steps below outline connecting to CData Connect Cloud from Azure Analysis Services to create a new Dynamics 365 Business Central data source. You will need the Microsoft Analysis Services Project Extension installed to continue.
- In Visual Studio, create a new project. Select Analysis Services Tabular Project.
- In the Configure your new project dialog, enter a name for your project in the Project name field. Fill in the rest of the fields.
- Click Create. The Tabular model designer dialog box opens. Select Workspace server and enter the address of your Azure Analysis Services server (for example, asazure://eastus.azure.windows.net/myAzureServer). Click Test Connection and sign in to your server.
- Click OK to create the project. Your Visual Studio window should resemble the following screenshot:
- In Visual Studio, in Tabular model Explorer, right-click Data Sources and select Import From Data Source.
- In the Table Import Wizard, select SQL Server database and click Connect. In the Server field, enter the Virtual SQL Server endpoint and port separated by a comma: e.g., tds.cdata.com,14333
-
Click SQL Server Authentication and enter the following information:
- User name: Enter your CData Connect Cloud username. This is displayed in the top-right corner of the CData Connect Cloud interface. For example, test@cdata.com.
- Password: Enter the PAT you generated on the Settings page.
- On the next screen, select Current User and click Next.
- Now, select the first option and click Next.
- On the next screen, select a table from the list and click Preview & Filter.
- You should now see the table from Dynamics 365 Business Central populated with data.
Now that you have imported the Dynamics 365 Business Central data into your data model, you are ready to deploy the project to Azure Analysis Services for use in business reports, client applications, and more.
Get CData Connect Cloud
To get live data access to 100+ SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect Cloud today!