Functions

add-entry

fn (list: Str, parent: Map): Map
fn (list: Str, parent: Map, entry-values: Map): Map
fn (list: Str, parent: Map, entry-values: Map, opts: Map): Map

POST /lists/{list}/entries - Add a record to a list. entry-values (3-arity) sets list-specific attributes (e.g. a pipeline stage).

Example

::attio::lists/add-entry("sales-pipeline", {
  parent_object: "companies",
  parent_record_id: "7f4e2a10-3b9c-4d2a-8f1e-6a5c9d0b1e23"
})

delete-entry

fn (list: Str, entry-id: Str): Any
fn (list: Str, entry-id: Str, opts: Map): Any

DELETE /lists/{list}/entries/{id} - Remove an entry from a list (the parent record is untouched).

Example

::attio::lists/delete-entry("sales-pipeline", "c2d8e4f1-5a6b-47c9-b0d3-1e2f3a4b5c6d")

list-lists

fn (): Map
fn (opts: Map): Map

GET /lists - The workspace's lists (pipelines, curated collections).

Example

lists ::attio::lists/list-lists()
map(lists.data, %.api_slug)

query-entries

fn (list: Str): Map
fn (list: Str, options: Map): Map
fn (list: Str, options: Map, opts: Map): Map

POST /lists/{list}/entries/query - Query a list's entries (filter/sorts/limit/offset like record queries).

Example

page ::attio::lists/query-entries("sales-pipeline", {limit: 50})
page.data