Public Properties

The Salesforce Engagement SDK offers these convenience methods for retrieving inbox messages:

Each method returns a list of InboxMessage Objects. A consuming application can access these properties within each message object.

Message Properties 

KeyTypeNullableSDK Version Availability
alertStringYesVersion 8 and later
customStringYesVersion 8 and later
customKeysMap<String, String>YesVersion 8 and later
deletedBooleanNoVersion 8 and later
endDateUtcDateYesVersion 8 and later
idStringNoVersion 8 and later
inboxMessageStringYesVersion 9 and later
inboxMessageTypeIntYesVersion 9 and later
inboxSubtitleStringYesVersion 9 and later
mediaInboxMessage.MediaYesVersion 8 and later
notificationMessageNotificationMessageYesVersion 9 and later
readBooleanNoVersion 8 and later
sendDateUtcDateYesVersion 8 and later
soundStringYesVersion 8 and later
startDateUtcDateYesVersion 8 and later
subjectStringYesVersion 8 and later
subtitleStringYesVersion 8 and later
titleStringYesVersion 8 and later
urlStringYesVersion 8 and later

The inboxMessageType classifies inbox messages using integer values to represent different types. A value of 1 indicates an Inbox 1.0 message, 2 signifies an Inbox 2.0 message, and 3 represents a Push Copy to Inbox (PCTI) message. This attribute applies to Inbox 1.0, Inbox 2.0, and PCTI. Additionally, inboxSubtitle and inboxMessage are available to Inbox 2.0, while notificationMessage is specific to PCTI.

The remaining properties in the message dictionary, such as contentType and requestId, are reserved for internal use. Don’t use these properties in your app.

Sort Inbox Messages by Sent Date 

To sort inbox messages in your custom inbox implementation, use the value of sendDateUtc from the Inbox Message returned by getMessages.