Setup an automated data interface between Factorial and Sage

Setup an automated data interface between Factorial and Sage

Summary: This article explains how to set up the automated BrynQ interface that sends employee master data from Factorial to Sage 100 France.

Requirements: - Access to BrynQ with permission to create or edit interfaces. - A Factorial administrator account with access to all employee data. - A Sage 100 France administrator and a payroll user who can review import results. - Access to the Windows server that runs Sage, including access to SQL Server and the Sage PRH file. - The BrynQ Agent installer and the ngrok API key provided by BrynQ support.

Before you begin

This setup has four parts: prepare the Sage import format, test the import manually, install the BrynQ Agent on the Sage server, and complete the interface in BrynQ.

Important preparation notes

  • Save your work in Sage often. Sage does not always autosave reliably.
  • The user who connects Factorial in BrynQ must be allowed to see all employees. If not, BrynQ only syncs the employees that user can access.
  • Keep the ngrok API key, the correct SQL Server name, and the PRH file path ready before you start Part 3.
  • Expect Part 1 to take time. You must add many Sage fields manually and in the correct order.

Part 1: Create the import format in Sage

In this part, you create the Sage import definition that BrynQ will use later for the automated import.

Create the import format

  1. Open Sage.
  2. Open G.A. and select Format d'Importation.
  3. Click Plus (+) to create a new format.
  4. Select Fiche Salarié and confirm with OK.
  5. Give the format a clear name, for example brynq_factorial_import.

Add the required fields

  • Add the fields one by one with Plus (+) inside the import guide.
  • After you add a field, reopen the format if needed and continue until the full list is complete.
  • Set Colonne = Oui for every field.
  • Keep the field order exactly as listed below. If a field is added in the wrong position, delete it and add it again after the correct preceding field.
  • Matricule
  • Emploi occupé - Code *(Colonne can be kept Non)
  • Emploi occupé - Libellé *(Colonne can be kept Non)
  • Sexe
  • Adresse
  • Adresse 2
  • Code postal
  • Commune
  • Téléphone
  • Téléphone 2
  • Nom
  • Nom de famile
  • Prénom
  • Code INSEE Commune
  • Code pays
  • Etablissement payeur
  • Numéro de Sécurité Sociale
  • Date de naissance
  • Situation familiale
  • Nationalité (code)
  • Civilité
  • Date de début de contrat
  • Date de Fin de contrat
  • Nature du contrat
  • Modalité d'exercice du travail
  • Date d'entrée dans la profession
  • Ancienneté dans la profession
  • Date d'embauche société
  • Date entrée établissement
  • Type d'entrée établissement
  • Date d'ancienneté
  • Dernier jour travaillé et payé
  • Motif de départ
  • Date de rupture conventionnelle
  • Date de départ société
  • Date de sortie établissement
  • Salaire de base du salarié
  • Type de salaire
  • Salaire de base annuel
  • Salaire horaire du salarié
  • Horaire hebdomadaire du salarié
  • Horaire de base du salarié
  • Périodicité de paiement
  • Unité du temps de travail
  • Modalité de l'activité
  • Code banque 1
  • Numéro de compte 1
  • Code BIC 1
  • Libellé du compte 1
  • Nom guichet 1
  • Code guichet 1
  • Mode de paiement
  • Quotité de travail mensuel

Save the format

  • Save after every few fields.
  • Save again when the full list is complete.
  • Reopen the format once more and confirm that every field still shows Colonne = Oui.

Part 2: Test the import format in Sage

Before you automate the flow, test the import manually with a sample Excel file.

Run a manual import

  1. Open the employee environment in Sage.
  2. Go to Liste du Personnel.
  3. Click the arrow next to Créer and select Importer.
  4. Choose Excel.
  5. Under Format Personnalisé, click the three dots and select your import format, for example brynq_factorial_import.
  6. When Sage asks whether existing records may be edited, choose Oui.
  7. Click OK and select the employee file to import.
  8. Choose PDF as the error report format.
  9. Save the PDF report and let Sage process the file.

Review the result

  • Open the saved PDF report and check whether Sage reports any errors.
  • If there are errors, correct the file and import again, or share the report with BrynQ support.
  • If the import succeeds, confirm that the employee records appear or update correctly in Liste du Personnel.

Part 3: Install the BrynQ Agent on the Sage server

The BrynQ Agent sends import files to Sage automatically and connects BrynQ with your Sage server.

Prepare the installation

  • Download the latest BrynQ Agent from BrynQ. Go to Organization > Agent and download the installer.
  • Keep the ngrok API key from BrynQ support ready.
  • Make sure you know the SQL Server name and the location of the Sage PRH file.

Install and configure the agent

  1. Start the installer and accept the license agreement.
  2. Enter the ngrok API key.
  3. Enter your BrynQ customer subdomain.
  4. Keep the default agent port unless your IT team needs another port.
  5. Select these three services: File endpoint, SQL endpoint, and Sage 100 France.
  6. Select the highest available ODBC Driver ... for SQL Server.
  7. Enter the SQL Server name.
  8. Choose Windows Authentication unless your setup requires SQL Server Authentication.
  9. Select the database or databases the agent should use.
  10. Select the Sage PRH file for each company.
  11. If you want to upload payslips later, choose the payslip export folder.
  12. Create a dedicated Sage service user, activate its token, generate the token, and paste that token into the installer.
  13. In the installer, open ConnectImport and configure the import directory exactly as shown on screen.
  14. Save the ConnectImport configuration, copy the configuration code, and paste it back into the installer.
  15. Finish the installation.

Verify the agent

  • On the Sage server, open a browser and go to http://localhost:7071.
  • Confirm that the BrynQ Agent dashboard opens.
  • Check that the SQL connection and Sage 100 France settings look correct.

Part 4: Create the interface in BrynQ

After Sage and the BrynQ Agent are ready, finish the interface in BrynQ.

Create the interface from the template

  1. Open BrynQ and go to Interfaces.
  2. Click New interface.
  3. Choose Use our templates.
  4. Search for Sage.
  5. Select Factorial Sage 100 France Master Data.
  6. Click Use template.

Complete the Configuration and Scenarios tabs

  • Open the Configuration tab.
  • Set the company payment frequency.
  • Optionally enter a few employee IDs for a controlled test run.
  • Open the Scenarios tab and review every item marked with a question mark.
  • Complete the legal entity mapping carefully.
  • Find the legal entity ID and name in Factorial.
  • Find the matching Raison Sociale in the Sage PRH file.
  • Enter the Sage dossier name in all capitals, exactly as Sage uses it.
  • Confirm each completed mapping and save it.

Add the authorizations

  • Open the Authorization tab.
  • Add the Factorial authorization first.
  • Click Add authorization, enter a recognizable name, and use Connect to app to sign in to Factorial.
  • Approve the requested access and save the connection.
  • Add the Sage authorization next.
  • Enter the BrynQ Agent URL in this format: https://[your-customer-name]-brynq.ngrok.app
  • Save the Sage connection and run Test to confirm that BrynQ can reach the agent.

Publish and schedule the interface

  • Publish the interface when the required tabs are complete.
  • Open the Schedule tab.
  • Choose the run frequency.
  • Set the start time and timezone.
  • Enable the schedule and save it.
  • If BrynQ says the schedule cannot be activated, return to Authorization and complete the missing connection first.

Verify the first automated run

  • Wait for the first scheduled run or start a controlled test run.
  • On the Sage server, confirm that a new Excel import file is created in the configured import folder.
  • In Sage, confirm that the employee records were created or updated correctly.

More information

If an app used by the template is still inactive, activate it first in Settings > Interfaces > Apps.

If you need to review or remove an authorization later, open Settings > Interfaces > Connections.

If the manual Sage import works but the automated run does not, first verify the BrynQ Agent at http://localhost:7071 and then test the Sage authorization again from the Authorization tab in BrynQ.

    • Related Articles

    • Prepare Apps before Creating an Interface

      Summary: Prepare the source and target apps you need before you create an interface in BrynQ. Requirements: - You need access to Apps in BrynQ. - Your plan must have space for more active apps if you need to activate a new app. Prepare Apps Before ...
    • Manage App Connections

      Summary: View, search, and remove app connections that are used by interfaces in BrynQ. Requirements: - You need access to Interfaces to open the Connections page. - You can only see connections that your access level allows. - You can delete a ...
    • Apps in BrynQ

      Apps in BrynQ An app is another system BrynQ can connect to, for example HR or Payroll systems. Activate it, then connect your access to that system in the interface Using apps - quick guide activate app: so BrynQ can use it in your setup Connect ...
    • Integration Between AFAS and Entra ID (Azure AD)

      Integration Between AFAS and Entra ID (Azure AD) Our interface between AFAS Profit and Microsoft Entra ID keeps your employee data consistent and secure — automatically. When someone joins, leaves, or changes roles in AFAS, the interface ensures that ...
    • Integration Between AFAS and Entra ID (Azure AD)

      Integration Between AFAS and Entra ID (Azure AD) Our interface between AFAS Profit and Microsoft Entra ID keeps your employee data consistent and secure — automatically. When someone joins, leaves, or changes roles in AFAS, the interface ensures that ...