To add or update customer fields on JSON object, please do the following:
indigitall.assignOrUpdateValueToCustomerFields({
"field1": "value",
"field2": "value",
},(success) => {
// do something
}, (error) => {
// do something else
})
Otherwise, if you want to eliminate a field, you have to do this with an arrayList of the fieldNames:
indigitall.deleteValuesFromCustomerFields([
"field1",
"field2"
],(success) => {
// do something
}, (error) => {
// do something else
})
To send a custom data to a Customer Journey event, you have to do this with with the event code and customData:
indigitall.sendCustomerCustomEvent("eventCode",{"dataKey": "dataValue"}, (response) => {
console.log("Event success response: "+response);
}, (error) => {
console.log("Event error: "+ JSON.stringify(error));
})