chadcorriveau
ServiceNow Employee
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 08-22-2017 11:03 AM
Comments
david_hreben
Giga Expert
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
04-23-2018
12:40 PM
Hello,
I am using the fillowing script to save the info received from the bot.
sendMessage: function(groupId, message, text, httpStatus, responseObj, msgSource, parameters) {
var botId = "c348562a0fd557c0d15605cce1050e92";
var msg = new GlideRecord('live_message');
msg.initialize();
msg.message = message.toString();
msg.group = groupId;
msg.chat_message = true;
msg.has_links = true;
msg.profile = botId;
msg.reflected_field = "comments";
msg.insert();
//new SNC.LiveFeedApi().addMessage(message, groupId, "" ,false , botId);
new global.GlideLiveMessageBroadcasterWrapper().broadcastFromRecord(msg);
},
The problem is that the Bot Conversation is not being saved on the table:
https://instancename.service-now.com/chat_queue_entry_list.do
Just the end user conversation is saved. Do you know why?
Regards,