You can use a connector of type Database to directly connect to an external database via ODBC. Usually, this external database is an on-premises database. And often, D365 FO is run in the cloud. In this case an Azure Service Bus is required to connect to the external database.
However, you can also run D365 FO on-premises. If you do so, you can directly connect to an external database. You can connect in two ways:
Only without an Azure Service Bus.
Without an Azure Service Bus and using Direct SQL to export data.
Field group |
Field |
Explanation |
Azure Service Bus |
Windows Azure Service Bus namespace |
Leave empty. |
Service bus key |
Leave empty. |
|
ODBC data source |
Data source name |
Enter the data source name (DSN) as created on the external server. |
Operator name |
You can define the login ID to be used to connect to the data source name (DSN) as created on the external server. |
|
Password |
You can define the password to be used to connect to the data source name (DSN) as created on the external server. |
Field group |
Field |
Explanation |
Azure Service Bus |
Windows Azure Service Bus namespace |
Leave empty. |
Service bus key |
Leave empty. |
|
ODBC data source |
Operator name |
You can define the login ID to be used to connect to the external database server. If not defined, the connection is automatically handled as trusted. |
Password |
You can define the password to be used to connect to the external database server. If not defined, the connection is automatically handled as trusted. |
|
Direct SQL |
Linked server instance |
Enter the name of the linked server instance that is defined on the external SQL server to connect to the D365 FO database. |
Database server name |
Enter the SQL server instance name of the external on-premises SQL server where you created the linked server. |
|
Database name |
Enter the name of the applicable database on the defined SQL server instance. |
|
ODBC driver |
If you use direct SQL, you connect using the driver. By default, the 'SQL Server Native Client 11.0' ODBC driver is used. Optionally, you can define another, ODBC driver. Example: 'ODBC Driver 13 for SQL Server'. |
Section |
Field |
Explanation |
General |
Source connector |
Must be of type 'D365 FO'. |
Source document |
Must be of type 'D365 FO'. |
|
Target connector |
Must be of type 'Database'. |
|
Target document |
Must be of type 'ODBC'. |
|
Custom |
Message type |
Select ‘SQL’. |
Handler |
Select ‘BisMessageRunDirectSQL’. This handler class gets the data from the D365 FO database and directly enters it into the external on/premises SQL database. |
If you use direct SQL, these message mapping options are not supported:
Statement line |
Element |
Explanation |
[MyDatabase].[dbo].[TrgCustomer] |
||
|
[MyDatabase] |
The database as defined in the Database name field on the target connector. |
|
[dbo] |
The owner schema as defined in the SQL owner schema field on the target document record details. |
|
[TrgCustomer] |
The applicable record of the target document. |
[LinkedServerToD365Fo].[AxDB].[dbo].[CUSTTABLE] [custtable] |
||
|
[LinkedServerToD365Fo] |
The linked server the linked server instance of the external SQL server, as defined in the Linked server instance field on the target connector. |
|
[AxDB] |
The standard database name for the D365 FO database. |
|
[dbo] |
The standard SQL owner schema of D365 FO. |
|
[CUSTTABLE] |
The applicable record of the source document. |
Related to | Notes |
---|---|
Set up Database connector |
  |
Set up Azure Service Bus for ODBC connection |
  |