jmckay123 Absent Member.
Absent Member.

Accessing attachments in forwarded as attachment message

I'm trying to retrieve a message that I believe was "forwarded as attachment", where the original message contained an attachment. In the GroupWise client I can see the zip file attachment. When I try to get it using the SOAP API, for some reason it comes across as two separate messages. Neither of them has the zip file attachment. One of them does have an attachment, but it is only the HTML. Both of the messages have a property called "id" that is within the section "threading". I tried using this value in setItemRequest and getAttachmentRequest, but both attempts produce the error "bad parameter passed to a NCSP function", code 59905. Any suggestions on how I can retrieve all the data from this message?
Labels (1)
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Accessing attachments in forwarded as attachment message

I'll try to fit the data in the response.
Embedded messages are special attachments.
The attachment id has a itemReference="1" attribute.
You have to use getItemRequest to get the embedded message attachment.
You can't use getAttachmentRequest.
Here is an example with most of the data removed:

<ns2:view>default format attachments message peek recipients


<gwt:item xsi:type="gwt:Mail">

<gwt:subject>Fwd: one</gwt:subject>
<gwt:part contentType="text/plain" length="8">dHdvCgo=</gwt:part>



<ns2:view>default attachments peek</ns2:view>

<gwm:item xmlns:xsi=""

<gwt:part contentType="text/plain" length="8">b25lCg==</gwt:part>


Let me know if you still have problems.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.