How to get Conversation Entries for Messaging Session in Salesforce Messaging for In-App and Web?

How to get Conversation Entries for Messaging Session in Salesforce Messaging for In-App and Web?

Connect API can be used to get Conversation Entries for a Messaging Session record in Salesforce Messaging for In-App and Web.

1. Use the following SOQL to fetch the Conversation Identifier of the Messaging Session record.

SELECT Conversation.ConversationIdentifier
FROM MessagingSession
WHERE Id = '<Id Of Messaging Session>'

2. Use the following path with your My Domain URL to fetch the Conversation Entries for Messaging Session in Salesforce Messaging for In-App and Web.

/services/data/v58.0/connect/conversation/<ConversationIdentifier>/entries

By default, we will get only 25 entries. To get more than 25, use recordLimit parameter. Maximum value for the recordLimit is 1000.

Leave a Reply