CRM · Чтение
Лиды · Активность
lead_activity
Попробуйте три запроса
Получить данные
- Вы указываетеId объекта
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Лиды / Активность» выполни чтение по выбранной записи (ID объекта). Выведи кратко: ID объекта, версия записи.
- resourceId
- Id объекта
- revision
- Версия записи
- activity
- Поле ответа
Следующая страница
- Вы указываетеПредыдущий ответ
- ПомощникПродолжение
- Вы получаетеСледующая страница
Запрос в чат
Продолжи «Лиды / Активность» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
Страница 1До 3 строк
Страница 2Продолжение
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Лиды / Активность» объясни ID объекта, версия записи. Отметь отсутствующие значения.
- resourceId
- Id объекта
- revision
- Версия записи
- activity
- Поле ответа
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. Прочитайте актуальную версию записи перед подготовкой запроса. При постраничном чтении используйте продолжение ответа с теми же фильтрами.
Описание разработчика
Page native lead status, history or notes with current company/location authorization. Continue with the returned revision; concurrent edits conflict instead of silently mixing pages.
Параметры запроса
- resourceId
- Canonical lead ID in the connected company. обязательно по схеме · string
- kind
- Native embedded activity list to page. No events are synthesized. обязательно по схеме · string · варианты status, history, notes
- offset
- Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 2000
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 30
- expectedRevision
- Версия, прочитанная перед изменением. необязательно · string
Что вернёт команда
- resourceId
- Canonical lead ID in the connected company. обязательно по схеме · string
- revision
- Exact Firestore update revision from crm_lead_edit_context. Refresh after any change. обязательно по схеме · string
- activity
- Exactly one selected native activity array. обязательно по схеме · object
- nextOffset
- Смещение для получения следующей страницы. обязательно по схеме · integer / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"resourceId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Canonical lead ID in the connected company."
},
"kind": {
"type": "string",
"enum": [
"status",
"history",
"notes"
],
"description": "Native embedded activity list to page. No events are synthesized."
},
"offset": {
"default": 0,
"description": "Zero-based offset in the native array.",
"type": "integer",
"minimum": 0,
"maximum": 2000
},
"limit": {
"default": 20,
"description": "Maximum activity entries.",
"type": "integer",
"minimum": 1,
"maximum": 30
},
"expectedRevision": {
"description": "Use the previous page revision to detect concurrent changes while paging.",
"type": "string",
"pattern": "^\\d{1,12}:\\d{1,9}$"
}
},
"required": [
"resourceId",
"kind",
"offset",
"limit"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"resourceId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Canonical lead ID in the connected company."
},
"revision": {
"type": "string",
"pattern": "^\\d{1,12}:\\d{1,9}$",
"description": "Exact Firestore update revision from crm_lead_edit_context. Refresh after any change."
},
"activity": {
"type": "object",
"properties": {
"status": {
"description": "Native Leads activity.status. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"Number": {
"description": "Native Status_json.Number.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"Date": {
"$ref": "#/$defs/_mcp0"
},
"Name": {
"description": "Native Status_json.Name.",
"type": "string",
"maxLength": 2000
},
"Comment": {
"description": "Native Status_json.Comment.",
"type": "string",
"maxLength": 12000
},
"user": {
"description": "Native Status_json.user. Verified workspace ID.",
"type": "string",
"maxLength": 2000
}
},
"additionalProperties": false,
"description": "Native Leads activity.status."
}
},
"history": {
"description": "Native Leads activity.history. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"Number": {
"description": "Native Status_json.Number.",
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"Date": {
"$ref": "#/$defs/_mcp0"
},
"Name": {
"description": "Native Status_json.Name.",
"type": "string",
"maxLength": 2000
},
"Comment": {
"description": "Native Status_json.Comment.",
"type": "string",
"maxLength": 12000
},
"user": {
"description": "Native Status_json.user. Verified workspace ID.",
"type": "string",
"maxLength": 2000
}
},
"additionalProperties": false,
"description": "Native Leads activity.history."
}
},
"notes": {
"description": "Native Leads activity.notes. Supplied array replaces the whole array.",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"description": "Native contact.date. ISO 8601 with timezone; stored as a timestamp.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"name": {
"description": "Native contact.name.",
"type": "string",
"maxLength": 2000
},
"value": {
"description": "Native contact.value.",
"type": "string",
"maxLength": 2000
}
},
"additionalProperties": false,
"description": "Native Leads activity.notes."
}
}
},
"additionalProperties": false,
"description": "Exactly one selected native activity array."
},
"nextOffset": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Next array offset, or null at end."
}
},
"required": [
"resourceId",
"revision",
"activity",
"nextOffset"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"description": "Native Status_json.Date. ISO 8601 with timezone; stored as a timestamp.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
}
}
}