Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 105
Registered: ‎09-06-2013
My Device: Z10

Email Attachments cannot be retrieved

As above, using PIM Messages with Gmail account.

I only want to retrieve attachments (ie : files which u add by clicking the paper clip thingy)


However when I use the PIM API to retrieve the messages


Get conversation using MessageService::conversations

Get message using MessageService::messagesInConversation

Loop through messages for messages::attachmentCount, it always returns 0

I checked Conversation::summary, there is a has_attachment_count
However, one of my emails which had 2 attachments , one doc and one pdf , actually returns  1 attachment.