updateICollectionRow
تعديل سجل في المجموعة.
الوصف
ترجع Promise التي تحل إلى كائن ICollectionRow.
IntegrationCollections.updateICollectionRow(
marker*,
id*,
body*,
langCode
);
مخطط المعلمات
المخطط
marker(required): string
معرف نصي للمجموعة
مثال: "collection1"
id(required): number
معرف الصف في المجموعة
مثال: 12
body(required): object
كائن لتحديث سجل في المجموعة
مثال:
{
"formIdentifier": "collection-form",
"formData": [
{
"marker": "collection_marker",
"type": "string",
"value": "Collection marker"
}
]
}
langCode: string
رمز اللغة. الافتراضي: "en_US"
مثال: "en_US"
أمثلة
مثال بسيط
const body = { "formIdentifier": "collection-form", "formData": [ { "marker": "collection_marker", "type": "string", "value": "Collection marker" } ]};
const response = await IntegrationCollections.createICollectionRow("test_collection", 12, body);
مثال على الاستجابة
{
"id": 526,
"createdDate": "2025-11-06T09:28:02.625Z",
"updatedDate": "2025-11-06T09:28:02.808Z",
"collectionId": 1,
"langCode": "en_US",
"formData": [
{
"marker": "c_marker",
"type": "string",
"value": "Value updated"
}
],
"entityType": null,
"entityId": null,
"formIdentifier": "collection_form"
}
مخطط الاستجابة
المخطط: ICollectionRow
id: number
معرف الكائن.
مثال: 1
createdDate: string
تاريخ إنشاء السجل.
مثال: "2023-01-01T00:00:00Z"
updatedDate: string
تاريخ آخر تحديث للسجل.
مثال: "2023-01-02T00:00:00Z"
collectionId: number | null
collectionId المرتبط بصف المجموعة.
مثال: "product", "order", "etc"
formData: ICollectionFormData[]
مصفوفة من كائنات بيانات النموذج المرتبطة بصف المجموعة.
مثال:
[
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
entityType: string | null
نوع الكائن المرتبط بصف المجموعة.
مثال: "product", "order", "etc"
entityId: number | null
معرف الكائن المرتبط بصف المجموعة.
مثال: 12345
attributeSetIdentifier: string | null
معرف مجموعة الخصائص المستخدمة من قبل النموذج المرتبط بصف المجموعة، أو null إذا لم يكن ذلك قابلاً للتطبيق.
مثال: "attributeSet1" أو null
total: string
إجمالي العدد.
مثال: "1"