June 11, 2021

Block Visitor or Spam Block from Chat Salesforce

1. Create a Chat Agent Configuration.

2. Enable "Visitor Blocking Enabled".


3. Add Agents or their profiles to it.
 
4. Now agents can view Block icon.
 
 


Files attached to Messages in Salesforce Messaging

Files are stored in ContentDocument entity. 
 
Use this soql to find the ContentDocumentId. 
SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = '<MessagingSessionId>'
 
Example:
1. Run the below SOQL.
SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = '0Mw3h00000146TkCAI'
 
 0Mw3h00000146TkCAI is the Messaging Session Id.

2. Use the ContentDocumentId and open the file.