Connections
Connectors
This document explains the fields and settings for configuring an Inbound REST connector.
General Section
| Field Name | Description |
|---|---|
| Connector Id | The unique identifier for the connector configuration. |
| Description | A brief description explaining the purpose of this connector. |
| Connector Type | The connector type being referenced. Possible connections are Rest for Webservices. In the future, File and DB will be implemented to make connections to Azure Storage and Databases. |
| Direction | Specifies the message flow direction, e.g., Inbound for incoming data, Outbound for outgoing data. |
Use for GET Response Section
| Field Name | Description |
|---|---|
| Origin WH Connector | The warehouse connector that serves as the source for this configuration. Example: MIA-1-DEMO. |
| Message Type | The type of message being processed. Example: ARRIVAL. |
| Direction | The specific direction for this configuration. Example: WMSOUT. |
| XSLT for Inventory | Specifies the XSLT (Extensible Stylesheet Language Transformations) used for inventory processing. |
Body for POST/PUT Section
| Field Name | Description |
|---|---|
| BodyTemplate | Template for the body content in POST or PUT requests. |
Actions in the User Interface
- Edit: Modify the selected connector configuration.
- New: Create a new connector entry.
- Delete: Remove the currently selected connector configuration.
tip
- Direction Consistency:
- Ensure the
Directionfield matches the expected flow of data (InboundorOutbound).
- Ensure the
- Message Type:
- Use standardized message types like
ARRIVAL,TRANSFER, orORDERfor clarity.
- Use standardized message types like
- XSLT for Inventory:
- Always validate XSLT templates to ensure they meet the inventory processing requirements.
- Body Template:
- For POST/PUT requests, design the body template to align with API specifications.
Example Configuration
Connector Id: MIA CON Get Arrival
Description: Inbound connector for GET Arrival messages
General:
Connector Type: MIA WS GET Arrival
Direction: Inbound
Use for GET Response:
Origin WH Connector: MIA-1-DEMO
Message Type: ARRIVAL
Direction: WMSOUT
XSLT for Inventory: [XSLT Template Name]
Body for POST/PUT:
BodyTemplate: [JSON or XML template for the body]
Connector type
This document explains the fields and settings for configuring a REST connector in Dynamics 365 Finance and Operations.
General Section
| Field Name | Description |
|---|---|
| Name | The display name of the connector. |
| Connector Type | Specifies the type of connector being configured. For this example, it is Rest. |
General Configuration Fields
| Field Name | Description |
|---|---|
| HttpAction | Defines the HTTP method for the request, e.g., GET, POST, PUT, Patch, Delete or POST or PUT,. |
| URL | The endpoint URL for the REST API. |
| Content Type | Specifies the format of the request content. For example: application/json;charset=utf-8. |
Credential and Handler Details
| Field Name | Description |
|---|---|
| Credential Name | References the configured credentials used for authentication. This links to a credential entry (e.g., MIA 1). |
| Handler Class | Specifies the X++ class that handles the communication logic for the connector. At the moment, only is CNTXWHWsClientHandlersupported. |
Actions in the User Interface
- Edit: Modify the selected connector configuration.
- New: Create a new connector entry.
- Delete: Remove the currently selected connector configuration.
tip
- Use Secure URLs:
- Always use
HTTPSURLs to ensure encrypted communication.
- Always use
- Test the Endpoint:
- Verify the configured API endpoint and credentials using appropriate tools (e.g., Postman).
- Content Type:
- Match the
Content Typeto the API's requirements for correct data processing.
- Match the
- Handler Class:
- Ensure the custom handler class (e.g.,
CNTXWHWsClientHandler) contains appropriate logic for processing responses.
- Ensure the custom handler class (e.g.,
Example Configuration
A sample configuration might look like this:
Name: MIA WS GET Arrival
Connector Type: Rest
General:
HttpAction: GET
URL: https://demo.mia-systems.at/...
Content Type: application/json;charset=utf-8
Credentials:
Credential Name: MIA 1
Handler Class: CNTXWHWsClientHandler
D365 Menu Item
Warehouse Connector -> Setup -> Connections -> Connectors Warehouse Connector -> Setup -> Connections -> Connector type