createICollectionRow
Créer un enregistrement dans la 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);
Schéma
marker:* chaîne
Identifiant de texte de la collection
exemple : collection1
body:* ICollectionFormObject
Objet pour créer un enregistrement
exemple :
{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "collection_marker",
"type": "string",
"value": "Marqueur de collection"
}
]
}
}
langCode: chaîne
Code de langue
exemple : en_US
Exemple de retour :
{
"formIdentifier": "collection-form",
"formData": {
"en_US": [
{
"marker": "name_1",
"type": "string",
"value": "Value"
}
]
}
}
Schéma
formIdentifier: chaîne
Identifiant de texte de l'objet de formulaire attaché au stockage de commande
exemple : collection_form
formData: FormDataLangType
Données soumises par le formulaire attaché à la collection
exemple :
{
"en_US": [
{
"marker": "marker_1",
"type": "string",
"value": "Nom"
}
]
}
.