Modules

microsoft.dynamics365.scm

microsoft.dynamics365.scm.mock.server

ballerinax/microsoft.dynamics365.scm Ballerina library

0.1.0

Overview

Microsoft Dynamics 365 Supply Chain Management is Microsoft's cloud enterprise-resource-planning application for end-to-end supply chain operations, covering warehousing, inventory, manufacturing, planning, transportation, and procurement. The Dynamics 365 Supply Chain Management connector enables integration with the Supply Chain OData REST API, providing programmatic access to master and transactional data including warehouses and locations, sites, item groups, units of measure, bills of materials, production orders, transfer orders, on-hand inventory, inventory journals, and sales shipments.

Key Features

  • Warehouse, location, and site master-data management
  • Bill-of-materials (BOM) header and line access for manufacturing integration
  • Production order and transfer order workflows
  • Real-time on-hand inventory lookups by item, site, warehouse, location, batch, and serial
  • Inventory journal and sales shipment (packing slip) visibility
  • Cross-company queries spanning multiple legal entities (dataAreaId)
  • OAuth 2.0 client-credentials and bearer-token authentication against Microsoft Entra ID (Azure AD)

Setup

Dynamics 365 Supply Chain Management is protected by Azure Active Directory. Acquire an access token via the client-credentials flow (or pass one in directly via a bearer-token config) and point the client at your tenant's /data endpoint.

Quickstart

Copy
import ballerinax/microsoft.dynamics365.scm;

public function main() returns error? {
    scm:Client scmClient = check new (
        config = {
            auth: {
                tokenUrl: "https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token",
                clientId: "<client-id>",
                clientSecret: "<client-secret>",
                scopes: ["https://<tenant>.operations.dynamics.com/.default"]
            }
        },
        serviceUrl = "https://<tenant>.operations.dynamics.com/data"
    );

    scm:WarehousesCollection warehouses = check scmClient->listWarehouses(queries = {top: 5});
    // ...
}

Examples

Runnable examples live in examples/ at the repository root. They use the bundled mock server so they can run without a live tenant.

Import

import ballerinax/microsoft.dynamics365.scm;Copy

Other versions

0.1.0

Metadata

Released date: 4 days ago

Version: 0.1.0

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.13.0

GraalVM compatible: Yes


Pull count

Total: 2

Current verison: 2


Weekly downloads


Source repository


Keywords

Name/Microsoft Dynamics 365 Supply Chain Management

Area/ERP & Business Operations

Vendor/Microsoft

Dynamics365

SupplyChain

ERP

Type/Connector


Contributors