
Once the GetConnector has been loaded, make sure to add a built-in filter in AFAS so that only the relevant employees are imported into Spend Cloud. On this page on the AFAS website, you can read how to set up this filter. Use the filter to ensure that only employees are included who have:
An AFAS username
An email address
A last name
No end date, or an end date in the future
Make sure that employees with an end date in the past are not included.
In addition, configure the filter so that employees who accidentally appear multiple times are included only once.
After the GetConnector has been loaded and the filter has been set up correctly, you need to create an import definition. Go to Application Management / General / Import Definitions, click Add, and give it a logical name, for example “Employees from AFAS”.
For Input type, choose AFAS GetConnector. At the bottom, enter the name of the connector: ProActive_employees. For Import type, select Employees.
For “Deactivate before import”, choose “Yes”. All employee accounts that are not included in the import will be set to inactive. This way, the employee list in Spend Cloud remains up to date.
Click Save.
Now, in the overview, click the gear icons next to the import definition to further configure the import:
Importing Roles
It is also possible to import roles from AFAS into Spend Cloud using the web service. When doing this, it will still be possible to manually add roles.
Creating a Connector in AFAS
To import roles, a Connector must be created in AFAS containing three values:
the name of the organizational unit
the username of the employee
the code of the job profile
The first step in configuring employee roles in Spend Cloud is to determine whether it is feasible to standardize the roles using job profiles.
Notes
The data above must exactly match how it is registered in Spend Cloud. For example, the job profile code in Spend Cloud must match the code received from AFAS.
AFAS provides official documentation describing how to use and configure connectors and app connectors, including background information on linking external software via Get/Update Connectors. Since creating the connector must be done within AFAS, we do not go into much detail about this in our documentation. For assistance, we recommend contacting AFAS or the person in your organization responsible for managing AFAS.
Import Definition in Spend Cloud
Once the connector has been created in AFAS, you can create an import definition in Spend Cloud. In Application Management / General / Import Definitions, click Add and give it a logical name, for example, "Roles from AFAS." For Input Type, select AFAS GetConnector. At the bottom, enter the name of the Connector as created in AFAS. For Import Type, choose Roles based on Job Profile. Click Save.
Next, click the gear icon next to the import definition to further define the import:
Select the correct values and click 'Save.' You can now run the first import. Check whether the roles appear correctly in Spend Cloud.

Error Messages When Importing Roles
Even if the import works, you may still encounter an error message during the import. Here we explain two possible messages.
"Action Messages: 'Some required fields are missing on certain rows. The rows with errors have been ignored.'"
Below this message, you will see the values involved. An example is when a value does not exist or appears more than once. In such cases, Spend Cloud does not know which value to use. For instance, if AFAS provides an organizational unit that does not exist in Spend Cloud, the software will not know where to "assign" the role.
"Action Messages: 'Some required fields are missing on certain rows. The rows with errors have been ignored.'"
In this case, the employee already has a conflicting role on the organizational unit for which the new role is being provided. For this reason, the new role cannot be imported.