createICollectionRow
Create a record in the collection
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);
Schema
marker:* string
Collection text identifier
example: collection1
body:* ICollectionFormObject
Object for creating a record
example:
{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "collection_marker",
"type": "string",
"value": "Collection marker"
}
]
}
}
langCode: string
Language code
example: en_US
Example return:
{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
}
}
Schema
formIdentifier: string
Text identifier of the form object attached to the order storage
example: collection_form
formData: FormDataLangType
Data submitted by the form attached to the collection
example:
{
"en_US": [
{
"marker": "marker_1",
"type": "string",
"value": "Name"
}
]
}