RD Station CRM icon

RD Station CRM

Integração com RD Station CRM API v2 - API v2 completa

Actions64

Negociação → Listar

AI-generated

Summary

Lists deals from RD Station CRM API v2 (GET /crm/v2/deals), with optional RDQL filters, sorting, and either manual pagination or automatic fetching of all pages. Each deal is returned as its own output item.

Inputs

  • Filtros (filters) — Repeatable conditions, each with a Campo (id, name, rating, status, closed_at, created_at, updated_at, expected_close_date, organization_id, contact_id, stage_id, lost_reason_id, campaign_id, owner_id, pipeline_id, product_ids, has:product, or custom_field), an Operador (eq, neq, match, gt, lt, gte, lte, in, nin) and a Valor. Conditions are joined with spaces into a single RDQL filter query string. Conditions with an empty value are skipped. For IN/NIN, separate values with commas. Dates use YYYY-MM-DD or "YYYY-MM-DD HH:MM:SS". Values containing spaces are auto-quoted for eq/neq.
  • Slug do Campo Personalizado — Shown when Campo is custom_field. The slug is sent as @slug in the filter.
  • Ordenar por (sortField) — Sort by name, rating, created_at, updated_at or closed_at. Default is none, which sends no sort.
  • Direção da Ordenação (sortDirection) — asc or desc (default desc). Only applied when a sort field is chosen.
  • Buscar Todos os Registros (fetchAll) — When true, pages through results at 100 per page until there is no next link. A safety cap of 1000 pages applies.
  • Limite Máximo (maxResults) — Shown with fetchAll. Truncates the results to this many records. 0 means no limit.
  • Paginação (pagination) — Shown when fetchAll is off. Sets the page number (default 1) and page size (default 20, max 100).

Output shape

One output item per deal, as returned in the API's data array. Items are paired to the input item that triggered them.

Without fetchAll, only the requested page is returned. If the response has no data, the raw response is used. With Continue On Fail enabled, a failed item yields a single item containing {error: message}. The filter string is appended to the URL unencoded.

Examples

Example 1: Get all ongoing deals in a given pipeline, newest first

Filters: status eq ongoing; pipeline_id eq . Sort by created_at, desc. Fetch All on.

Example 2: Fetch the first 50 deals closed after a date

Filter: closed_at gt 2025-01-01. Fetch All off. Pagination: page 1, size 50.

Example 3: Find deals by a custom field value

Filter: Campo = custom_field, slug erp_id, operator eq, value 12345.

Links

Discussion