Lewati ke konten utama

getICollectionRowByMarkerAndId

Mengambil satu catatan dari koleksi.

Deskripsi

Ini mengembalikan sebuah Promise yang menyelesaikan menjadi objek ICollectionRow.

IntegrationCollections.getICollectionRowByMarkerAndId(

marker*, id*, langCode

);

Skema parameter

Skema

marker(required): string
Pengidentifikasi teks koleksi
contoh: "collection1"

id(required): number
Pengidentifikasi catatan koleksi
contoh: 1

langCode: string
Kode bahasa. Default: "en_US"
contoh: "en_US"

Contoh

Contoh minimal

const result = await IntegrationCollections.getICollectionRowByMarkerAndId('test_collection', 1);

Contoh dengan atribut

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

Contoh respons

{
"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,
"total": "1"
}

Skema respons

Skema: ICollectionRow

id: number
Pengidentifikasi objek.
contoh: 1

createdDate: string
Tanggal pembuatan catatan.
contoh: "2023-01-01T00:00:00Z"

updatedDate: string
Tanggal pembaruan terakhir catatan.
contoh: "2023-01-02T00:00:00Z"

collectionId: number | null
collectionId yang terkait dengan baris koleksi.
contoh: "product", "order", "dll"

formData: ICollectionFormData[]
Array objek data formulir yang terkait dengan baris koleksi.
contoh:

[
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]

formData.marker: string
Pengidentifikasi teks (marker) dari bidang formulir.
contoh: "collection_marker"

formData.type: string
Tipe bidang formulir, seperti "text", "number", "date", "dll".
contoh: "number"

formData.value: string
Nilai dari bidang formulir, yang bisa berupa "string", "number", "date", "dll".
contoh: "Pengidentifikasi koleksi"

entityType: string | null
Tipe entitas yang terkait dengan baris koleksi.
contoh: "product", "order", "dll"

entityId: number | null
Pengidentifikasi entitas yang terkait dengan baris koleksi.
contoh: 12345

attributeSetIdentifier: string | null
Pengidentifikasi set atribut yang digunakan oleh formulir yang terlampir pada baris koleksi, atau null jika tidak berlaku.
contoh: "attributeSet1" atau null

total: string
Jumlah total.
contoh: "1"