---
title: "AFAS Connectors to retrieve Objects and fields of AFAS"
canonical: "https://help.fieldbuddy.com/space/FBDOCS/2078310726/AFAS%20Connectors%20to%20retrieve%20Objects%20and%20fields%20of%20AFAS"
format: markdown
---
Connecting with an AFAS environment has a slightly different approach than for example Exact Online.

Before you can connect with the environment a few things need to be done in the AFAS environment. 

- Make sure there is an App connector that you can connect to.
- Make sure the Get connectors and Update connectors are configured propperly so that the right AFAS fields are available for the Connection with Salesforce.
- Make sure the Get connectors and Update connectors that you want to use are added to the App Connector.

**App Connectors**

You can get your Client Secret and Client Id by making an App Connector. In the App Connector you define which Update Connectors and Get Connectors you want to use for you integration.

[https://help.afas.nl/help/NL/SE/App_Apps_Custom_Add.htm](https://help.afas.nl/help/NL/SE/App_Apps_Custom_Add.htm) 

In the link above you can find how to make an App Connector and add Get Connectors and Update Connectors to the App Connector.

![image](media://6c101e08-bb74-44fc-897f-a185ee317230)

![image](media://7912300e-f796-42c4-b13e-505075db2aec)

**Get Connectors**

Get Connectors are used for the inbound sync with Salesforce. The API tool can be used to retrieve the available Getconnectors.

`https://<afas id>.rest.afas.online/profitrestservices/metainfo`

In the link below you find information about the Get Connectors. It will tell you where you can find the Standard Getconnectors and how to add new ones. 

[https://help.afas.nl/help/NL/SE/App_Cnr_Rest_GET.htm](https://help.afas.nl/help/NL/SE/App_Cnr_Rest_GET.htm) 

**Make a new GetConnector**  
Go to: Algemeen / Beheer / Gegevensverzameling.  
This will show a list of available data collection. If the column **GetConnector** is selected, you can use it to build your GetConnector  


![image](media://f39a9361-2408-4964-8f94-a8ea2667060b)

Add a new GetConnector

1. Go to: Algemeen / Uitvoer / Beheer / GetConnector.
2. Click: **Nieuw**
3. Select wether you want to base the GetConnector on a data collection or another GetConnector.
4. Select the data collection or GetConnector.

5. Click **Volgende**
6. Enter the description
7. Click **Volgende**
8. Enter the external name that you want to use to call the GetConnector
9. Click on Gegevens
10. Confirm the save if Profit asks for it
11. Now you can adjust the fields that are added to the data collection, apply a filter or check the results.  
      The fieldnames in the column Veld are used in the results of the GetConnector. This can be changed to match the fields in Salesforce.


**Update Connectors**

Update Connectors are used for the Outbound sync with Salesforce, and can be configured in similar way as getConnetors (UpdateConnectoren)

[https://help.afas.nl/help/NL/SE/App_Cnr_Rest_Update.htm?](https://help.afas.nl/help/NL/SE/App_Cnr_Rest_Update.htm?)