One of the main limitations of Kelio's Web Services is the amount of data that can be extracted in one go. If a SOAP request takes longer than 5 minutes to execute, an error will occur. It is therefore necessary to limit the amount of data to be extracted in one go.
Batch processing involves first exporting all the employees to be processed using the exportLightEmployeesList method. Once the list of the light employees obtained, you can create batches of several employees (e.g. 100 employees). It may be necessary to vary this number of employees depending on the customer's server or the amount of data to be exported.
Once the various batches have been formed, a SOAP request needs to be made for each batch to obtain all the data. The attribute employeeKey and/or employeeIdentificationNumber can be used to identify the employees whose data are to be extracted. We recommend the use of employeeKey to identify the employees. This is the technical identifier of the employees in the database and it is always unique.
In this way, it is possible to ensure that data is recovered correctly, even if the volume of data to be exported changes in the future.
This breakdown can be used in all methods for identifying a single employee with input data.