English
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
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 emaillistAbsences— Absences over a periodcollaboratorAbsences— An employee’s absencescreateAbsence— Record an absence
email
Employee email address
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 320 characters at most
- Example:
{{ email.from.email }} - Shown when:
actionis one offindCollaborator,collaboratorAbsences,createAbsence - Expressions:
{{ }}accepted
from
From (YYYY-MM-DD) — Empty: today.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 10 characters at most
- Shown when:
actionis one oflistAbsences,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:
actionis one oflistAbsences,collaboratorAbsences,createAbsence - Expressions:
{{ }}accepted
absenceType
Absence type
- Type: One choice (
options) - Required: No
- Default:
fr_conges_payes - Options:
fr_conges_payes— Paid leavefr_rtt— Reduced working timefr_teletravail— Remote workfr_maladie_ordinaire— Sick leave
- Shown when:
actioniscreateAbsence
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.