Currency exchange rate - AFAS - Connect with AFAS manual
This guide explains how to set up an App Connector in AFAS to connect with Currency exchange rate. AFAS uses a unique connector system, so proper setup is essential for the integration to work.
1. Access AFAS Environment 🔑
Open Citrix Workspace (required for remote access).
Log in to AFAS: https://login.afasonline.com/
2. Navigate to App Connector Section 📂
Go to: General
>Management>App Connector
3. Create a New App Connector 🛠️
Click New.
Fill in the following details:
Description: Enter a clear name (e.g., "Databrydge - Currency exchange rate connection").
Generate token automatically: Enable this option.
Create a new user group: Select this to assign permissions.
Create a new user: Assign a dedicated user for the connector.
Click Next.
Adding UpdateConnectors 🔗
Adding UpdateConnectors 📤
Click New under the UpdateConnectors tab.
Select the appropriate connectors from the list.
Click Next.
✅ Required UpdateConnector (Modify Data)
KnCurrencyRates: Saves currency rates and projects.
Prerequisite – Create Missing Currencies
Before running the Currency exchange rate to AFAS integration, ensure that all currencies to be synchronized already exist in AFAS.
If one or more currencies are missing, create them by following the steps below:
Steps
Navigate to General > Configuration > Country Settings > Currency.
Click New.
In the New Currency window:
Select the currency to be created.
Enter an initial value for Exchange Rate.
Click in Finish to save
Note: The initial Exchange Rate is only used to create the first exchange rate record, which is automatically created with the effective date 01/01/2010. This value can be updated later by the integration.
Example
Generating and Storing the API Token 🔐
Once the assistant is completed, AFAS will generate an API token.
⚠️ Important: This token is displayed only once. Copy and store it securely.
Configuring Permissions & Authorizations🔒
To ensure the App Connector only accesses necessary data, follow these steps:
1. Access the Authorization Tool
Go to: General
>Management>Authorization Tool
2. Assign User to the Correct Group
In the User Maintenance tab, select the user you created for the connector.
Switch to the Member Group tab.
Click New and add the ADM record.
Testing the Connection 🧪
You can test the connection using tools like Postman, a script, or the AFAS Connection Test site.
Visit the AFAS Connection Test site:
AFAS Connection TestEnter your AFAS Online member number (your ID).
Select the appropriate environment type.
Enter the token you saved when you created the connection.
Press “Login with token”
Verify that the App Connector can:
✅ Read the necessary data.
✅ Post transactions to AFAS for the selected administration.
This is done by checking if the configured UpdateConnector is in the list of available connectors. If any issues arise, ensure the correct connectors are assigned and that permissions are configured properly.
Final Checks ✅
Ensure all required GetConnectors and UpdateConnectors are included.
Validate that the connector works correctly by testing with real data.