Yokoy Spend Management Connector for Microsoft Dynamics 365 Business Central lets you combine the strength of Microsoft Dynamics 365 Business Central with Yokoy’s AI-powered spend management solution.
With Yokoy’s integration, data automatically flows back and forth with Microsoft Dynamics 365 Business Central, enabling you to automate the process, wherever spend is incurred.
Overview
MS Dynamics 365 Business Central is responsible for managing data flows to and from Yokoy. It uses the Yokoy API (OAuth2.0 authentication) to send master and transactional data such as POs and GRs to Yokoy and to retrieve invoice data for posting. Yokoy’s webhooks notify Business Central about changes in the document status, giving Business Central control over when data is retrieved and posted. For expenses, Yokoy is responsible for sending expense data to Business Central. Business Central retrieves receipts and attachments from the Yokoy API.
Each Microsoft Dynamics 365 Business Central company is associated with a Yokoy legal entity. If you have more than one company, you must set up a separate legal entity in Yokoy.
Non-PO invoices, PO invoices, and PO invoices with purchase receipt (GR)
With the integration, you can send purchase orders and purchase receipts to Yokoy for processing with the invoices, matching PO and/or GR line items with invoice line items (two-way matching and three-way matching).
The integration supports item, fixed asset, and item charge line types. It does not support resource and allocation account line types.
Invoice PDF
Invoice documents are retrieved by Business Central as a base64 encoded PDFs and attached to the purchase order or purchase invoice. The document can be viewed in the Attachments tab for the purchase order or purchase invoice.
Invoice posting to vendor ledger
Yokoy communicates changes in Yokoy invoice states to Business Central using webhooks. Business Central is then responsible for retrieving the invoice data from Yokoy and posting as posted purchase invoice documents (if automatic posting is enabled).
You can choose to post invoices in Business Central on submission, either updating the purchase order with a payment block or creating a temporary purchase invoice with a payment block, or when invoices are fully approved and ready to export, booking the invoice data as posted purchase invoice and creating the corresponding vendor ledger entry.
Expense posting to general journal
In the case of expenses, Yokoy is responsible for posting expenses directly to the general journal.
Reporting currency for invoices & expenses
With the invoice export, currency conversion is handled entirely by Business Central. This means that you use Business Central’s exchange rates to handle all conversion to the company currency and any adjustments as appropriate.
Invoice and expense approval
The approval flow for invoices and/or expenses is managed entirely by Yokoy using either a standard line manager or cost object workflow or by using a custom workflow.
Requirements
The Yokoy for MS Dynamics 365 Business Central integration supports these versions:
Version | Deployment | Comments |
MS Dynamics Cloud | Cloud |
|
MS Dynamics | On premise | Additional objects may be required; the integration includes new tables, pages, reports. Any adjustments must be performed by the customer. |
The integration can be installed as an extension either as an extension package (for on premise deployment) or from the Microsoft AppSource.
✏️ Note
If you install the integration as an extension package directly in Microsoft Dynamics 365 Business Central, you will not receive any automatic updates with any new features. You will be responsible for updating the extension package to the latest version.
Processing invoices with the integration
Yokoy invoices are booked as purchase invoices (for non-PO invoices) and purchase orders (for PO invoices) for processing in Business Central as vendor payments.
Invoice documents are retrieved by Business Central as a base64 encoded PDF and attached to the purchase purchase/invoice. The document can be viewed in the Attachments tab for the purchase order/invoice.
The Yokoy integration can be configured to automatically post all purchase orders / purchase invoices as posted purchase invoices. Alternatively, finance users can post purchase orders or purchase invoices manually with the corresponding Business Central feature.
Business Central is responsible for all calculations of the net amount, gross amount, and tax amount, based on the quantity and unit price fields provided by Yokoy.
🚧 Caution
If your Purchase Order card contains any required custom fields, you must manually update these fields in Business Central. Otherwise, an error may be triggered when exporting PO invoices from Yokoy.
In addition, you can decide to post journal entries on:
Approval and export: standard invoice export flow
Provisional posting: posted purchase invoice with payment block to prevent it from being taken in the payment run.
Installing the Yokoy Connector in Business Central adds an additional field Yokoy Payment Status to the Purchase Order and the Purchase Invoice cards in Business Central. Only invoices with Yokoy Payment Status Approved are considered in the Suggested Vendor Payments report/available for application. If the Yokoy Payment Status is not approved (regardless of whether you post on approval or provisionally before approval), the invoice is blocked for payment & application.
If you set up the invoice workflow for provisional posting (i.e. data sent to Business before it is fully approved) in the Workflow Designer in Yokoy, the Yokoy Payment Status is Not approved until the invoice is approved and exported from Yokoy, at which point the status is changed to Approved. It is strongly advised that you do not change the Yokoy Payment Status manually from 'Not Approved' to 'Approved' as this disrupts the coherence with the provisional posting concept.
Posting on approval and export
When the finance user exports the invoice (which may have been set up to be done automatically), Business Central fetches the invoice data from Yokoy, generates the vendor ledge entry, and books the invoice as a posted purchase invoice (for non-PO invoices) and a posted purchase invoice via the purchase order (for PO-invoices).
The Yokoy Payment Status is updated to Approved when the invoice exported.
Typical process in Yokoy
Note: the statuses given in parenthesis are the resulting state of the action.
Upload invoice (new status)
Adjust coding, if necessary. (draft status)
Submit invoice for approval, if required. (in approval status)
Approve invoice (in review status)
Review invoice. (ready for export status)
Export invoice (exported status).
Post invoice as a Posted purchase invoice on Business Central without payment block.
Provisional posting
When an invoice is created in Yokoy, vendor ledger entries are also created in Business Central, although posted purchase invoices are flagged with a payment block to prevent being taken by the Suggest Vendor Payments (339) report. When the invoice is approved in Yokoy and then exported (either manually or automatically), the Yokoy Payment Status is updated to Approved. Business Central removes the payment block flag and updates the vendor ledger entries.
If the invoice is rejected, you can set up Yokoy to automatically book a credit memo to offset the posted purchase invoice. You can choose whether you want Yokoy to automatically post credit memos or whether you want to handle rejected invoices manually.
Typical process in Yokoy
Note: the statuses given in parenthesis are the resulting state of the action.
Upload invoice. (new status)
Adjust coding, if necessary. (draft status)
Submit for approval (in approval status) and create posted purchase invoice on Business Central with payment block.
Approve invoice (in review)
Review invoice (ready for export)
Export invoice (exported)
Remove payment block in Business Central (exported).
If the invoice is rejected, then the posted purchase invoice with payment block is canceled in Business Central with a credit memo.
In this example, the invoice is provisionally posted after submit, but the workflow could equally be set up to post the invoice in Business Central after approval but before review.
Invoice document, VAT, and posting dates
When exporting invoices to Business Central, the Yokoy connector maps invoice dates as follows:
Yokoy field | Business Central field |
Invoice issue date | Document date |
Invoice issue date | VAT date |
Invoice posting date | Posting date |
If no posting date is specified in Yokoy, the Yokoy connector takes the invoice issue date as the posting date.
Any due dates set in the Yokoy invoice are not reflected in Business Central since due dates are taken from the associated payment term.
Processing expenses with the integration
Expenses are processed in Yokoy according to the company’s workflow (i.e. submit > approve > review).
Once processed, they are exported to Business Central by Yokoy either manually (as triggered by the Finance team) or automatically using an export job.
Exporting and posting expenses
Expenses (single expenses, card transactions, and travel expenses) are posted to GL accounts. The integration can be configured to automatically post expenses to the corresponding ledgers or to create the corresponding entry in the General journal, so that the Finance team can post the entry manually.
Expense credit notes
Yokoy lets you post credit memos to Business Central (provided the option create credit notes has been enabled for the legal entity). Credit notes are handled as a credit memo in Business Central.
Expense receipts and attachments
You can choose to import expense receipts (and attachments) into Business Central. If you import receipts, they are linked to the corresponding general journal entry. The receipt (and any attachments) is made available in the Incoming documents tab for each journal entry. In addition, when the journal entry is posted, receipts are made available from the Vendor journal entry.
Synchronizing master and transactional data
The integration allows you to manage all master data in Microsoft 365 Business Central and synchronize it with Yokoy:
dimensions (cost objects or tags)
You can choose to synchronize all master data types or only specific data types (i.e. only vendors) as required. Master data synchronization is automated using jobs, however, you can also manually sync specific records directly from the card.
Users are synchronized directly from Business Central, creating Yokoy users in active or inactive status, as required. Yokoy users can be created from the Employee card. You can choose to import individual or multiple vendors/employees. Suppliers can be created from the Vendor card.
You can map financial dimensions (projects, departments, areas, etc.) as specific cost objects or tags in Yokoy, allowing you greater flexibility in your financial accounting setup.
Master data synchronization is automated using jobs, however, you can also manually sync specific records directly from the card.
✏️ Additional permission set required
Users must have a Yokoy integration permission set in Business Central to perform synchronization tasks.
🚧 Tax rate synchronization not supported
Tax rates are not imported from Business Central. You need to set up tax rates manually in Yokoy. Yokoy associates the business posting group and the product posting group in the tax rate, so that tax information can be successfully exported into Business Central.
For transactional data, you can configure how and when Microsoft Dynamics 365 Business Central sends purchase orders (POs) and purchase receipts (GRs) to Yokoy so it can be used to perform two-way and three-way matching with invoices, checking both header and line item data for any deviations.
Business Central displays information on which POs and GRs have been sent to Yokoy in the Purchase Order and Purchase Receipts cards, respectively.
User data
Users can be created in Yokoy from the Business Central Employee cards as required.
Reporting structure (i.e. line managers) is not replicated from Business Central. You need to set up reporting in Yokoy if you plan to use line manager approval (or a custom workflow that uses line manager approval for approval escalation).
Line manager threshold, delegates and assistants (if appropriate), assigned cost object, and language preferences must be set up manually in the user profile.
The Yokoy integration sends this information from Business Central to Yokoy:
Business Central attribute | Yokoy attribute | Description |
No. | Employee account (ERP) employeeId | Employee Card user reference in Business Central. |
Yokoy email | Email that the employee uses to log into Yokoy. | |
First Name | First name | Given name or preferred name of the employee. |
Last Name | Last name | Family name of the user. |
Manager No. | Line manager ID | Yokoy internal ID of the employee identified as the manager in the Manager No. field in the Employee card. |
Active status | - | Status of the user in Yokoy. This is not synced with the Business Central status. You need to manually deactivate the Yokoy user in BC using the Deactivate user option. |
Finance dimension data
The Yokoy integration supports the synchronization of dimensions. You can choose to link dimensions with Yokoy cost centers (object) and Yokoy tag dimensions. Since Yokoy supports only one cost center per line item/journal entry, additional dimensions can be associated using tags.
Dimensions that you may want to sync in Yokoy:
Area
Business group
Customer group
Department
Purchaser
Sales campaign
Salesperson
For example, you can set up to sync the Business Central dimension values of Department as cost objects, and the Area dimension values Europe North, Europe North (EU), Europe North (Non EU) to the Yokoy tag dimension Country, creating tags Europe North, Europe North (EU), Europe North (Non EU).
🚧 Hierarchical cost objects not supported
The Yokoy integration does not support hierarchical dimensions (i.e. hierarchical cost objects), meaning you can’t set up a parent cost object with child cost objects for department level reporting. For example, IT department parent cost object with Software, Hardware, and Licensing child cost objects.
Approval using financial dimensions (cost objects)
While financial dimensions (cost objects) can be used to approve invoices and expenses in Yokoy, you must assign the cost object approver directly in Yokoy once the cost object has been replicated from Business Central. The integration does not take approvers or approval limits from Business Central.
Dimensions as Yokoy cost objects
Business Central attribute | Yokoy attribute | Description |
Name | Name / name | Name of the cost object |
Name | Description / description | Additional description of the cost object |
Code | Code (ERP) / code | Business Central reference |
All active dimensions are automatically imported as active cost objects. If the dimension or the dimension value is blocked in Business Central, they are still imported into Yokoy as cost object but with inactive status. Approval limits, cost object approvers, auto-approval limits, and cost object delegates must be set manually in Yokoy.
Dimensions as Yokoy tags
Business Central attribute | Yokoy attribute | Description |
Dimension value name | Name | Name of the tag. |
Yokoy Tag Dimension | Dimension code | Yokoy ID of the dimension to which the tag is associated. |
Dimension value code | Code | Business Central reference. |
All active dimensions are imported as active tags. If the dimension or the dimension value is blocked in Business Central, they are still imported into Yokoy as tags but with inactive status. Approvers for expenses and invoices must be set up in Yokoy.
GL account data
For every GL account, you can synchronize them as an invoice and/or expense category in Yokoy, as required.
The integration creates the basic definition of the category in Yokoy (name, description, account), but you can edit the categories once synchronized in Yokoy to display a symbol in Yokoy.
Business Central attribute | Yokoy attribute | Description |
No. | Account (ERP) | GL account reference in Business Central. |
Name | Name | Name of the GL account in Business Central. |
Name | Description | Name of the GL account in Business Central. |
Supplier data
Vendors are mapped to Yokoy’s suppliers. Changes in the Vendor card are automatically synced with Yokoy. However, you can manually push changes from Business Central.
Business Central provides basic details for the Yokoy supplier:
Address
Tax ID(s)
Bank information
Default supplier settings must be set up manually. Payment terms for the legal entity are not synchronized from Business Central.
Business Central attribute | Yokoy attribute | Description |
No. | Supplier ERP ID | Business Central ID of the supplier. |
Yokoy Organization ID | Organization ID | Yokoy ID of the organization. Not visible in the Supplier page. |
Yokoy Legal Entity ID | Legal entity ID | Yokoy ID of the company to which the supplier is associated. Not visible in the Supplier page. |
Name | Supplier name | Name of the supplier. |
Name 2 | Secondary name | Additional information about the supplier name. |
Address | Street | Displayed in Address in the Yokoy Supplier page. |
City | City | Displayed in Address in the Yokoy Supplier page. |
Post Code | Post code | Displayed in Address in the Yokoy Supplier page. |
Country/Region Code | Country code | Displayed in Address in the Yokoy Supplier page. |
VAT Registration No. | Supplier tax ID(s) | Tax ID of the supplier. Taken from the Vendor card. |
Country/Region Code | Bank country | Country taken from Vendor Bank Account card. |
IBAN | IBAN | IBAN taken from Vendor Bank Account card. |
Bank Account No. | Bank account | Bank account number taken from Vendor Bank Account card. |
SWIFT code | BIC | SWIFT/BIC code taken from Vendor Bank Account card. |
Bank Account Code | External ID | Vendor Bank Account card number. |
Contact | - | Not supported. |
Purchase orders
Business Central purchase orders are used in two-way and three-way matching in Yokoy.
With the connector, the Purchase Order card contains additional fields to track whether the PO has been created in Yokoy, the corresponding Yokoy purchase order ID, and the Yokoy Payment status.
The Yokoy Payment status tracks the approval status of the associated invoice. This field is used to determine whether a payment block should be applied to the Posted Purchase Invoice entry to prevent payment in the event you have set up Vendor Ledger posting on submission instead of posting on export.
The integration supports these lines in the purchase order:
Items: standard order line items. These appear as Yokoy line items. Line items are posted to the GL account (via the posting group given in the Item card).
Item charges: records the costs of handling items such as freight charges, loading and unloading items, custom duties, insurance, and other similar costs. These are tracked via tags in Yokoy. The posting account is derived from the item charge.
Fixed assets: These are tracked via tags in Yokoy. The posting account is derived from the fixed asset.
🚧 Purchase order line types
Yokoy does not support resource and allocation account line types.
PO header data
Business Central attribute | Yokoy attribute | Description |
No. | PO number | Document number of the purchase order. |
Currency code | Currency | If no currency is set, the Local Currency ISO Code from the integration setup in Business Central is used. |
Yokoy ID of the supplier | Supplier ID | Yokoy internal ID used to identify the legal entity supplier. Used to display the supplier name in Yokoy |
PO line item data
Business Central attribute | Yokoy attribute | Description |
Description | Description | Description of the item. |
Amount Including VAT | Gross amount | Gross amount of the PO line item. Used for matching with the invoice line item. |
Amount | Net amount | Net amount of the PO line item. Used for matching with the invoice line item. |
Quantity | Quantity | Quantity of the item. |
Unit of Measure Code | Unit | Unit of measurement of the item as set up in Business Central. |
Line No. | Position | Position of the PO line item in the PO. |
No. (Items) | Article Nr | Item number |
✏️ Note
Unlike fixed asset and item charge line types, item type PO lines don’t include the GL account (invoice category). This information is not displayed or matched in Yokoy. The GL account is determined by the item’s posting group in Business Central and posting to the corresponding GL account is determined by Business Central when the invoice is imported into Business Central.
Posted purchase receipts (goods receipts)
Posted purchase receipts are processed as goods receipts in Yokoy.
Goods receipts are always associated to a purchase order and are used to perform three-way matching.
In general, item (charge) and fixed asset line item types are considered Non-GR line items in Yokoy. However, you can associate them to a posted purchase receipt, if required.
GR header data
Business Central attribute | Yokoy attribute | Description |
No. of posted purchase receipt | GR number | Business Central posted purchase receipt number. |
No. | External ID | External ID of the goods receipt. Additional ID used to identify the GR. |
Currency code | Currency | If no currency is set, the field “Local Currency ISO Code” from the integration setup in BC is used |
Yokoy ID of the supplier | Supplier ID | Yokoy internal ID used to identify the supplier associated with the GR. Used to link the GR with the PO. |
GR line item data
Business Central attribute | Yokoy attribute | Description |
| Amount | Calculated in Yokoy based on Quantity, Direct Unit Cost, and Line Discount % attributes from Business Central. |
Line No. | Item number | Number of the item in the posted purchase receipt. Visible in the GR header. |
Yokoy ID of PO | Purchase Order ID | Yokoy ID to identify the purchase order. This data is stored in the posted purchase receipt card. |
Item | Purchase order item ID | Business Central reference to identify the item. |
Quantity | Quantity | Quantity of the goods receipt line item. Qty delivered. |
Unit of Measure Code | Unit | Unit of the line item, as determined by Business Central. |