getICollectionRowsByMarker
Mengambil semua catatan dari koleksi.
Deskripsi
Ini mengembalikan sebuah Promise yang menyelesaikan menjadi objek ICollectionRowsResponce.
IntegrationCollections.getICollectionRowsByMarker(
marker*,
langCode
);
Skema parameter
Skema
marker(required): string
Pengidentifikasi teks koleksi
contoh: "collection1"
langCode: string
Kode bahasa. Default: "en_US"
contoh: "en_US"
Contoh
Contoh minimal
const result = await IntegrationCollections.getICollectionRowsByMarker('test_collection');
Contoh dengan atribut
const result = await IntegrationCollections.getICollectionRowsByMarker('test_collection', 'en_US');
Contoh respons
{
"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": 214
}
Skema respons
Skema: ICollectionRowsResponce
items: ICollectionRow[]
Array dari objek baris koleksi.
contoh:
[
{
"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
}
]
items.id: number
Pengidentifikasi objek.
contoh: 1
items.createdDate: string
Tanggal pembuatan catatan.
contoh: "2023-01-01T00:00:00Z"
items.updatedDate: string
Tanggal pembaruan terakhir catatan.
contoh: "2023-01-02T00:00:00Z"
items.collectionId: number | null
collectionId yang terkait dengan baris koleksi.
contoh: "product", "order", "etc"
items.formData: ICollectionFormData[]
Array dari objek data formulir yang terkait dengan baris koleksi.
contoh:
[
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
items.entityType: string | null
Tipe entitas yang terkait dengan baris koleksi.
contoh: "product", "order", "etc"
items.entityId: number | null
Pengidentifikasi entitas yang terkait dengan baris koleksi.
contoh: 12345
items.attributeSetIdentifier: string | null
Pengidentifikasi set atribut yang digunakan oleh formulir yang terlampir pada baris koleksi, atau null jika tidak berlaku.
contoh: "attributeSet1" atau null
items.total: string
Jumlah total.
contoh: "1"
total: number
Jumlah total catatan yang ditemukan.
contoh: 10