# Microsoft Dynamics 365 Business Central

> Manage Business Central customers and vendors, and read companies, items and sales documents.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/microsoft-dynamics-365-business-central

## Actions

### Create customer

Create a customer in a Business Central company with a display name and optional email. Returns the new customer with its ID and number.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Display name (`display_name`, text, required): Display name.
- Email (`email`, text): Email.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### Create item

Create an item in a Business Central company with a display name and type (inventory, service or non-inventory). Returns the new item with its ID and number.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Display name (`display_name`, text, required): Display name.
- Item type (`item_type`, text): Item type. One of: `Inventory`, `Service`, `Non-Inventory`.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### Create vendor

Create a vendor in a Business Central company with a display name and optional email. Returns the new vendor with its ID and number.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Display name (`display_name`, text, required): Display name.
- Email (`email`, text): Email.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### Delete customer

Delete a customer from a Business Central company, by its ID.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {}
}
```

### Delete item

Delete an item from a Business Central company, by its ID.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {}
}
```

### Delete vendor

Delete a vendor from a Business Central company, by its ID.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {}
}
```

### Get customer

Get one customer in a Business Central company by its ID, with their number, display name and when the record last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### Get item

Get one item in a Business Central company by its ID, with its number, display name and when it last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### Get sales invoice

Get one sales invoice in a Business Central company by its ID, with its number, customer name and when it last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "customerName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### Get sales order

Get one sales order in a Business Central company by its ID, with its number, customer name and when it last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "customerName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### Get vendor

Get one vendor in a Business Central company by its ID, with their number, display name and when the record last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### List companies

List the companies in the Business Central environment, with an optional filter. Returns each company's ID and name, which other actions need.

**Inputs**

- Top (`top`, number): Top. From 1 to 1000. Default: `100`.
- Next page token (`skiptoken`, text): Use next_page_token from the preceding result; leave empty for the first page.
- Filter (`filter`, text): Filter.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "@odata.nextLink": "example",
    "next_page_token": "example",
    "value": []
  }
}
```

### List customers

List customers in a Business Central company, with an optional filter. Returns each customer's ID, number, display name and when it last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Top (`top`, number): Top. From 1 to 1000. Default: `100`.
- Next page token (`skiptoken`, text): Use next_page_token from the preceding result; leave empty for the first page.
- Filter (`filter`, text): Filter.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "@odata.nextLink": "example",
    "next_page_token": "example",
    "value": []
  }
}
```

### List items

List items in a Business Central company, with an optional filter. Returns each item's ID, number, display name and when it last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Top (`top`, number): Top. From 1 to 1000. Default: `100`.
- Next page token (`skiptoken`, text): Use next_page_token from the preceding result; leave empty for the first page.
- Filter (`filter`, text): Filter.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "@odata.nextLink": "example",
    "next_page_token": "example",
    "value": []
  }
}
```

### List sales invoices

List sales invoices in a Business Central company, with an optional filter. Returns each invoice's ID, number, customer name and when it last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Top (`top`, number): Top. From 1 to 1000. Default: `100`.
- Next page token (`skiptoken`, text): Use next_page_token from the preceding result; leave empty for the first page.
- Filter (`filter`, text): Filter.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "@odata.nextLink": "example",
    "next_page_token": "example",
    "value": []
  }
}
```

### List sales orders

List sales orders in a Business Central company, with an optional filter. Returns each order's ID, number, customer name and when it last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Top (`top`, number): Top. From 1 to 1000. Default: `100`.
- Next page token (`skiptoken`, text): Use next_page_token from the preceding result; leave empty for the first page.
- Filter (`filter`, text): Filter.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "@odata.nextLink": "example",
    "next_page_token": "example",
    "value": []
  }
}
```

### List vendors

List vendors in a Business Central company, with an optional filter. Returns each vendor's ID, number, display name and when it last changed.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Top (`top`, number): Top. From 1 to 1000. Default: `100`.
- Next page token (`skiptoken`, text): Use next_page_token from the preceding result; leave empty for the first page.
- Filter (`filter`, text): Filter.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "@odata.nextLink": "example",
    "next_page_token": "example",
    "value": []
  }
}
```

### Update customer

Change a Business Central customer's display name or email, found by company and customer ID. Returns the updated customer.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.
- Display name (`display_name`, text): Display name.
- Email (`email`, text): Email.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### Update item

Change a Business Central item's display name or type, found by company and item ID. Returns the updated item.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.
- Display name (`display_name`, text): Display name.
- Item type (`item_type`, text): Item type. One of: `Inventory`, `Service`, `Non-Inventory`.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```

### Update vendor

Change a Business Central vendor's display name or email, found by company and vendor ID. Returns the updated vendor.

**Inputs**

- Company (`company_id`, text, required): Company id.
- Record (`record_id`, text, required): Record id.
- Display name (`display_name`, text): Display name.
- Email (`email`, text): Email.

**Outputs**

- `data` (object): Microsoft Dynamics 365 Business Central response data.

**Example output**

```json
{
  "data": {
    "displayName": "example",
    "id": "example",
    "lastModifiedDateTime": "example",
    "number": "example"
  }
}
```
