Python Connector for Dynamics 365 Business Central

Connection parameters - Python Connector for Dynamics 365 Business Central

Connection parameters

The following table describes the Dynamics 365 Business Central connection parameters you can use in the connect() module method.

Parameter Description

Authentication

The authentication type. The possible values are:

  • Basic – (Default) Basic authentication
  • OAuth – OAuth 2.0 authentication

Basic authentication

Server

The Dynamics 365 BC server URL

UserID

The user's name

AccessKey

The access key

CompanyId

The company ID.

Use the getcompanies() method to obtain the company ID.

OAuth 2.0 authentication

Environment

The environment name.

Use the getenvironments() method to obtain the environment name.

CompanyId

The company ID.

Use the getcompanies() method to obtain the company ID.

RefreshToken

The refresh token.

Follow the instructions in Using the module to obtain a refresh token.

Proxy parameters

ProxyHostName

The hostname or IP address of the proxy server

ProxyPort

The proxy port

ProxyUserName

The username for proxy authentication

ProxyPassword

The password for proxy authentication

Other parameters

PoolId

The ID of a connection pool that will be used for a particular connection

DisablePooling

Disables connection pooling for a particular connection.

The possible values are True and False. The default value is False.

© 2022-2025 Devart. All Rights Reserved. Request Support Python Connectors Forum Provide Feedback