Skip to content

PayFit ​

Finds a PayFit employee by email, lists absences over a period or for a person, records an absence.

The PayFit node finds an employee and their contract, lists approved or pending absences, and records a full-day absence.

It works with a PayFit connection. See PayFit.

At a glance ​

  • Type: payfit.api · version 1
  • Category: Data
  • Kind: Step — one stage of a run
  • Effect: Writes outside (external_write) — writes outside Loop & Roll; described instead of performed during a test run
  • Needs a carrier email: No
  • Connection: PayFit
  • Inputs: main
  • Outputs: main
The ports of “PayFit”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a PayFit connection.PayFitpayfit.apimainmainerror · only with “Follow the Error output”Connection: PayFit
The ports of “PayFit”: what comes in on the left, what goes out on the right

Connection ​

This node needs a PayFit connection.

Parameters ​

connection ​

PayFit connection — The PayFit connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

action ​

Action

  • Type: One choice (options)
  • Required: Yes
  • Default: findCollaborator
  • Options:
    • findCollaborator — Find an employee by email
    • listAbsences — Absences over a period
    • collaboratorAbsences — An employee’s absences
    • createAbsence — Record an absence

email ​

Employee email address

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.from.email }}
  • Shown when: action is one of findCollaborator, collaboratorAbsences, createAbsence
  • Expressions: {{ }} accepted

from ​

From (YYYY-MM-DD) — Empty: today.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 10 characters at most
  • Shown when: action is one of listAbsences, collaboratorAbsences, createAbsence
  • Expressions: {{ }} accepted

to ​

To (YYYY-MM-DD) — Empty: the same day (recorded absence) or thirty days later (period).

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 10 characters at most
  • Shown when: action is one of listAbsences, collaboratorAbsences, createAbsence
  • Expressions: {{ }} accepted

absenceType ​

Absence type

  • Type: One choice (options)
  • Required: No
  • Default: fr_conges_payes
  • Options:
    • fr_conges_payes — Paid leave
    • fr_rtt — Reduced working time
    • fr_teletravail — Remote work
    • fr_maladie_ordinaire — Sick leave
  • Shown when: action is createAbsence

Outputs ​

  • main — Taken once the call to PayFit succeeds. An error response from PayFit fails the step instead.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.<step>.collaborator }} — { id, firstName, lastName, email, team, contracts }. The employee found.
  • {{ data.<step>.absences }} — { id, contractId, type, status, startDate, endDate }[]. The period’s absences.
  • {{ data.<step>.found }} — boolean. false when the address matches nobody.
  • {{ data.<step>.simulated }} — boolean. true when the write was described instead of performed (test run).
  • {{ data.<step>.summary }} — string. The one-line summary in the member’s language.

Loop & Roll — the workflow builder for email.