Skip to content

Lucca ​

Finds a Lucca employee by email, tells who is away on a date, lists a person’s absences and upcoming departures.

The Lucca node answers the directory and absence questions that decide routing: who is this employee, are they away, who is away today in their department, who leaves this month.

It works with a Lucca connection. See Lucca.

At a glance ​

  • Type: lucca.api · version 1
  • Category: Data
  • Kind: Step — one stage of a run
  • Effect: No external effect (none) — nothing is written outside Loop & Roll; safe to replay
  • Needs a carrier email: No
  • Connection: Lucca
  • Inputs: main
  • Outputs: main
The ports of “Lucca”: 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 Lucca connection.Luccalucca.apimainmainerror · only with “Follow the Error output”Connection: Lucca
The ports of “Lucca”: what comes in on the left, what goes out on the right

Connection ​

This node needs a Lucca connection.

Parameters ​

connection ​

Lucca connection — The Lucca 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: findUser
  • Options:
    • findUser — Find an employee by email
    • whoIsAway — Who is away on a date
    • userAbsences — An employee’s absences over a period
    • departures — Departures over a period

email ​

Employee email address

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.to[0].email }}
  • Shown when: action is one of findUser, userAbsences
  • Expressions: {{ }} accepted

department ​

Department — The department whose absent people you want. Otherwise, the employee list below.

  • Type: Remote resource (resourceLocator)
  • Required: No
  • Ways to choose: pick from a list, type an ID (lucca.department)
  • Listed with the connection in: connection
  • Shown when: action is whoIsAway

userIds ​

Employees (Lucca identifiers) — Comma-separated. Used when no department is chosen.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 2000 characters at most
  • Shown when: action is whoIsAway
  • Expressions: {{ }} accepted

date ​

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

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 10 characters at most
  • Shown when: action is whoIsAway
  • 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 userAbsences, departures
  • Expressions: {{ }} accepted

to ​

To (YYYY-MM-DD) — Empty: thirty days after the start.

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

Outputs ​

  • main — Taken once the call to Lucca succeeds. An error response from Lucca 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>.user }} — { id, name, email, department, managerName, managerEmail, contractEnd }. Find: the employee.
  • {{ data.<step>.away }} — { userId, name, email, managerEmail, morning, afternoon, leaveType }[]. Who is away: the people away that day.
  • {{ data.<step>.emails }} — string[]. Who is away: their addresses.
  • {{ data.<step>.awayNow }} — boolean. An employee’s absences: away today.
  • {{ 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.