Gmail attachment download in Application Implementation

Hi experts,

I am using the following documentation:

I have created a gmail connector with the scope:

´´´ https://mail.google.com ´´´

All rights have been assigned to the service account and all APIs enabled as per the documentation.

I am using the connector with enttity “List Messages” and I am getting a response according to my filter clause.

I extract “MessageId” and “AttachmentId” from the first element of the response.

Then I am using the connector again in mode “Action AttachmentDownload” with the Ids and HasBytes=true and I am getting the following error:

Errorcode 500

“Failed to download attachment(s) for MessageId xxxxxxx”

The documentation says to just pass the MessageID but that yielding a missing parameter message.

What am I doing wrong?

Cheers

Wolfgang