Re: createItem () for a sent item
Thanks, Preston.
Just for clarification, in case anyone else reads this, the
returnSentItemsId property is on the BoxEntry object for the item you are
creating. It's not in the createItemRequest object (which is where I
initially thought I would find it.)
--sk.
>>> On 10/5/2009 at 6:30 AM, Preston Stephenson<PStephenson@gw.novell.com>
wrote:
> Try including <returnSentItemsId>1</returnSentItemsId>.
> The sent item id's are not returned by default.
> You have to explicitly ask for them.
>
>>>> On Thursday, October 01, 2009 at 11:18 AM, Sean
> Kirkby<skirkby@armordatasystems.com> wrote:
>> Hi,
>>
>> I am using the createItemRequest() call to create a "sent" item in a
> proxy
>
>> account.
>>
>> It is working, in that the item is being created, and it appears as it
>> should. createItemResponse.status.code == 0, and the item is indeed
> created.
>>
>> However, the createItemResponse.id object that comes back is null
> (actually,
>> in the XML, it's just not included at all).
>>
>> Is this WAD?
>>
>> Here is the request and response XML blocks:
>>
>>
>> Request:
>>
>> <?xml version="1.0" encoding="UTF‑8"?>
>> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>> <s:Header>
>> <h:gwTrace
> xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"
>
>>
>
xmlns="http://schemas.novell.com/2005/01/GroupWise/types">false</h:gwTrace>
>> <h:session
> xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"
>
>>
> xmlns="http://schemas.novell.com/2005/01/GroupWise/types">dYhKyHgUc8p9CJe
> o</
> h:s
>> ession>
>> </s:Header>
>> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>> <createItemRequest
>> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
>> <item xmlns:q1="http://schemas.novell.com/2005/01/GroupWise/types"
>> xsi:type="q1:Mail">
>>
> <q1:container>47F5F953.CCO.sig.100.1776766.1.4F.1@ 13</q1:container>
>> <q1:customs>
>> <q1:custom type="String">
>> <q1:field>GW2PPV_BidNo</q1:field>
>> <q1:value>13255</q1:value>
>> </q1:custom>
>> </q1:customs>
>> <q1:status>
>> <q1:accepted>true</q1:accepted>
>> <q1:opened>true</q1:opened>
>> <q1:read>true</q1:read>
>> </q1:status>
>> <q1:source>sent</q1:source>
>> <q1:delivered>0001‑01‑01T00:00:00</q1:delivered>
>> <q1:security>Normal</q1:security>
>> <q1:subject>test 6</q1:subject>
>> <q1:distribution>
>> <q1:from>
>> <q1:displayName>Sean Kirkby</q1:displayName>
>> <q1:email>skirkby@armordatasystems.com</q1:email>
>>
> <q1:uuid>D23C9DB0‑16F0‑0000‑BBFC‑49005C005 800</q1:uuid>
>> </q1:from>
>> <q1:to>Sean Kirkby</q1:to>
>> <q1:sendoptions>
>> <q1:statusTracking>All</q1:statusTracking>
>> </q1:sendoptions>
>> </q1:distribution>
>> <q1:message>
>> <q1:part length="8">dGVzdA==</q1:part>
>> </q1:message>
>> <q1:attachments>
>> <q1:attachment>
>>
>>
> <q1:id>4AC48C4C.CCO.sig.200.200003D.1.16E30.1@45:4 AC48C4C.CCO.sig.100.1796
> F7
> 8
>> .1.E6A90.1@1:7.CCO.sig.100.0.1.0.1@16</q1:id>
>> <q1:name>TEXT.htm</q1:name>
>> <q1:contentType>TEXT/HTML</q1:contentType>
>> <q1:size>215</q1:size>
>> <q1:date>2009‑10‑01T11:02:36Z</q1:date>
>>
>>
>
<q1:data>PEhUTUw+PEhFQUQ+DQo8TUVUQSBjb250ZW50PSJ0Z Xh0L2h0bWw7IGNoYXJzZXQ9d
> XR
> m
>>
> LTgiIGh0dHAtZXF1aXY9Q29udGVudC1UeXBlPg0KPE1FVEEgbm FtZT1HRU5FUkFUT1IgY29u
> dGVu
> d
>>
> D0iTVNIVE1MIDguMDAuNjAwMS4xODgxMiI+PC9IRUFEPg0KPEJ PRFkgc3R5bGU9Ik1BUkdJT
> jogN
> H
>>
> B4IDRweCAxcHg7IEZPTlQ6IDEwcHQgVGFob21hIj50ZXN0PC9C T0RZPjwvSFRNTD4=</q1:da
>ta>
>
>> <q1:hidden>true</q1:hidden>
>> </q1:attachment>
>> </q1:attachments>
>> <q1:options>
>> <q1:priority>Standard</q1:priority>
>> </q1:options>
>> </item>
>> </createItemRequest>
>> </s:Body>
>> </s:Envelope>
>>
>>
>>
>> Response:
>>
>> <?xml version="1.0" encoding="UTF‑8"?>
>> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>> <s:Header>
>> <gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
>>
>
xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types">false</gwTrace>
>> </s:Header>
>> <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance">
>> <createItemResponse
>> xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
>> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
>> <status>
>> <gwt:code>0</gwt:code>
>> </status>
>> </createItemResponse>
>> </s:Body>
>> </s:Envelope>
>>
>>
>>
>>
>> If the item is NOT a sent item, it appears to work just fine. Here are
> the
>> request/response blocks for creating a received item:
>>
>>
>> Request:
>>
>> <?xml version="1.0" encoding="UTF‑8"?>
>> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>> <s:Header>
>> <h:gwTrace
> xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"
>
>>
>
xmlns="http://schemas.novell.com/2005/01/GroupWise/types">false</h:gwTrace>
>> <h:session
> xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"
>
>>
> xmlns="http://schemas.novell.com/2005/01/GroupWise/types">0d7GxuhQgEhnuXp
> F</
> h:s
>> ession>
>> </s:Header>
>> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>> <createItemRequest
>> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
>> <item xmlns:q1="http://schemas.novell.com/2005/01/GroupWise/types"
>> xsi:type="q1:Mail">
>>
> <q1:container>47F5F953.CCO.sig.100.1776766.1.4F.1@ 13</q1:container>
>> <q1:customs>
>> <q1:custom type="String">
>> <q1:field>GW2PPV_BidNo</q1:field>
>> <q1:value>13255</q1:value>
>> </q1:custom>
>> </q1:customs>
>> <q1:status>
>> <q1:opened>true</q1:opened>
>> <q1:read>true</q1:read>
>> </q1:status>
>> <q1:source>received</q1:source>
>> <q1:delivered>0001‑01‑01T00:00:00</q1:delivered>
>> <q1:security>Normal</q1:security>
>> <q1:subject>test 6</q1:subject>
>> <q1:distribution>
>> <q1:from>
>> <q1:displayName>Sean Kirkby</q1:displayName>
>> <q1:email>skirkby@armordatasystems.com</q1:email>
>>
> <q1:uuid>D23C9DB0‑16F0‑0000‑BBFC‑49005C005 800</q1:uuid>
>> </q1:from>
>> <q1:to>Sean Kirkby</q1:to>
>> <q1:sendoptions>
>> <q1:statusTracking>All</q1:statusTracking>
>> </q1:sendoptions>
>> </q1:distribution>
>> <q1:message>
>> <q1:part length="8">dGVzdA==</q1:part>
>> </q1:message>
>> <q1:attachments>
>> <q1:attachment>
>>
>>
> <q1:id>4AC48C4C.CCO.sig.200.200003D.1.16E30.1@45:4 AC48C4C.CCO.sig.100.1796
> F7
> 8
>> .1.E6A91.1@1:7.CCO.sig.100.0.1.0.1@16</q1:id>
>> <q1:name>TEXT.htm</q1:name>
>> <q1:contentType>TEXT/HTML</q1:contentType>
>> <q1:size>215</q1:size>
>> <q1:date>2009‑10‑01T11:02:36Z</q1:date>
>>
>>
>
<q1:data>PEhUTUw+PEhFQUQ+DQo8TUVUQSBjb250ZW50PSJ0Z Xh0L2h0bWw7IGNoYXJzZXQ9d
> XR
> m
>>
> LTgiIGh0dHAtZXF1aXY9Q29udGVudC1UeXBlPg0KPE1FVEEgbm FtZT1HRU5FUkFUT1IgY29u
> dGVu
> d
>>
> D0iTVNIVE1MIDguMDAuNjAwMS4xODgxMiI+PC9IRUFEPg0KPEJ PRFkgc3R5bGU9Ik1BUkdJT
> jogN
> H
>>
> B4IDRweCAxcHg7IEZPTlQ6IDEwcHQgVGFob21hIj50ZXN0PC9C T0RZPjwvSFRNTD4=</q1:da
>ta>
>
>> <q1:hidden>true</q1:hidden>
>> </q1:attachment>
>> </q1:attachments>
>> <q1:options>
>> <q1:priority>Standard</q1:priority>
>> </q1:options>
>> </item>
>> </createItemRequest>
>> </s:Body>
>> </s:Envelope>
>>
>>
>> Response:
>>
>> <?xml version="1.0" encoding="UTF‑8"?>
>> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
>> <s:Header>
>> <gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
>>
>
xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types">false</gwTrace>
>> </s:Header>
>> <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance">
>> <createItemResponse
>> xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
>> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
>>
>>
>
<id>4AC48F19.CCO.sig.100.1776766.1.270.1@1:47F5F95 3.CCO.sig.100.1776766.1.
> 4F
> .
>> 1@13</id>
>> <status>
>> <gwt:code>0</gwt:code>
>> </status>
>> </createItemResponse>
>> </s:Body>
>> </s:Envelope>
>>
>>
>> Any idea why the ID of the created item is returned when the Mail.source
> ==
>> received, and is not returned when Mail.source == sent?
>>
>>
>> Thanks.
>>
>> ‑‑sk.
|