function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Arthur AlmeidaArthur Almeida 

How to trigger a Apex Trigger when Messaging Session End Session

When a Messaging Session go "End Session", the case needs a finish.

This works with Bot, the Bot finishes all cases when the user ends the session, but when the agent force the end session in the Salesforce, the case doesn't finish... this is a problem.

User-added image

I writed trigger "after update" but when I force the end session of Messaging Session, the trigger doesn't is triggered...

How to catch this change?
PriyaPriya (Salesforce Developers) 

Hi

Can you please provide the trigger code here ?

Regards,

Priya Ranjan