LLW CRM icon

LLW CRM

Interact with LLW CRM API (Concord CRM)

Role → Get All

AI-generated

Summary

Retrieves roles from the LLW CRM (Concord CRM) API via GET /roles, either all of them (auto-paginated) or up to a set limit, with optional field selection and sorting.

Inputs

  • returnAll — If true, pages through /roles until no more pages remain and returns every role. Default false.
  • limit — Max roles to return when Return All is off (1–250, default 50). Sent as per_page on a single request.
  • additionalFields — Optional collection passed through as query-string parameters: Fields (comma-separated list of fields to return), Sort By (order_by), and Sort Direction (order_dir: asc or desc, default asc).

Output shape

One n8n output item per role, each holding the role record as returned by the API, paired to the input item that produced it.

Runs once per input item, so multiple input items repeat the request and return the roles again for each. With Return All off, only the first page is fetched (per_page = limit). With Return All on, the page query parameter is incremented and per_page is not sent. If Continue On Fail is enabled, errors are returned as an item with an error message instead of stopping the workflow. Authentication uses the API token and domain from the llwCrmApi credential.

Examples

Example 1: List every role to map role names to IDs

Resource: Role, Operation: Get All, Return All: true

Example 2: Fetch the 10 most recently named roles in descending order

Return All: false, Limit: 10, Additional Fields: Sort By = name, Sort Direction = Descending

Example 3: Return only selected role fields

Return All: true, Additional Fields: Fields = id,name

Links

Discussion