انتقل إلى المحتوى الرئيسي

createICollectionRow

إنشاء سجل في المجموعة

IntegrationCollections.createICollectionRow(marker, body, langCode)

const body = {
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
}
}
const result = await IntegrationCollections.createICollectionRow('test_collection', body);
المخطط

marker:* string
معرف نص المجموعة
مثال: collection1

body:* ICollectionFormObject
كائن لإنشاء سجل
مثال:

{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "collection_marker",
"type": "string",
"value": "Collection marker"
}
]
}
}

langCode: string
رمز اللغة
مثال: en_US

مثال على الإرجاع:

{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
}
}
المخطط

formIdentifier: string
معرف نص كائن النموذج المرتبط بتخزين الطلب
مثال: collection_form

formData: FormDataLangType
البيانات المقدمة بواسطة النموذج المرتبط بالمجموعة
مثال:

{
"en_US": [
{
"marker": "marker_1",
"type": "string",
"value": "Name"
}
]
}