You can configure the Yokoy Spend Management Connector for MS Dynamics 365 Business Central to send master data from Business Central to Yokoy:
Vendors (i.e. suppliers in Yokoy)
Other master data such as tax rates and payment terms must be set up manually in Yokoy.
š§ Caution
Business Central On-premise may be hosted on private web servers with restricted access to and from unsecured networks. Make sure that security policies do not prevent traffic exchanges between Yokoy and the Business Central tenantās services. In other words, firewall rules, port forwarding rules, and secure network gateways must set up to allow traffic passthrough to and from Business Central On-premises and Yokoy before proceeding to synchronize data or trigger exports.
By default, you set up an automated job to synchronize the data regularly using the Update data in Yokoy task. However, you can also manually sync master data from Business Central to Yokoy as required.
The Yokoy connector also contains a specific task Update Duplicates from Yokoy that lets you re-synchronize Yokoy master data in Business Central where the connection between the two systems has been lost for whatever reason (i.e. the connector is reinstalled after an environment update or you have created master data manually in Yokoy). This task lets you synchronize data for users, cost objects, tags, vendors, and categories.
The task results in an Excel file in which it indicates the objects that have been re-matched with Yokoy master data. Where there is no existing connection between the objets, the report indicates the criteria used for mapping Business Central master data against Yokoy master data.
š§ Caution
You can only run one option at a time, i.e. re-synchronize users.
Users
You can set up the integration to create a user in Yokoy directly from Business Central. The Yokoy user is synchronized with the Employee card in Business Central.
š§ Caution
Users must be created as Employees in Business Central. Users as Vendors is currently not supported.
The Employee Card contains an additional section where you can determine the email address used to synchronize the records.
The value in the Yokoy email address is used to determine whether the user exists in Yokoy or not. If Yokoy doesnāt find a user with that email address, it creates a new user and updates the Employee card with the Yokoy ID.
By default, when you create a new user in Yokoy, the user record has the Active status. If Yokoy finds a user with the same email address, it checks whether it is active or not:
If the user is inactive, Yokoy changes the user status to active.
If the user is active, Yokoy doesnāt allow you to create a new user since it doesnāt allow more than one user with the same email address.
š§ Caution
If you create a user directly in Yokoy, this user is not automatically created in Business Central.
If you make any changes to users in Yokoy, those changes are not updated in Business Central. Make sure that all required data is present in Business Central.
If an employee leaves the company (either temporarily or permanently) and you deactivate the employee in Business Central, you must manually deactivate the Yokoy user. Yokoy users cannot be deleted; only made in inactive so they canāt log into Yokoy.
āļø Warning
The Employee cardās Status field is not automatically synced with Yokoy.
Make sure to deactivate the Yokoy user manually in Business Central before changing the status to inactive or deleting them.
If the user is inactive in one system or the other, either expenses and invoices cannot processed in Yokoy or they cannot be posted in Business Central.
With the Yokoy connector, you can create new users in Yokoy based on the information available in Business Central. However, you need to update certain fields in the user manually in Yokoy such as line manager threshold (for line manager approval flows), home and office addresses, language preferences, etc.
You can run the Update data in Yokoy task to update information for existing users at any time.
Creating a new user manually
To create a new Yokoy user from Business Central:
Open the List of Employees.
Select an existing Employee card.
In the Yokoy section, enter the email address used to log into Yokoy in Yokoy Email.
Click Employee > Create/Update user in Yokoy. The form includes the Business Central employee number, the employeeās first and last names, and the email address you entered for the Yokoy email.
āChoose whether to send an invitation email to the user by turning on the Send Invitation to Yokoy switch. This allows them to create a password for logging into Yokoy.
š” Tip
You can choose to schedule the creation of several employees in the same job by clicking Scheduleā¦
Once the user has been created in Yokoy, youāll see the Yokoy ID in the Yokoy User ID field in the Employee Card.
Deactivating and reactivating a user
To deactivate a Yokoy user:
Open the List of Employees.
Select an existing Employee card.
Click Employee > Deactivate user in Yokoy.
To reactivate an inactive Yokoy user:
Open the List of Employees.
Select an existing Employee card.
Click Employee > Create/Update user in Yokoy.
āļø Note
If you find that the connection between the Yokoy and Business Central employee is lost for whatever reason (i.e. the Yokoy User ID does not appear in the Employee card), you can re-establish the mapping between Business Central and Yokoy.
Re-synchronizing users
You can establish the user mapping between Business Central data and Yokoy by running the Update Duplicates from Yokoy task in Business Central. The task checks Employee cards against the information available in Yokoy and generates an Excel log file. It determines whether an employee can be mapped against a Yokoy user using these criteria, in order of preference:
email address
code (ERP)
In other words, it checks the Business Central user email address against Yokoy user email address. If there is a match, it updates the Employee card with the Yokoy user ID. If there isnāt a match, it then checks the Business Central Employee card ID against the Yokoy user ERP code. If there is a match, it updates the Employee card with the Yokoy user ID.
The Excel report provides a detailed log of the updates performed by Business Central so you can check that all actions performed are correct. It contains these columns:
Column | Description |
Yokoy ID | Unique ID of the user in Yokoy. |
Yokoy First name | Name of the user in Yokoy |
Yokoy Last name | Name of the user in Yokoy |
ERP code | Code of the user in Yokoy. This value may or may not match the value in Business Central. |
Yokoy active status | Status of the user in Yokoy |
Mapped | Indicates whether the Business Central Employee card contains a Yokoy user ID. |
Mapping criteria | If the employee card was updated, indicates the attribute that was used to determine the mapping. The mapping criteria are
|
Business Central Employee ID | ID of the employee. |
Dimensions
Dimensions can be mapped to Yokoy tag dimensions and Yokoy cost objects. Each dimension can have as many tags or cost objects as required.
Creating a dimension manually
To create dimensions and dimension values in Business Central:
Open the Dimensions list.
Enter the Code (ERP) of the tag dimension in which you want to create the tag values in Yokoy in the Yokoy Tag Dimension field.
š§ Caution
The tag dimension must already exist in Yokoy before you can import Business Central dimensions as Yokoy tags. Otherwise, you see an error Dimension Value X is blocked.
3. Click Dimension > Dimension values.
ā
4. Go to Actions > Functions > Create Dimension in Yokoy.
5. Select whether you want to create the dimension as:
cost object
tag dimension
6. Click OK.
āļø Note
You can synchronize several dimensions at the same time by selecting Create Dimension in Yokoy from the search. Select a filter to retrieve all matching dimensions and click OK. All dimensions are created as the same type (either cost object or tags).
The Yokoy ID is displayed in the Yokoy Tag Dimension Code or Yokoy Cost Object ID columns, depending on whether the dimension has been created as a tag or a cost object. You can consult the created dimensions in Yokoy in either:
Admin > Cost objects
Admin > Company Settings > Aktiviere Tags
Deactivating a dimension
If you want to delete a dimension in Business Central, you must deactivate it in Yokoy first. If you fail to deactivate the dimension in Yokoy, it can still be used in processing invoice and expenses and may lead to issues when exporting invoices and expenses to Business Central. For example, if you assign an expense to a cost object that has deleted in Business Central, when you try to export that expense from Yokoy, you will encounter an error since the dimension doesnāt exist.
To deactivate a dimension from Business Central:
Open the Dimensions list.
Click Dimension > Dimension values.
In Actions > Functions, depending on how you created the dimension, select either:
Deactivate Tag in Yokoy
Deactivate Cost Object in Yokoy
This changes the status of the tag or cost object to inactive in Yokoy. It does not delete the tag or the tag dimension in Yokoy.
Inactive tags or cost objects cannot be used in new expenses or invoices, but it doesnāt affect exported expenses or invoices. If the cost object or tag has been used in an existing expense or invoice, users are prompted to select another cost object or tag.
āļø Note
If you find that the connection between the Yokoy and Business Central is lost for whatever reason (i.e. the cost object or tag ID does not appear in the dimension value card), you can re-establish the mapping between Yokoy and Business Central.
Re-synchronizing dimensions as cost objects
The Update Duplicates from Yokoy task checks the dimension values against the information retrieved from Yokoy, determining whether a dimension is mapped against a Yokoy cost object using these criteria, in order of preference:
ERP code
Name
Cost object description
If Business Central finds a dimension value where the data provided by Yokoy matches the Business Central data in one of these criteria, it updates the dimension card with the corresponding Yokoy cost object ID.
When the task has finished, Business Central generates an Excel report containing all Yokoy categories with their mapping status. More specifically, the report contains this information:
Column | Description |
Yokoy Cost object ID | Unique ID of the cost object in Yokoy. |
Yokoy Dimension Name | Name of the cost object in Yokoy. |
BC Description | Name of the dimension in Business Central. |
Yokoy ERP code | Code of the cost object in Yokoy. This value may or may not match the value in Business Central. |
Yokoy active status | Status of the cost object in Yokoy |
Mapped | Indicates whether the Business Central dimension value contains a cost object ID. |
Mapping criteria | If the dimension value card was updated, indicates the attribute that was used to determine the mapping. The mapping criteria are:
|
BC Dimension value code | ID of the dimension value. |
If not mapped and the dimension is already mapped as another Yokoy cost object, then it is recommended that you rename any unmapped Yokoy cost objects with DO NOT USE (check the Yokoy ID) and deactivate them to prevent confusion.
Re-synchronizing dimensions as tags
The Update Duplicates from Yokoy task report checks the dimension values against the information retrieved from Yokoy, determining whether an account can be mapped against a Yokoy tag using these criteria, in order of preference:
Yokoy ID of the dimension
ERP code (i.e. Business Central account code) and dimension name
ERP code
If Business Central finds a dimension value where the data provided by Yokoy matches the Business Central data in one of these criteria, it updates the dimension card with the corresponding Yokoy tag ID.
When the task has finished, Business Central generates an Excel report containing all Yokoy categories with their mapping status.
More specifically, the report contains this information:
Column | Description |
Yokoy Tag ID | Unique ID of the tag in Yokoy. |
Yokoy Dimension Name | Name of the tag in Yokoy. |
Yokoy ERP code | Code of the tag in Yokoy. This value may or may not match the value in Business Central. |
Yokoy active status | Status of the tag in Yokoy |
Mapped | Indicates whether the Business Central dimension value contains a tag ID. |
Mapping criteria | If the dimension value card was updated, indicates the attribute that was used to determine the mapping. The mapping criteria are:
|
BC Dimension value code | ID of the dimension value. |
GL accounts
GL accounts can be mapped against Yokoyās expense and invoice categories.
A single GL account in Business Central can represent separate entities in Yokoy (invoice category or expense category).
š§ Caution - Posting account type
To successfully post to GL accounts from Yokoy for expenses and invoices, the G/L account definition in Business Central must have Posting account type and be enabled for direct posting.
Creating GL accounts in Yokoy
To create Yokoy categories from Business Central:
Open the Chart of Accounts list.
Select the GL account you want sync.
Click Account > Create/Update GL account in Yokoy.
Select whether you want to sync against a Yokoy expense category, an invoice category, or both by turning on the corresponding toggle switch.
Click OK.
Once created, you can view the Yokoy category ID in the Yokoy Expense category ID or Invoice category ID field.
Invoice and expense categories are separate entities in Yokoy. While the category name may be the same, only expense categories can be used in expenses (and invoice categories in invoices). However, the data can be posted to the same GL account as appropriate.
If you need to make changes to the GL account card, you can update the changes in Yokoy by clicking Create/Update GL Account in Yokoy.
āļø Warning
Yokoy categories cannot be deleted, only deactivated. To deactivate a category from Business Central, click Deactivate GL Account in Yokoy.
Business Central doesnāt set a symbol to represent the icon in Yokoy. However, you can edit the category once created in Yokoy to add a symbol.
Re-synchronizing categories (expense/invoice)
The Update Duplicates from Yokoy task lets you re-synchronize Yokoy categories (expense or invoice) to Business Central GL accounts. This task checks the GL accounts against the information retrieved from Yokoy, determining whether an account can be mapped against a Yokoy category using these criteria, in order of preference:
Yokoy ID of the category
ERP code (i.e. Business Central account code)
If Business Central finds an account where the data provided by Yokoy matches the Business Central data in one of these criteria, it updates the GL account card with the corresponding Yokoy expense and/or invoice category ID.
When the task has finished, Business Central generates an Excel report containing all Yokoy categories with their mapping status. More specifically, the report contains this information:
Column | Description |
Yokoy Category ID | Unique ID of the category in Yokoy. |
Yokoy Category Name | Name of the category in Yokoy. |
ERP code | Code of the category in Yokoy. This value may or may not match the value in Business Central. |
Yokoy active status | Status of the category in Yokoy |
Mapped | Indicates whether the Business Central G/L account contains a Yokoy category ID (expense or invoice, depending on the report run). |
Mapping criteria | If the G/L account card was updated, indicates the attribute that was used to determine the mapping. The mapping criteria are:
|
Business Central G/L Account number | ID of the G/L account. |
Vendors (suppliers)
Business Central vendors are mapped to Yokoy suppliers. You can create a vendor in Business Central and then synchronize that vendor card with Yokoy.
Business Central synchronizes key information fields such as name, address, tax ID, bank information, contact details in Yokoy. The Vendor card no. is stored as Supplier ID (ERP) in Yokoy.
āļø Note
While you can create suppliers in Yokoy directly from Business Central, the default settings to be used for the supplier, such as default category, cost object, payment terms, approver, and coding type, as well as legal entity-level payment terms, need to be set up directly in Yokoy.
Once the Vendor has been created in Yokoy, youāll see the Yokoy ID in the Yokoy Organization Supplier ID and Yokoy Company Supplier ID fields in the Vendor Card.
Yokoy creates suppliers at organization and company level to allow vendors to be used as cross-company.
Creating a vendor
To create a vendor from Business Central:
Open the List of Vendors.
Select an existing Vendor card.
Update the Vendor card with all required data.
Click Vendor > Create/Update Vendor in Yokoy.
š” Tip
You can synchronize several vendors at the same time by selecting Create Vendor in Yokoy from the search. Select a filter to retrieve all matching vendor cards and click OK.
Deactivating a vendor
To deactivate a vendor from Business Central:
Open the Vendors list.
Select an existing Vendor card.
Update the Vendor card with all required data.
Click Vendor > Deactivate Vendor in Yokoy.
If you deactivate a vendor temporarily and want to reactivate it in Yokoy again, click Create/Update Vendor.
āļø Warning
The Vendor cardās Status field is not automatically synced with Yokoy. Deleting a Vendor in Business Central does not delete or change the status of its Yokoy counterpart.
Before deleting a vendor in Business Central, make sure to deactivate the Yokoy Vendor manually by clicking Deactivate Vendor in Yokoy. If the vendor is inactive in one system or the other, invoices cannot processed in Yokoy or cannot be posted in Business Central.
If a Vendor is deleted in Business Central before it is deactivated in Yokoy, all invoice exports in which the Vendor is referenced will result in errors.
Re-synchronizing vendors
If you find that the connection between the Yokoy supplier and Business Central vendor is lost for whatever reason (i.e. the Yokoy Vendor ID does not appear in the Vendor card), you can run a task Update Duplicates from Yokoy to re-synchronize Yokoy suppliers to Business Central vendors.
This task checks the vendors against the information retrieved from Yokoy, determining whether a supplier can be mapped against a Yokoy vendor using these criteria, in order of preference:
Yokoy organization ID and legal entity ID present in the Vendor card
ERP code (i.e. Business Central vendor code)
VAT registration no.
Name and second name
If Business Central finds a vendor where the data provided by Yokoy matches the Business Central data in one of these criteria, it updates the Vendor card with the corresponding Yokoy organization supplier and legal entity supplier IDs.
When the task has finished, Business Central generates an Excel report containing all suppliers with their mapping status. More specifically, the report contains this information:
Column | Description |
Yokoy Organization Supplier ID | Yokoy unique ID to identify the supplier in the organization. Not displayed in Yokoy. |
Yokoy Legal Entity Supplier ID | Yokoy unique ID to identify the supplier in the company. Displayed in Yokoy. |
Yokoy Supplier Name | Full company name of the supplier. Displayed in Yokoy in the supplier master data. |
Yokoy Tax ID | Supplier's legal tax number. Displayed in Yokoy in the supplier master data. |
Yokoy ERP code | Supplier ERP ID. Displayed in Yokoy in the supplier master data. |
Yokoy Active | Whether the supplier is active in Yokoy or not. |
Mapped | Whether the supplier has been linked to a Business Central vendor. Boolean. |
Mapping criteria | Indicates the data used for mapping the Yokoy supplier to the Business Central vendor. It can be:
|
Business Central Vendor No. | Number of the vendor in Business Central |
š” Tip
Next: If you're using Yokoy Invoice, configure Business Central and Yokoy to import transactional data.