Hi,

I am having a problem adding ContactNotes to a contact in SP1.

If I retrieve a Task item, and look at the Task.Contacts collection, and use a contact ID from that collection in a modifyItemRequest() call in order to add a note to the contact, it won't add. The modifyItemResponse.Status.Code == 0, but the note is never added to the contact.

However, if I use a contact ID from an address book, which includes instance information, then I can add the note.

Below are two XML samples of modifyItemRequest() calls... they are identical, except for the contact ID (both ID's refer to the same contact, but one of the ID's includes instance info, and the other doesn't). The call where the contact ID includes instance info works, the call without it doesn't...

Is this WAD? Is there a chance I can get a ContactNote into a contact record without requiring instance info?

Or is there a way to have a contact ID from a ContainerItem object include some sort of instance info, so it can be used to add ContactNotes?

Or, is there a recommended way to efficiently retrieve an instance-aware ID for a contact when I only have the non-instance-aware version of the ID?

Thanks.

--sk.

The one that works:

<?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">true</h:gwTrace>
<h:session xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types" xmlns="http://schemas.novell.com/2005/01/GroupWise/types">ddwI4dbOPPycIFAi</h:session>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modifyItemRequest xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<id>496390A2.PriDom.po1.104.1353763.1.D.1@56:49414 766.PriDom.po1.104.1353763.1.3.1@53</id>
<updates>
<add xmlns="http://schemas.novell.com/2005/01/GroupWise/types" xsi:type="Contact">
<contactNotes>
<contactNote>
<created>2009-06-09T19:48:00</created>
<attachment>
<contentType>text/plain</contentType>
<date>2009-06-09T19:48:00</date>
<data>c29tZSBtb3JlIHRlc3RpbmcNCg0KDQp0ZXN0</data>
</attachment>
</contactNote>
</contactNotes>
</add>
</updates>
</modifyItemRequest>
</s:Body>
</s:Envelope>


The one that doesn't work:

<?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">true</h:gwTrace>
<h:session xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types" xmlns="http://schemas.novell.com/2005/01/GroupWise/types">ddwI4dbOPPycIFAi</h:session>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<modifyItemRequest xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<id>496390A2.PriDom.po1.104.1353763.1.D.1@56</id>
<updates>
<add xmlns="http://schemas.novell.com/2005/01/GroupWise/types" xsi:type="Contact">
<contactNotes>
<contactNote>
<created>2009-06-09T19:48:00</created>
<attachment>
<contentType>text/plain</contentType>
<date>2009-06-09T19:48:00</date>
<data>c29tZSBtb3JlIHRlc3RpbmcNCg0KDQp0ZXN0</data>
</attachment>
</contactNote>
</contactNotes>
</add>
</updates>
</modifyItemRequest>
</s:Body>
</s:Envelope>