getICollectionRowsByMarker
الحصول على جميع السجلات من المجموعة.
الوصف
ترجع Promise التي تحل إلى كائن ICollectionRowsResponce.
IntegrationCollections.getICollectionRowsByMarker(
marker*,
langCode
);
مخطط المعلمات
المخطط
marker(required): string
معرف نص المجموعة
مثال: "collection1"
langCode: string
رمز اللغة. الافتراضي: "en_US"
مثال: "en_US"
أمثلة
مثال بسيط
const result = await IntegrationCollections.getICollectionRowsByMarker('test_collection');
مثال مع السمات
const result = await IntegrationCollections.getICollectionRowsByMarker('test_collection', '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": 214
}
مخطط الاستجابة
المخطط: ICollectionRowsResponce
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": "Value"
}
],
"attributeSetIdentifier": null
}
]
items.id: number
معرف الكائن.
مثال: 1
items.createdDate: string
تاريخ إنشاء السجل.
مثال: "2023-01-01T00:00:00Z"
items.updatedDate: string
تاريخ آخر تحديث للسجل.
مثال: "2023-01-02T00:00:00Z"
items.collectionId: number | null
معرف المجموعة المرتبط بصف المجموعة.
مثال: "product", "order", "etc"
items.formData: ICollectionFormData[]
مصفوفة من كائنات بيانات النموذج المرتبطة بصف المجموعة.
مثال:
[
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
formData.marker: string
معرف نصي (علامة) لحقل النموذج.
مثال: "collection_marker"
formData.type: string
نوع حقل النموذج، مثل "نص"، "رقم"، "تاريخ"، "إلخ".
مثال: "number"
formData.value: string
قيمة حقل النموذج، والتي يمكن أن تكون "نص"، "رقم"، "تاريخ"، "إلخ".
مثال: "Collection marker"
items.entityType: string | null
نوع الكيان المرتبط بصف المجموعة.
مثال: "product", "order", "etc"
items.entityId: number | null
معرف الكيان المرتبط بصف المجموعة.
مثال: 12345
items.attributeSetIdentifier: string | null
معرف مجموعة السمات المستخدمة بواسطة النموذج المرتبط بصف المجموعة، أو null إذا لم يكن ذلك قابلاً للتطبيق.
مثال: "attributeSet1" أو null
items.total: string
إجمالي العدد.
مثال: "1"
total: number
إجمالي عدد السجلات الموجودة.
مثال: 10