Skip to main content

Hello community!

 

I'm using the Enhanced BOT in my company's operation and I've come across several customers who don't answer the satisfaction survey, which the BOT is responsible for collecting the customer's answers. However, customers fail to respond and the BOT closes the session close to 24 hours later, which affects our total service time. 

 

I tried to implement a solution in APEX with a class triggered by an automation flow which changes the session status to "Ended", but according to the Messaging Session documentation, the "Status" field cannot be updated. 

 

Source:  https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_messagingsession.htm

 

APEX class:

MessagingSession messagingSession = [Select OwnerId FROM MessagingSession  Where id = '<session_id>'];messagingSession.Status = Ended;update messagingSession;

Is there a solution via APEX or Enhanced BOT settings? 

 

 

#Salesforce Developer

1 件の回答
0/9000