Skip to content

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
The ports of “Factorial”: 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 Factorial connection.Factorialfactorial.apimainmainerror · only with “Follow the Error output”Connection: Factorial
The ports of “Factorial”: what comes in on the left, what goes out on the right

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 email
    • whoIsAway — Who is away on a date
    • employeeLeaves — An employee’s absences over a period
    • createLeave — 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 findEmployee, 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: action is one of whoIsAway, 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: action is one of employeeLeaves, 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: action is createLeave

description ​

Comment

  • Type: Long text (text)
  • Required: No
  • Default: "" (empty)
  • 2000 characters at most
  • Shown when: action is createLeave
  • 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.

Loop & Roll — the workflow builder for email.