sn_connect send message is not working in the business rule. can run it in background script fine
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 12:34 AM
var conversationId = sn_connect.Conversation.get('sys id of the conversation);
conversationId.sendMessage({
body: "Please don't leave the chat some agent will take over your conversation",
field: 'comment'
});
the error I found is this
Root cause of JavaScriptException: graphql.GraphQLException
: graphql.GraphQLException: User can not send message: com.glide.cs.domain.UnifiedMessageSender.sendMessage(UnifiedMessageSender.java:818)
com.glide.cs.domain.UnifiedMessageSender.sendMessage(UnifiedMessageSender.java:675)
com.glide.cs.domain.UnifiedConversation.sendMessage(UnifiedConversation.java:138)
: graphql.GraphQLException: User can not send message: com.glide.cs.domain.UnifiedMessageSender.sendMessage(UnifiedMessageSender.java:818)
com.glide.cs.domain.UnifiedMessageSender.sendMessage(UnifiedMessageSender.java:675)
com.glide.cs.domain.UnifiedConversation.sendMessage(UnifiedConversation.java:138)
Labels:
- Labels:
-
Agent Chat
-
Virtual Agent
0 REPLIES 0