Home All Groups Group Topic Archive Search About

WebDAV change appointment

Author
15 Oct 2007 3:07 PM
Dmitriy
What is the best way to change existing appointment?
Let's say we stored urn:schemas:calendar:uid and want to update it and add
new property or something.

Thanks,
Dmitriy

Author
15 Oct 2007 3:52 PM
Henning Krause [MVP - Exchange]
Hello Dmitry,

if you have the DAV:uid, you'll have to perform a SEARCH on the calendar to
the the url of the apointment. After that you can do a PROPPATCH.

Appointments are somewhat special, because Exchange 2003 SP2 and later will
recreate it under certain circumstances, effectively modifying all other ID
properties (EntryId, etc). For all item types but appointment I would rather
store the permantUrl property.

Kind regards,
Henning Krause

Show quote
"Dmitriy" <korz***@hotmail.com> wrote in message
news:OVpBJ0zDIHA.2004@TK2MSFTNGP06.phx.gbl...
> What is the best way to change existing appointment?
> Let's say we stored urn:schemas:calendar:uid and want to update it and add
> new property or something.
>
> Thanks,
> Dmitriy
>
Author
15 Oct 2007 5:58 PM
Dmitriy
This is very important news.

If I understood it correctly, we CAN use DAV:uid for appointments ONLY but
NOT for other items?

Or it would be safier to store
http://schemas.microsoft.com/exchange/permanenturl as our appointment ID?
What about DAV:href? Will it be recreated?

Thanks,
Dmitriy


Show quote
"Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
wrote in message news:efmIXN0DIHA.5788@TK2MSFTNGP05.phx.gbl...
> Hello Dmitry,
>
> if you have the DAV:uid, you'll have to perform a SEARCH on the calendar
> to the the url of the apointment. After that you can do a PROPPATCH.
>
> Appointments are somewhat special, because Exchange 2003 SP2 and later
> will recreate it under certain circumstances, effectively modifying all
> other ID properties (EntryId, etc). For all item types but appointment I
> would rather store the permantUrl property.
>
> Kind regards,
> Henning Krause
>
> "Dmitriy" <korz***@hotmail.com> wrote in message
> news:OVpBJ0zDIHA.2004@TK2MSFTNGP06.phx.gbl...
>> What is the best way to change existing appointment?
>> Let's say we stored urn:schemas:calendar:uid and want to update it and
>> add new property or something.
>>
>> Thanks,
>> Dmitriy
>>
>
Author
15 Oct 2007 6:46 PM
Henning Krause [MVP - Exchange]
Hello,

DAV:href will change when you change the subject in Outlook.
http://schemas.microsoft.com/exchange/permanenturl will does not change
unless the item is moved to another folder. The permanent url is constructed
from the MAPI EntryID.

DAV:uid is a string property - I would assume that it suffers from the same
disadvantages as the DAV:id property
(http://support.microsoft.com/kb/320749): Exchange string comparisons are
case-insensitive.

For appointments, I usually use the property
http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3,
which is a binary property used by Outlook accros mailboxes to correlate
meetings and meeting requests (http://support.microsoft.com/kb/899919). If
you create the appointment yourself, you can set this property to an
arbitrary value (I use Guid.NewGuid().ToByteArray() and convert the result
to a Base64 encoded string).

PR_SearchKey should also be suitable for identification (Property tag
0x300B0102).

Kind regards,
Henning

Show quote
"Dmitriy" <korz***@hotmail.com> wrote in message
news:ucJZyT1DIHA.4296@TK2MSFTNGP04.phx.gbl...
> This is very important news.
>
> If I understood it correctly, we CAN use DAV:uid for appointments ONLY but
> NOT for other items?
>
> Or it would be safier to store
> http://schemas.microsoft.com/exchange/permanenturl as our appointment ID?
> What about DAV:href? Will it be recreated?
>
> Thanks,
> Dmitriy
>
>
> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
> wrote in message news:efmIXN0DIHA.5788@TK2MSFTNGP05.phx.gbl...
>> Hello Dmitry,
>>
>> if you have the DAV:uid, you'll have to perform a SEARCH on the calendar
>> to the the url of the apointment. After that you can do a PROPPATCH.
>>
>> Appointments are somewhat special, because Exchange 2003 SP2 and later
>> will recreate it under certain circumstances, effectively modifying all
>> other ID properties (EntryId, etc). For all item types but appointment I
>> would rather store the permantUrl property.
>>
>> Kind regards,
>> Henning Krause
>>
>> "Dmitriy" <korz***@hotmail.com> wrote in message
>> news:OVpBJ0zDIHA.2004@TK2MSFTNGP06.phx.gbl...
>>> What is the best way to change existing appointment?
>>> Let's say we stored urn:schemas:calendar:uid and want to update it and
>>> add new property or something.
>>>
>>> Thanks,
>>> Dmitriy
>>>
>>
>
>
Author
16 Oct 2007 3:35 PM
Dmitriy
Hello Henning,

I was able to get
http://schemas.microsoft.com/mapi/proptag/x300B0102 and
http://schemas.microsoft.com/mapi/proptag/x81950102 properties, but not sure how to retreive
http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3

Thank you,
Dmitriy


Show quote
"Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de> wrote in message news:eXt$8u1DIHA.4752@TK2MSFTNGP04.phx.gbl...
> Hello,
>
> DAV:href will change when you change the subject in Outlook.
> http://schemas.microsoft.com/exchange/permanenturl will does not change
> unless the item is moved to another folder. The permanent url is constructed
> from the MAPI EntryID.
>
> DAV:uid is a string property - I would assume that it suffers from the same
> disadvantages as the DAV:id property
> (http://support.microsoft.com/kb/320749): Exchange string comparisons are
> case-insensitive.
>
> For appointments, I usually use the property
> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3,
> which is a binary property used by Outlook accros mailboxes to correlate
> meetings and meeting requests (http://support.microsoft.com/kb/899919). If
> you create the appointment yourself, you can set this property to an
> arbitrary value (I use Guid.NewGuid().ToByteArray() and convert the result
> to a Base64 encoded string).
>
> PR_SearchKey should also be suitable for identification (Property tag
> 0x300B0102).
>
> Kind regards,
> Henning
>
> "Dmitriy" <korz***@hotmail.com> wrote in message
> news:ucJZyT1DIHA.4296@TK2MSFTNGP04.phx.gbl...
>> This is very important news.
>>
>> If I understood it correctly, we CAN use DAV:uid for appointments ONLY but
>> NOT for other items?
>>
>> Or it would be safier to store
>> http://schemas.microsoft.com/exchange/permanenturl as our appointment ID?
>> What about DAV:href? Will it be recreated?
>>
>> Thanks,
>> Dmitriy
>>
>>
>> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
>> wrote in message news:efmIXN0DIHA.5788@TK2MSFTNGP05.phx.gbl...
>>> Hello Dmitry,
>>>
>>> if you have the DAV:uid, you'll have to perform a SEARCH on the calendar
>>> to the the url of the apointment. After that you can do a PROPPATCH.
>>>
>>> Appointments are somewhat special, because Exchange 2003 SP2 and later
>>> will recreate it under certain circumstances, effectively modifying all
>>> other ID properties (EntryId, etc). For all item types but appointment I
>>> would rather store the permantUrl property.
>>>
>>> Kind regards,
>>> Henning Krause
>>>
>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>> news:OVpBJ0zDIHA.2004@TK2MSFTNGP06.phx.gbl...
>>>> What is the best way to change existing appointment?
>>>> Let's say we stored urn:schemas:calendar:uid and want to update it and
>>>> add new property or something.
>>>>
>>>> Thanks,
>>>> Dmitriy
>>>>
>>>
>>
>>
>
Author
16 Oct 2007 4:03 PM
Henning Krause [MVP - Exchange]
Hello Dmitry,

which problem have you run into?

Did you receive an error message when retrieving the property?

Kind regards,
Henning Krause

"Dmitriy" <korz***@hotmail.com> wrote in message
news:eFw5VoAEIHA.3980@TK2MSFTNGP03.phx.gbl...
Hello Henning,

I was able to get
http://schemas.microsoft.com/mapi/proptag/x300B0102 and
http://schemas.microsoft.com/mapi/proptag/x81950102 properties, but not sure
how to retreive
http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3

Thank you,
Dmitriy


Show quote
"Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
wrote in message news:eXt$8u1DIHA.4752@TK2MSFTNGP04.phx.gbl...
> Hello,
>
> DAV:href will change when you change the subject in Outlook.
> http://schemas.microsoft.com/exchange/permanenturl will does not change
> unless the item is moved to another folder. The permanent url is
> constructed
> from the MAPI EntryID.
>
> DAV:uid is a string property - I would assume that it suffers from the
> same
> disadvantages as the DAV:id property
> (http://support.microsoft.com/kb/320749): Exchange string comparisons are
> case-insensitive.
>
> For appointments, I usually use the property
> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3,
> which is a binary property used by Outlook accros mailboxes to correlate
> meetings and meeting requests (http://support.microsoft.com/kb/899919). If
> you create the appointment yourself, you can set this property to an
> arbitrary value (I use Guid.NewGuid().ToByteArray() and convert the result
> to a Base64 encoded string).
>
> PR_SearchKey should also be suitable for identification (Property tag
> 0x300B0102).
>
> Kind regards,
> Henning
>
> "Dmitriy" <korz***@hotmail.com> wrote in message
> news:ucJZyT1DIHA.4296@TK2MSFTNGP04.phx.gbl...
>> This is very important news.
>>
>> If I understood it correctly, we CAN use DAV:uid for appointments ONLY
>> but
>> NOT for other items?
>>
>> Or it would be safier to store
>> http://schemas.microsoft.com/exchange/permanenturl as our appointment ID?
>> What about DAV:href? Will it be recreated?
>>
>> Thanks,
>> Dmitriy
>>
>>
>> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
>> wrote in message news:efmIXN0DIHA.5788@TK2MSFTNGP05.phx.gbl...
>>> Hello Dmitry,
>>>
>>> if you have the DAV:uid, you'll have to perform a SEARCH on the calendar
>>> to the the url of the apointment. After that you can do a PROPPATCH.
>>>
>>> Appointments are somewhat special, because Exchange 2003 SP2 and later
>>> will recreate it under certain circumstances, effectively modifying all
>>> other ID properties (EntryId, etc). For all item types but appointment I
>>> would rather store the permantUrl property.
>>>
>>> Kind regards,
>>> Henning Krause
>>>
>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>> news:OVpBJ0zDIHA.2004@TK2MSFTNGP06.phx.gbl...
>>>> What is the best way to change existing appointment?
>>>> Let's say we stored urn:schemas:calendar:uid and want to update it and
>>>> add new property or something.
>>>>
>>>> Thanks,
>>>> Dmitriy
>>>>
>>>
>>
>>
>
Author
16 Oct 2007 6:26 PM
Dmitriy
Yes,
"Name cannot begin with the '0' character, hexadecimal value 0x30. Line 1,
position 1651." doing SELECT searchrequest :
http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3.

Thanks,
Dmitriy


Show quote
"Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
wrote in message news:Onbtu4AEIHA.2268@TK2MSFTNGP02.phx.gbl...
> Hello Dmitry,
>
> which problem have you run into?
>
> Did you receive an error message when retrieving the property?
>
> Kind regards,
> Henning Krause
>
> "Dmitriy" <korz***@hotmail.com> wrote in message
> news:eFw5VoAEIHA.3980@TK2MSFTNGP03.phx.gbl...
> Hello Henning,
>
> I was able to get
> http://schemas.microsoft.com/mapi/proptag/x300B0102 and
> http://schemas.microsoft.com/mapi/proptag/x81950102 properties, but not
> sure how to retreive
> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3
>
> Thank you,
> Dmitriy
>
>
> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
> wrote in message news:eXt$8u1DIHA.4752@TK2MSFTNGP04.phx.gbl...
>> Hello,
>>
>> DAV:href will change when you change the subject in Outlook.
>> http://schemas.microsoft.com/exchange/permanenturl will does not change
>> unless the item is moved to another folder. The permanent url is
>> constructed
>> from the MAPI EntryID.
>>
>> DAV:uid is a string property - I would assume that it suffers from the
>> same
>> disadvantages as the DAV:id property
>> (http://support.microsoft.com/kb/320749): Exchange string comparisons are
>> case-insensitive.
>>
>> For appointments, I usually use the property
>> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3,
>> which is a binary property used by Outlook accros mailboxes to correlate
>> meetings and meeting requests (http://support.microsoft.com/kb/899919).
>> If
>> you create the appointment yourself, you can set this property to an
>> arbitrary value (I use Guid.NewGuid().ToByteArray() and convert the
>> result
>> to a Base64 encoded string).
>>
>> PR_SearchKey should also be suitable for identification (Property tag
>> 0x300B0102).
>>
>> Kind regards,
>> Henning
>>
>> "Dmitriy" <korz***@hotmail.com> wrote in message
>> news:ucJZyT1DIHA.4296@TK2MSFTNGP04.phx.gbl...
>>> This is very important news.
>>>
>>> If I understood it correctly, we CAN use DAV:uid for appointments ONLY
>>> but
>>> NOT for other items?
>>>
>>> Or it would be safier to store
>>> http://schemas.microsoft.com/exchange/permanenturl as our appointment
>>> ID?
>>> What about DAV:href? Will it be recreated?
>>>
>>> Thanks,
>>> Dmitriy
>>>
>>>
>>> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
>>> wrote in message news:efmIXN0DIHA.5788@TK2MSFTNGP05.phx.gbl...
>>>> Hello Dmitry,
>>>>
>>>> if you have the DAV:uid, you'll have to perform a SEARCH on the
>>>> calendar
>>>> to the the url of the apointment. After that you can do a PROPPATCH.
>>>>
>>>> Appointments are somewhat special, because Exchange 2003 SP2 and later
>>>> will recreate it under certain circumstances, effectively modifying all
>>>> other ID properties (EntryId, etc). For all item types but appointment
>>>> I
>>>> would rather store the permantUrl property.
>>>>
>>>> Kind regards,
>>>> Henning Krause
>>>>
>>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>>> news:OVpBJ0zDIHA.2004@TK2MSFTNGP06.phx.gbl...
>>>>> What is the best way to change existing appointment?
>>>>> Let's say we stored urn:schemas:calendar:uid and want to update it and
>>>>> add new property or something.
>>>>>
>>>>> Thanks,
>>>>> Dmitriy
>>>>>
>>>>
>>>
>>>
>>
Author
16 Oct 2007 8:55 PM
Henning Krause [MVP - Exchange]
Hello Dmitry,

this happens when you try to read an Exhange response containing these
properties into an XmlDocument or use an XmlReader.

Unfortunately, Exchange returns invalid XML in this case.

See
http://www.infinitec.de/articles/exchange/creatingwebdavrequestswithxmlreaderwriter.aspx
for a workaround.

Kind regards,
Henning


Show quote
"Dmitriy" <korz***@hotmail.com> wrote in message
news:ObZ2sHCEIHA.536@TK2MSFTNGP06.phx.gbl...
> Yes,
> "Name cannot begin with the '0' character, hexadecimal value 0x30. Line 1,
> position 1651." doing SELECT searchrequest :
> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3.
>
> Thanks,
> Dmitriy
>
>
> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
> wrote in message news:Onbtu4AEIHA.2268@TK2MSFTNGP02.phx.gbl...
>> Hello Dmitry,
>>
>> which problem have you run into?
>>
>> Did you receive an error message when retrieving the property?
>>
>> Kind regards,
>> Henning Krause
>>
>> "Dmitriy" <korz***@hotmail.com> wrote in message
>> news:eFw5VoAEIHA.3980@TK2MSFTNGP03.phx.gbl...
>> Hello Henning,
>>
>> I was able to get
>> http://schemas.microsoft.com/mapi/proptag/x300B0102 and
>> http://schemas.microsoft.com/mapi/proptag/x81950102 properties, but not
>> sure how to retreive
>> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3
>>
>> Thank you,
>> Dmitriy
>>
>>
>> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
>> wrote in message news:eXt$8u1DIHA.4752@TK2MSFTNGP04.phx.gbl...
>>> Hello,
>>>
>>> DAV:href will change when you change the subject in Outlook.
>>> http://schemas.microsoft.com/exchange/permanenturl will does not change
>>> unless the item is moved to another folder. The permanent url is
>>> constructed
>>> from the MAPI EntryID.
>>>
>>> DAV:uid is a string property - I would assume that it suffers from the
>>> same
>>> disadvantages as the DAV:id property
>>> (http://support.microsoft.com/kb/320749): Exchange string comparisons
>>> are
>>> case-insensitive.
>>>
>>> For appointments, I usually use the property
>>> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3,
>>> which is a binary property used by Outlook accros mailboxes to correlate
>>> meetings and meeting requests (http://support.microsoft.com/kb/899919).
>>> If
>>> you create the appointment yourself, you can set this property to an
>>> arbitrary value (I use Guid.NewGuid().ToByteArray() and convert the
>>> result
>>> to a Base64 encoded string).
>>>
>>> PR_SearchKey should also be suitable for identification (Property tag
>>> 0x300B0102).
>>>
>>> Kind regards,
>>> Henning
>>>
>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>> news:ucJZyT1DIHA.4296@TK2MSFTNGP04.phx.gbl...
>>>> This is very important news.
>>>>
>>>> If I understood it correctly, we CAN use DAV:uid for appointments ONLY
>>>> but
>>>> NOT for other items?
>>>>
>>>> Or it would be safier to store
>>>> http://schemas.microsoft.com/exchange/permanenturl as our appointment
>>>> ID?
>>>> What about DAV:href? Will it be recreated?
>>>>
>>>> Thanks,
>>>> Dmitriy
>>>>
>>>>
>>>> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
>>>> wrote in message news:efmIXN0DIHA.5788@TK2MSFTNGP05.phx.gbl...
>>>>> Hello Dmitry,
>>>>>
>>>>> if you have the DAV:uid, you'll have to perform a SEARCH on the
>>>>> calendar
>>>>> to the the url of the apointment. After that you can do a PROPPATCH.
>>>>>
>>>>> Appointments are somewhat special, because Exchange 2003 SP2 and later
>>>>> will recreate it under certain circumstances, effectively modifying
>>>>> all
>>>>> other ID properties (EntryId, etc). For all item types but appointment
>>>>> I
>>>>> would rather store the permantUrl property.
>>>>>
>>>>> Kind regards,
>>>>> Henning Krause
>>>>>
>>>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>>>> news:OVpBJ0zDIHA.2004@TK2MSFTNGP06.phx.gbl...
>>>>>> What is the best way to change existing appointment?
>>>>>> Let's say we stored urn:schemas:calendar:uid and want to update it
>>>>>> and
>>>>>> add new property or something.
>>>>>>
>>>>>> Thanks,
>>>>>> Dmitriy
>>>>>>
>>>>>
>>>>
>>>>
>>>
>
>
Author
17 Oct 2007 6:02 PM
Dmitriy
Henning,

So can we state that http://schemas.microsoft.com/mapi/proptag/x300B0102
(PR_SearchKey ) property will always be the same for once created
appointment?

Thanks,
Dmitriy




Show quote
"Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
wrote in message news:eetYebDEIHA.5360@TK2MSFTNGP03.phx.gbl...
> Hello Dmitry,
>
> this happens when you try to read an Exhange response containing these
> properties into an XmlDocument or use an XmlReader.
>
> Unfortunately, Exchange returns invalid XML in this case.
>
> See
> http://www.infinitec.de/articles/exchange/creatingwebdavrequestswithxmlreaderwriter.aspx
> for a workaround.
>
> Kind regards,
> Henning
>
>
> "Dmitriy" <korz***@hotmail.com> wrote in message
> news:ObZ2sHCEIHA.536@TK2MSFTNGP06.phx.gbl...
>> Yes,
>> "Name cannot begin with the '0' character, hexadecimal value 0x30. Line
>> 1, position 1651." doing SELECT searchrequest :
>> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3.
>>
>> Thanks,
>> Dmitriy
>>
>>
>> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
>> wrote in message news:Onbtu4AEIHA.2268@TK2MSFTNGP02.phx.gbl...
>>> Hello Dmitry,
>>>
>>> which problem have you run into?
>>>
>>> Did you receive an error message when retrieving the property?
>>>
>>> Kind regards,
>>> Henning Krause
>>>
>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>> news:eFw5VoAEIHA.3980@TK2MSFTNGP03.phx.gbl...
>>> Hello Henning,
>>>
>>> I was able to get
>>> http://schemas.microsoft.com/mapi/proptag/x300B0102 and
>>> http://schemas.microsoft.com/mapi/proptag/x81950102 properties, but not
>>> sure how to retreive
>>> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3
>>>
>>> Thank you,
>>> Dmitriy
>>>
>>>
>>> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
>>> wrote in message news:eXt$8u1DIHA.4752@TK2MSFTNGP04.phx.gbl...
>>>> Hello,
>>>>
>>>> DAV:href will change when you change the subject in Outlook.
>>>> http://schemas.microsoft.com/exchange/permanenturl will does not change
>>>> unless the item is moved to another folder. The permanent url is
>>>> constructed
>>>> from the MAPI EntryID.
>>>>
>>>> DAV:uid is a string property - I would assume that it suffers from the
>>>> same
>>>> disadvantages as the DAV:id property
>>>> (http://support.microsoft.com/kb/320749): Exchange string comparisons
>>>> are
>>>> case-insensitive.
>>>>
>>>> For appointments, I usually use the property
>>>> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3,
>>>> which is a binary property used by Outlook accros mailboxes to
>>>> correlate
>>>> meetings and meeting requests (http://support.microsoft.com/kb/899919).
>>>> If
>>>> you create the appointment yourself, you can set this property to an
>>>> arbitrary value (I use Guid.NewGuid().ToByteArray() and convert the
>>>> result
>>>> to a Base64 encoded string).
>>>>
>>>> PR_SearchKey should also be suitable for identification (Property tag
>>>> 0x300B0102).
>>>>
>>>> Kind regards,
>>>> Henning
>>>>
>>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>>> news:ucJZyT1DIHA.4296@TK2MSFTNGP04.phx.gbl...
>>>>> This is very important news.
>>>>>
>>>>> If I understood it correctly, we CAN use DAV:uid for appointments ONLY
>>>>> but
>>>>> NOT for other items?
>>>>>
>>>>> Or it would be safier to store
>>>>> http://schemas.microsoft.com/exchange/permanenturl as our appointment
>>>>> ID?
>>>>> What about DAV:href? Will it be recreated?
>>>>>
>>>>> Thanks,
>>>>> Dmitriy
>>>>>
>>>>>
>>>>> "Henning Krause [MVP - Exchange]"
>>>>> <newsgroups_rem***@this.infinitec.de>
>>>>> wrote in message news:efmIXN0DIHA.5788@TK2MSFTNGP05.phx.gbl...
>>>>>> Hello Dmitry,
>>>>>>
>>>>>> if you have the DAV:uid, you'll have to perform a SEARCH on the
>>>>>> calendar
>>>>>> to the the url of the apointment. After that you can do a PROPPATCH.
>>>>>>
>>>>>> Appointments are somewhat special, because Exchange 2003 SP2 and
>>>>>> later
>>>>>> will recreate it under certain circumstances, effectively modifying
>>>>>> all
>>>>>> other ID properties (EntryId, etc). For all item types but
>>>>>> appointment I
>>>>>> would rather store the permantUrl property.
>>>>>>
>>>>>> Kind regards,
>>>>>> Henning Krause
>>>>>>
>>>>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>>>>> news:OVpBJ0zDIHA.2004@TK2MSFTNGP06.phx.gbl...
>>>>>>> What is the best way to change existing appointment?
>>>>>>> Let's say we stored urn:schemas:calendar:uid and want to update it
>>>>>>> and
>>>>>>> add new property or something.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Dmitriy
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>
>>
>
Author
17 Oct 2007 9:11 PM
Henning Krause [MVP - Exchange]
Hello,

I would guess the search key remains stable as long as Exchange does not
recreate the element. I have no clue if it remains stable after this
happens.

But according to the KB article I mentioned earlier,
http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3
is a stable property.

Kind regards,
Henning Krause

Show quote
"Dmitriy" <korz***@hotmail.com> wrote in message
news:Oz%23hbfOEIHA.3848@TK2MSFTNGP05.phx.gbl...
> Henning,
>
> So can we state that http://schemas.microsoft.com/mapi/proptag/x300B0102
> (PR_SearchKey ) property will always be the same for once created
> appointment?
>
> Thanks,
> Dmitriy
>
>
>
>
> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
> wrote in message news:eetYebDEIHA.5360@TK2MSFTNGP03.phx.gbl...
>> Hello Dmitry,
>>
>> this happens when you try to read an Exhange response containing these
>> properties into an XmlDocument or use an XmlReader.
>>
>> Unfortunately, Exchange returns invalid XML in this case.
>>
>> See
>> http://www.infinitec.de/articles/exchange/creatingwebdavrequestswithxmlreaderwriter.aspx
>> for a workaround.
>>
>> Kind regards,
>> Henning
>>
>>
>> "Dmitriy" <korz***@hotmail.com> wrote in message
>> news:ObZ2sHCEIHA.536@TK2MSFTNGP06.phx.gbl...
>>> Yes,
>>> "Name cannot begin with the '0' character, hexadecimal value 0x30. Line
>>> 1, position 1651." doing SELECT searchrequest :
>>> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3.
>>>
>>> Thanks,
>>> Dmitriy
>>>
>>>
>>> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
>>> wrote in message news:Onbtu4AEIHA.2268@TK2MSFTNGP02.phx.gbl...
>>>> Hello Dmitry,
>>>>
>>>> which problem have you run into?
>>>>
>>>> Did you receive an error message when retrieving the property?
>>>>
>>>> Kind regards,
>>>> Henning Krause
>>>>
>>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>>> news:eFw5VoAEIHA.3980@TK2MSFTNGP03.phx.gbl...
>>>> Hello Henning,
>>>>
>>>> I was able to get
>>>> http://schemas.microsoft.com/mapi/proptag/x300B0102 and
>>>> http://schemas.microsoft.com/mapi/proptag/x81950102 properties, but not
>>>> sure how to retreive
>>>> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3
>>>>
>>>> Thank you,
>>>> Dmitriy
>>>>
>>>>
>>>> "Henning Krause [MVP - Exchange]" <newsgroups_rem***@this.infinitec.de>
>>>> wrote in message news:eXt$8u1DIHA.4752@TK2MSFTNGP04.phx.gbl...
>>>>> Hello,
>>>>>
>>>>> DAV:href will change when you change the subject in Outlook.
>>>>> http://schemas.microsoft.com/exchange/permanenturl will does not
>>>>> change
>>>>> unless the item is moved to another folder. The permanent url is
>>>>> constructed
>>>>> from the MAPI EntryID.
>>>>>
>>>>> DAV:uid is a string property - I would assume that it suffers from the
>>>>> same
>>>>> disadvantages as the DAV:id property
>>>>> (http://support.microsoft.com/kb/320749): Exchange string comparisons
>>>>> are
>>>>> case-insensitive.
>>>>>
>>>>> For appointments, I usually use the property
>>>>> http://schemas.microsoft.com/mapi/id/{6ED8DA90-450B-101B-98DA-00AA003F1305}/0x3,
>>>>> which is a binary property used by Outlook accros mailboxes to
>>>>> correlate
>>>>> meetings and meeting requests
>>>>> (http://support.microsoft.com/kb/899919). If
>>>>> you create the appointment yourself, you can set this property to an
>>>>> arbitrary value (I use Guid.NewGuid().ToByteArray() and convert the
>>>>> result
>>>>> to a Base64 encoded string).
>>>>>
>>>>> PR_SearchKey should also be suitable for identification (Property tag
>>>>> 0x300B0102).
>>>>>
>>>>> Kind regards,
>>>>> Henning
>>>>>
>>>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>>>> news:ucJZyT1DIHA.4296@TK2MSFTNGP04.phx.gbl...
>>>>>> This is very important news.
>>>>>>
>>>>>> If I understood it correctly, we CAN use DAV:uid for appointments
>>>>>> ONLY but
>>>>>> NOT for other items?
>>>>>>
>>>>>> Or it would be safier to store
>>>>>> http://schemas.microsoft.com/exchange/permanenturl as our appointment
>>>>>> ID?
>>>>>> What about DAV:href? Will it be recreated?
>>>>>>
>>>>>> Thanks,
>>>>>> Dmitriy
>>>>>>
>>>>>>
>>>>>> "Henning Krause [MVP - Exchange]"
>>>>>> <newsgroups_rem***@this.infinitec.de>
>>>>>> wrote in message news:efmIXN0DIHA.5788@TK2MSFTNGP05.phx.gbl...
>>>>>>> Hello Dmitry,
>>>>>>>
>>>>>>> if you have the DAV:uid, you'll have to perform a SEARCH on the
>>>>>>> calendar
>>>>>>> to the the url of the apointment. After that you can do a PROPPATCH.
>>>>>>>
>>>>>>> Appointments are somewhat special, because Exchange 2003 SP2 and
>>>>>>> later
>>>>>>> will recreate it under certain circumstances, effectively modifying
>>>>>>> all
>>>>>>> other ID properties (EntryId, etc). For all item types but
>>>>>>> appointment I
>>>>>>> would rather store the permantUrl property.
>>>>>>>
>>>>>>> Kind regards,
>>>>>>> Henning Krause
>>>>>>>
>>>>>>> "Dmitriy" <korz***@hotmail.com> wrote in message
>>>>>>> news:OVpBJ0zDIHA.2004@TK2MSFTNGP06.phx.gbl...
>>>>>>>> What is the best way to change existing appointment?
>>>>>>>> Let's say we stored urn:schemas:calendar:uid and want to update it
>>>>>>>> and
>>>>>>>> add new property or something.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Dmitriy
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>
>>>
>>
>
>

AddThis Social Bookmark Button