We can configure Embedded Service Deployment to have a case created for a chat session. By default, we know the case gets assigned to the agent who picks up the chat.
Under certain situations (as one described below), we have observed that the Pending Service Routing(PSR) corresponding to the case is not deleted when its owner changes to an agent.
Note:
If we manually change the ownership of this case from a queue/user to another user, the PSR is deleted. It is only when the ownership is changed when the agent accepts the chat, we notice the PSR remains in the system.
The scenario is working as expected. The PSR is being created in a custom way while the standard Salesforce automation is changing the ownership of the Case to the agent that accepted the Chat.
Note:
The logic triggered from the insert events of the Case and from the update events due to the change of ownership by the standard automation may appear in the same debug log, even though they are separate transactions occurring almost simultaneously.
See Also
000395727

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.