Dear Team,
I'm trying to do a web messaging with form and sending custom attributes , everything is fine with the first conversation. The problem is when the first conversation is ended refresh the page and begin a new conversation with "Start New" button, this conversation didn't receive custom attributes. So in this way I can't send the custom attributes.
Note : Without refresh the page second conversation also works fine.
Here is my sample code snippet:
function toggleMessenger() {
Genesys(
'command',
'Messenger.open',
{},
function (o) {
closeLauncher()
Genesys('command', 'Database.set', {
messaging: {
customAttributes: {
FirstName: document.getElementById('fname').value,
LastName: document.getElementById('lname').value,
Subject: document.getElementById('subject').value
},
markdown: true
},
})
},
function (o) {
Genesys('command', 'Messenger.close')
}
)
}