getICollectionRowsByMarker
Получение всех записей из коллекции.
IntegrationCollections.getICollectionRowsByMarker(marker, langCode)
const result = await IntegrationCollections.getICollectionRowsByMarker('test_collection');
Схема
marker(обязательный): строка
Идентификатор текста коллекции
пример: "collection1"
langCode: строка
Код языка. По умолчанию: "en_US"
пример: "en_US"
Пример возвращаемого значения:
{
"items": [
{
"id": 1,
"entityId": null,
"entityType": null,
"createdDate": "2025-02-25T07:05:52.627Z",
"updatedDate": "2025-02-25T07:05:52.627Z",
"formData": [
{
"marker": "naimenovanie_1",
"type": "string",
"value": "Н аименование"
}
],
"attributeSetIdentifier": null
},
{
"id": 2,
"entityId": null,
"entityType": null,
"createdDate": "2025-02-25T07:05:53.057Z",
"updatedDate": "2025-02-25T07:05:53.057Z",
"formData": [
{
"marker": "naimenovanie_1",
"type": "string",
"value": "Наименование"
}
],
"attributeSetIdentifier": null
},
{
"id": 3,
"entityId": null,
"entityType": null,
"createdDate": "2025-02-25T07:05:54.003Z",
"updatedDate": "2025-02-25T07:05:54.460Z",
"formData": [
{
"marker": "naimenovanie_1",
"type": "string",
"value": "Наименование 2"
}
],
"attributeSetIdentifier": null
},
"..."
],
"total": 213
}
Схема
items: ICollectionRow[]
Массив объектов строк коллекции.
пример:
[
{
"id": 1,
"createdDate": "2025-06-06T19:08:54.616Z",
"updatedDate": "2025-06-06T19:08:54.616Z",
"entityId": null,
"entityType": null,
"formData": [
{
"marker": "name_1",
"type": "string",
"value": "Значение"
}
],
"attributeSetIdentifier": null
}
]
total: число
Общее количество найденных записей.
пример: 10