AFAS Profit

Modified on Wed, 18 Mar at 1:37 PM

Overview

The AFAS node allows you to connect Flowmage with AFAS Profit and perform operations such as retrieving, creating, updating, or deleting data.

This node is commonly used for HR, finance, and ERP automations where AFAS is the source or destination of data.


When to Use This Node

Use the AFAS node when you want to:

  • Retrieve data from AFAS (e.g. employees, contracts, invoices)

  • Create new records in AFAS

  • Update existing records (e.g. block employees, update fields)

  • Delete records from AFAS

  • Automate HR or financial processes


Configuration

Connection Configuration

Environment Type

Select the AFAS environment you want to connect to.

  • Production (rest.afas.online) → Live environment

  • (Other environments may be available depending on setup)


Environment Code

Your AFAS environment ID.

Example:

12345

You can find this in your AFAS environment URL or configuration.


AFAS Token

Your AFAS authentication token (XML format).

Example:

<token><version>1</version><data>...</data></token>

? This token is required to authenticate API requests.


Test Connection

Click “Test Connection” to verify your setup.

If successful, you’ll see:

Connection successful with application: [name]

Operation Configuration

Operation Type

Choose what you want to do:

  • GET → Retrieve data from AFAS

  • POST → Create new records

  • PUT → Update existing records

  • DELETE → Delete records


GET Configuration

GET Connector

Select the AFAS GetConnector you want to use.

Example:

CS_Medewerkers

Connector Fields

Shows available fields returned by the connector, including:

  • Label

  • ID

  • Type


Skip Records

Number of records to skip (pagination).

Example:

0

Take Records

Number of records to retrieve.

Example:

1

PUT / POST Configuration

Connector

Select the UpdateConnector or InsertConnector.

Example:

Medewerker (KnEmployee)

Payload (JSON)

Define the data you want to send to AFAS.

Example:

{ "AfasEmployee": { "Element": { "Fields": { "EmId": "@loop.item.Medewerker@", "Bl": true } } } }

? You can use Flowmage variables inside your payload.


Error Handling

Continue on Error

If enabled, the flow will continue even if this node fails.

Use this when:

  • You don’t want the entire flow to stop

  • You handle errors in later steps


How It Works

  1. Flow starts

  2. AFAS node authenticates using your token

  3. Selected operation is executed (GET/POST/PUT/DELETE)

  4. Data is returned (GET) or processed (POST/PUT/DELETE)

  5. Output becomes available for the next steps


Output / Variables

The output of this node depends on the operation:

GET

Returns data from AFAS.

Example usage:

@afasdata.rows[0].Medewerker@ @afasdata.rows[0].EmploymentEnd@

? afasdata = your Output ID


POST / PUT / DELETE

Returns status or response from AFAS.

Example:

@afasdata.status@ @afasdata.message@

Common Mistakes

❌ Invalid AFAS Token

Authentication will fail.

✅ Make sure your token is valid and not expired


❌ Wrong Connector

Using the wrong GetConnector or UpdateConnector.

✅ Double-check connector names in AFAS


❌ Incorrect Payload Structure

AFAS expects very specific JSON/XML structures.

✅ Use AFAS documentation or working examples


❌ Wrong Field Names

AFAS uses internal field IDs (e.g. EmId, Bl)

✅ Always match exact field names


❌ Pagination Issues

Not setting Take Records properly.

✅ Increase value if you expect multiple results


Pro Tips

  • Use small test queries first (Take Records = 1)

  • Name your node clearly (e.g. afasEmployees, afasUpdateUser)

  • Always test your connection before running flows

  • Combine with loops to process multiple AFAS records

  • Use conditions after GET to filter data


Summary

The AFAS node allows you to fully integrate Flowmage with AFAS Profit by retrieving and modifying data.

With the right configuration, you can automate complex HR and financial workflows with ease.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article