
15-Oct-2009, 08:50 AM
|
|
|
Re: Exception when adding a Message Object to an Attachments collection
As it turns out, Version 8.0.1 of the Gruopwise Client doesn't have this
issue. :-)
Preston Stephenson wrote:
> In the code, the only places I see the not supported error
> returned is when you try to add an embedded message to an
> inbox (received) or outbox (sent) item or you try to add
> a draft message as the embedded message.
>
>>>> On Tuesday, October 13, 2009 at 1:31 AM, Martin
> Schmidt<Martin.Schmidt@schiffl.de> wrote:
>
>> I can't do that unfortunately, because my requirements demand from me
>> the attaching of existing messages. :‑)
>>
>> Attaching an existing message as attachment to a draft message worked
>> fine under Groupwise 7. We've only encountered this exception after
>> switching to the Groupwise 8 Library.
>>
>> Also, the documentation clearly states that existing messages can be
>> added:
>>
> http://developer.novell.com/document...dex.html?page=
>
>> /documentation/gwobjapi/gwobjenu/data/hej0zz9f.html.
>>
>>
>> What are we doing wrong?
>>
>> Michael Bell wrote:
>>> Maybe I'm reading the code wrong, but are you trying to add a message
>>> from a prexisting message's message reference? Might not be supported.
>>> Create a draft message and try attaching a draft message to it.
>>>
>>>
>>>
>>> Martin Schmidt wrote:
>>>> I've also checked the BoxType of the message owning the Attachments
>>>> object, it's egwDraft, so that can't be the issue.
>>>>
>>>> Best regtards, Martin Schmidt.
>>>>
>>>> Martin Schmidt wrote:
>>>>> Hello,
>>>>>
>>>>> We have encountered an Exception while trying to add a Message3
>>>>> object as an attachment to the attachment collection of the message
>>>>> draft:
>>>>>
>>>>> "Dieses Verfahren bzw. diese Eigenschaft wird nicht unterstützt."
>>>>> which probably roughly translates to "This operation is not supported"
>>>>> at System.RuntimeType.ForwardCallToInvokeMember(Strin g memberName,
>>>>> BindingFlags flags, Object target, Int32[] aWrapperTypes,
>>>>> MessageData& msgData)
>>>>> at GroupwareTypeLibrary.DIGWAttachments.Add(Object vr, Object kind,
>>>>> Object DisplayName)
>>>>>
>>>>> We are connecting to a Groupwise 8 Client via the Groupwise Object
>>>>> API. The method call looks like this:
>>>>>
>>>>> draftmsgAttachments.Add((Message3)attach.messageRe ference, null,
> null);
>>>>> draftmsgAttachments is an Attachments object, attach.messageReference
>>>>> is a Message3 object.
>>>>>
>>>>> This method worked while connecting with a Groupwise 7 interface, we
>>>>> believe. For some Reason I also can't call the Attachment Add(Message
>>>>> Message, [String DisplayName]) because neither the Attachments nor
>>>>> the Attachments2 interface show this method signature, although for
>>>>> examlpe the Recipient interface shows the RecipientStatusList, which
>>>>> means the Library is on Groupwise 8 level.
>>>>>
>>>>> Why does this exception happen?
>>>>>
>>>>> thanks for the help.
>>>>>
>>>>> Best regards, Martin Schmidt.
|