SQL Driver for AFAS Online
AFAS Online is online accounting, ERP and payrolling software for Dutch companies. AFAS Online has approximately 15.000 customers, including most of the top 30 accounting firms in the Netherlands. The AFAS Online driver covers 193 tables and 2297 columns.
## AFAS Online Clients
Invantive UniversalSQL is available on many user interfaces ("clients" in traditional server-client paradigma). All Invantive UniversalSQL statements can be exchanged with a close to 100% compatibility across all clients and operating systems (Windows, MacOS, Linux, iOS, Android).
The clients include Microsoft Excel, Microsoft Power BI, Microsoft Power Query, Microsoft Word and Microsoft Outlook. Web-based clients include Invantive Cloud, Invantive Bridge Online as OData proxy, Invantive App Online for interactive apps, Online SQL Editor for query execution and Invantive Data Access Point as extended proxy.
The [[https://cloud.invantive.com/afas|AFAS Online Power BI connector]] is based on the Invantive UniversalSQL driver for AFAS Online, completed by a high-performance OData connector which works straight on Power BI without any add-on. The OData protocol is always version 4, independent whether the backing platform uses OData, SOAP or another protocol.
For technical users there are command-line editions of Invantive Data Hub running on iOS, Android, Windows, MacOS and Linux. Invantive Data Hub is also often used for enterprise server applications such as ETL. High-volume replication of data taken from the AFAS Online API into traditional databases such as SQL Server (on-premises and Azure), MySQL, PostgreSQL and Oracle is possible using [[https://cloud.invantive.com/data-replicator/|Invantive Data Replicator]]. Invantive Data Replicator automatically creates and maintains AFAS Online datawarehouses, possibly in combination with data from over 75 other (cloud) platforms. Invantive Data Replicator supports data volumes up to over 1 TB and over 5.000 companies. The on-premise edition of Invantive Bridge offers an AFAS Online ADO.net provider.
Finally, online web apps can be build for AFAS Online using App Online of [[https://cloud.invantive.com/afas|Invantive Cloud]].
Monitor API Calls
When a query or DML-statement has been executed on Invantive UniversalSQL a developer can evaluate the actual calls made to AFAS Online using a query on sessionios@DataDictionary. As an alternative, extensive request and response logging can be enabled by setting log-native-calls-to-disk to true. In the %USERPROFILE%\Invantive\NativeLog folder Invantive UniversalSQL will create log files per AFAS Online request and response.
## Specifications
The SQL driver for AFAS Online does not support partitioning. Define one data container in a database for each company in AFAS Online to enable parallel access for data from multiple companies. An introduction into the concepts of Invantive UniversalSQL such as databases, data containers and partitioning can be found in the [[Grammar|Invantive UniversalSQL grammar]].
The configuration can be changed using various attributes from the database definition, on log on and during use. A full list of configuration options is listed in the [[Attributes|driver attributes]].
The catalog name is used to compose the full qualified name of an object like a table or view. The schema name is used to compose the full qualified name of an object like a table or view. On AFAS Online the comparison of two texts is case sensitive by default.
The driver has the following properties:
- Driver code for use in settings.xml: `AfasOnline`
- Recommended alias: `aon`
- More technical documentation as provided by the supplier of AFAS Online on the native connection used can be found at [[https://static-kb.afas.nl/datafiles/help/2_9_7/SE/NL/index.htm#App_Conect.htm|Technical Documentation]].
Alternative Name
AFAS Online is also popular by the former name AFAS Profit. In most documentation, the term 'AFAS Profit' can be read as the new name 'AFAS Online'.
Authentication
Authentication can be done using using a token and subscription number. The token contains both user identification, connector identification as well as environment associated with the subscription.
An API token for cobination of user, connector and environment can be generated from the AFAS Online menu: 'Administration' > 'App Connector' > 'app name' > 'User Tokens', as described on https://static-kb.afas.nl/datafiles/help/2_9_7/SE/NL/index.htm#App_Cnr_Rest_Appcon.htm.
## Objects
Per object category a list is available:
- [[Tables]]
- [[Procedures]]