English
Factorial
Finds a Factorial employee by email, tells who is away on a date, lists a person’s absences and records one.
The Factorial node answers absence questions — who is away, when, why — and records an absence requested by email.
It works with a Factorial connection. See Factorial.
At a glance
- Type:
factorial.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: Factorial
- Inputs:
main - Outputs:
main
Connection
This node needs a Factorial connection.
Parameters
connection
Factorial connection — The Factorial 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:
findEmployee - Options:
findEmployee— Find an employee by emailwhoIsAway— Who is away on a dateemployeeLeaves— An employee’s absences over a periodcreateLeave— 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 offindEmployee,employeeLeaves,createLeave - Expressions:
{{ }}accepted
from
From (YYYY-MM-DD) — Empty: today. “Who is away”: the date looked up.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 10 characters at most
- Shown when:
actionis one ofwhoIsAway,employeeLeaves,createLeave - Expressions:
{{ }}accepted
to
To (YYYY-MM-DD) — Empty: thirty days after the start (period), or the same day (recorded absence).
- Type: Text (
string) - Required: No
- Default:
""(empty) - 10 characters at most
- Shown when:
actionis one ofemployeeLeaves,createLeave - Expressions:
{{ }}accepted
leaveType
Leave type — Empty: Factorial’s default type.
- Type: Remote resource (
resourceLocator) - Required: No
- Ways to choose: pick from a list, type an ID (
factorial.leaveType) - Listed with the connection in:
connection - Shown when:
actioniscreateLeave
description
Comment
- Type: Long text (
text) - Required: No
- Default:
""(empty) - 2000 characters at most
- Shown when:
actioniscreateLeave - Expressions:
{{ }}accepted
Outputs
main— Taken once the call to Factorial succeeds. An error response from Factorial 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>.employee }}—{ id, name, email, managerId, active }. The employee found.{{ data.<step>.away }}—{ employeeName, startOn, finishOn, leaveType, pending }[]. Who is away: that day’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.