How to track failed/undelivered messages in Salesforce Digital Engagement Messaging?

SOQLs:
SELECT Id, ActorId, ActorName, ActorType, ConversationId, EntryType, Message, MessageStatus, MessageStatusCode
FROM ConversationEntry
WHERE CreatedDate = TODAY AND MessageStatusCode != null
 
SELECT ChannelName, MessagingEndUser.MessagingPlatformKey, StartTime, EndTime, MessagingEndUser.MessagingConsentStatus, MessagingEndUser.IsFullyOptedIn FROM MessagingSession WHERE Id IN (
SELECT ConversationId
FROM ConversationEntry
WHERE CreatedDate = TODAY)


MessageStatusCode is only populated when a message is undeliverable.

Use the following article to find the reason for failure with the Error Code.

No comments:

Post a Comment