Nhảy đến nội dung

getICollectionRowsByMarker

Lấy tất cả các bản ghi từ bộ sưu tập.

IntegrationCollections.getICollectionRowsByMarker( marker, langCode );

Ví dụ tối thiểu

const result = await IntegrationCollections.getICollectionRowsByMarker('test_collection');

Ví dụ với các thuộc tính

const result = await IntegrationCollections.getICollectionRowsByMarker('test_collection', 'en_US');

Sơ đồ tham số

Sơ đồ

marker(bắt buộc): string
Định danh văn bản của bộ sưu tập
ví dụ: "collection1"

langCode: string
Mã ngôn ngữ. Mặc định: "en_US"
ví dụ: "en_US"

Ví dụ phản hồi

{
"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
}

Sơ đồ phản hồi

Sơ đồ: ICollectionRowsResponce

items: ICollectionRow[]
Mảng các đối tượng hàng trong bộ sưu tập.
ví dụ:

[
{
"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": "Value"
}
],
"attributeSetIdentifier": null
}
]

total: number
Tổng số bản ghi đã tìm thấy.
ví dụ: 10