Ana içeriğe geç

getICollectionRowByMarkerAndId

Koleksiyondan bir kayıt almak.

IntegrationCollections.getICollectionRowByMarkerAndId( marker, id, langCode );

Minimal örnek

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

Özelliklerle örnek

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

Parametreler şeması

Şema

marker(gerekli): string
Koleksiyon metin tanımlayıcısı
örnek: "collection1"

id(gerekli): number
Koleksiyon kayıt tanımlayıcısı
örnek: 1

langCode: string
Dil kodu. Varsayılan: "en_US"
örnek: "en_US"

Örnek yanıt

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

Yanıt şeması

Şema: ICollectionRow

id: number
Nesne tanımlayıcısı.
örnek: 1

createdDate: string
Kayıt oluşturulma tarihi.
örnek: "2023-01-01T00:00:00Z"

updatedDate: string
Kayıt son güncelleme tarihi.
örnek: "2023-01-02T00:00:00Z"

collectionId: number | null
Koleksiyon satırı ile ilişkili collectionId.
örnek: "product", "order", "vs"

formData: ICollectionFormData[]
Koleksiyon satırı ile ilişkili form veri nesneleri dizisi.
örnek:

[
{
"marker": "name_1",
"type": "string",
"value": "Değer"
}
]

entityType: string | null
Koleksiyon satırı ile ilişkili varlık türü.
örnek: "product", "order", "vs"

entityId: number | null
Koleksiyon satırı ile ilişkili varlık tanımlayıcısı.
örnek: 12345

attributeSetIdentifier: string | null
Koleksiyon satırına ekli form tarafından kullanılan özellik setinin tanımlayıcısı veya geçerli değilse null.
örnek: "attributeSet1" veya null

total: string
Toplam sayısı.
örnek: "1"