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": 738,
"createdDate": "2026-04-15T14:20:16.885Z",
"updatedDate": "2026-04-15T14:20:17.547Z",
"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"
}
]
formData.marker: string
معرف نصي (marker) لحقل النموذج.
مثال: "collection_marker"
formData.type: string
نوع حقل النموذج، مثل "text"، "number"، "date"، "etc".
مثال: "number"
formData.value: string
قيمة حقل النموذج، والتي يمكن أن تكون "string"، "number"، "date"، "etc".
مثال: "Collection marker"
entityType: string | null
نوع الكيان المرتبط بصف المجموعة.
مثال: "product"، "order"، "etc"
entityId: number | null
معرف الكيان المرتبط بصف المجموعة.
مثال: 12345
attributeSetIdentifier: string | null
معرف مجموعة الخصائص المستخدمة من قبل النموذج المرتبط بصف المجموعة، أو null إذا لم يكن ذلك قابلاً للتطبيق.
مثال: "attributeSet1" أو null
total: string
إجمالي العدد.
مثال: "1"