Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Wed, 7 Nov 2007 10:36:07 -0800,    group: microsoft.public.exchange.development        back       


The extended property attribute combination is invalid. Exchange 2007 Web Services   
The extended property attribute combination is invalid. I'm trying to set 
the label color of an appointment and I just can't get the right attribute 
combination. My code is:

PathToExtendedFieldType label = new PathToExtendedFieldType();
Guid mapiGuid = new Guid("{00062002-0000-0000-C000-000000000046}");
label.PropertySetId = mapiGuid.ToString("D");
label.PropertyId = 0x8214;
label.PropertyIdSpecified = true;
label.PropertyType = MapiPropertyTypeType.String;
ExtendedPropertyType labelColor = new ExtendedPropertyType();
labelColor.ExtendedFieldURI = label;
labelColor.Item = "0x3";

This obviously does not work. I have tried many different variations and 
nothing seems to work. I used Outlook Spy and I see the MAPI property in 
there and the guid and the value. What am I doing wrong here. I can't 
believe MS made it this difficult to programatically change a label color. 
Thanks a lot guys!

Any help would be appreciated.

Cheers,
~ck
date: Wed, 7 Nov 2007 10:36:07 -0800   author:   CK

Re: The extended property attribute combination is invalid. Exchange 2007 Web Services   
Hello,

the proper value type of the 0x8214 property is integer. Have you tried 
that?

Kind regards,
Henning

"CK"  wrote in message 
news:fCnYi.1102$0Q5.1101@nlpi070.nbdc.sbc.com...
> The extended property attribute combination is invalid. I'm trying to set 
> the label color of an appointment and I just can't get the right attribute 
> combination. My code is:
>
> PathToExtendedFieldType label = new PathToExtendedFieldType();
> Guid mapiGuid = new Guid("{00062002-0000-0000-C000-000000000046}");
> label.PropertySetId = mapiGuid.ToString("D");
> label.PropertyId = 0x8214;
> label.PropertyIdSpecified = true;
> label.PropertyType = MapiPropertyTypeType.String;
> ExtendedPropertyType labelColor = new ExtendedPropertyType();
> labelColor.ExtendedFieldURI = label;
> labelColor.Item = "0x3";
>
> This obviously does not work. I have tried many different variations and 
> nothing seems to work. I used Outlook Spy and I see the MAPI property in 
> there and the guid and the value. What am I doing wrong here. I can't 
> believe MS made it this difficult to programatically change a label color. 
> Thanks a lot guys!
>
> Any help would be appreciated.
>
> Cheers,
> ~ck
>
>
>
>
date: Wed, 7 Nov 2007 22:17:27 +0100   author:   Henning Krause [MVP - Exchange]

Re: The extended property attribute combination is invalid. Exchange 2007 Web Services   
Yes that was it. I figured it out after I posted. It works great now. 
Thanks!!!
>> PathToExtendedFieldType label = new PathToExtendedFieldType();
>> Guid mapiGuid = new Guid("{00062002-0000-0000-C000-000000000046}");
>> label.PropertySetId = mapiGuid.ToString("D");
>> label.PropertyId = 0x8214;
>> label.PropertyIdSpecified = true;
>> label.PropertyType = MapiPropertyTypeType.Integer;
>> ExtendedPropertyType labelColor = new ExtendedPropertyType();
>> labelColor.ExtendedFieldURI = label;
>> labelColor.Item = "3";



"Henning Krause [MVP - Exchange]"  
wrote in message news:eTCZSTYIIHA.5208@TK2MSFTNGP04.phx.gbl...
> Hello,
>
> the proper value type of the 0x8214 property is integer. Have you tried 
> that?
>
> Kind regards,
> Henning
>
> "CK"  wrote in message 
> news:fCnYi.1102$0Q5.1101@nlpi070.nbdc.sbc.com...
>> The extended property attribute combination is invalid. I'm trying to set 
>> the label color of an appointment and I just can't get the right 
>> attribute combination. My code is:
>>
>> PathToExtendedFieldType label = new PathToExtendedFieldType();
>> Guid mapiGuid = new Guid("{00062002-0000-0000-C000-000000000046}");
>> label.PropertySetId = mapiGuid.ToString("D");
>> label.PropertyId = 0x8214;
>> label.PropertyIdSpecified = true;
>> label.PropertyType = MapiPropertyTypeType.String;
>> ExtendedPropertyType labelColor = new ExtendedPropertyType();
>> labelColor.ExtendedFieldURI = label;
>> labelColor.Item = "0x3";
>>
>> This obviously does not work. I have tried many different variations and 
>> nothing seems to work. I used Outlook Spy and I see the MAPI property in 
>> there and the guid and the value. What am I doing wrong here. I can't 
>> believe MS made it this difficult to programatically change a label 
>> color. Thanks a lot guys!
>>
>> Any help would be appreciated.
>>
>> Cheers,
>> ~ck
>>
>>
>>
>>
>
date: Wed, 7 Nov 2007 14:09:42 -0800   author:   CK

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us