exchange appointment keywords
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
exchange appointment keywords

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Ken Wigle
Guest





Posted: Wed Dec 14, 2005 5:58 pm    Post subject: exchange appointment keywords Reply with quote

All,

I have searched everywhere for an example using the keywords property of
the iappointment CDO object and cannot find anything. I am using Exchange
2003 and have the following basic code:

With iAppt

.StartTime = "#" & StartDate & " 08:00:00 AM#"
.EndTime = "#" & EndDate & " 05:01:00 PM#"
.AllDayEvent = True
.Subject = Subject
.Location = Location
.TextBody = TextBody
.BusyStatus = "OOF"
.MeetingStatus = "Tentative"

End With

I am doing a few other things like saving it to a public folder and passing
the above paramaters like Subject, Location, etc. How can I add in a
statement setting the keywords field to "Vacation"? The web app needs to
categorize the request as being vacation or time off but I cannot simply say
.keywords = "Vacation"
since the field is a variant? How do I use this field for this very simply
purpose?

Can someone please just post a snippet of code that I can plug in that will
assign a word to the keywords field?

Thank you very much!
Ken

Back to top
Glen Scales [MVP]
Guest





Posted: Thu Dec 15, 2005 1:59 am    Post subject: Re: exchange appointment keywords Reply with quote

Kewords is a multivalued property so you need to make sure you use the
correct datatype eg something like this should work okay

With iAppt
.StartTime = StartTime
.EndTime = EndTime
.Subject = Subject
.Location = Location
.TextBody = TextBody
.Keywords = array("test","one","two","three")
End With

Cheers
Glen



"Ken Wigle" <KenWigle@discussions.microsoft.com> wrote in message
news:49E6BB20-9E84-4844-BFCD-83D761B4294A@microsoft.com...
Quote:
All,

I have searched everywhere for an example using the keywords property of
the iappointment CDO object and cannot find anything. I am using Exchange
2003 and have the following basic code:

With iAppt

.StartTime = "#" & StartDate & " 08:00:00 AM#"
.EndTime = "#" & EndDate & " 05:01:00 PM#"
.AllDayEvent = True
.Subject = Subject
.Location = Location
.TextBody = TextBody
.BusyStatus = "OOF"
.MeetingStatus = "Tentative"

End With

I am doing a few other things like saving it to a public folder and
passing
the above paramaters like Subject, Location, etc. How can I add in a
statement setting the keywords field to "Vacation"? The web app needs to
categorize the request as being vacation or time off but I cannot simply
say
.keywords = "Vacation"
since the field is a variant? How do I use this field for this very simply
purpose?

Can someone please just post a snippet of code that I can plug in that
will
assign a word to the keywords field?

Thank you very much!
Ken
Back to top
Ken Wigle
Guest





Posted: Thu Dec 15, 2005 5:58 pm    Post subject: Re: exchange appointment keywords Reply with quote

Thank you so much for replying. It looks good to me but when I added the code
..keywords = array("Off")

I get the error that: 'Array' is a type and cannot be used as an expression

Any ideas?

Thanks again,
Ken

"Glen Scales [MVP]" wrote:

Quote:
Kewords is a multivalued property so you need to make sure you use the
correct datatype eg something like this should work okay

With iAppt
.StartTime = StartTime
.EndTime = EndTime
.Subject = Subject
.Location = Location
.TextBody = TextBody
.Keywords = array("test","one","two","three")
End With

Cheers
Glen



"Ken Wigle" <KenWigle@discussions.microsoft.com> wrote in message
news:49E6BB20-9E84-4844-BFCD-83D761B4294A@microsoft.com...
All,

I have searched everywhere for an example using the keywords property of
the iappointment CDO object and cannot find anything. I am using Exchange
2003 and have the following basic code:

With iAppt

.StartTime = "#" & StartDate & " 08:00:00 AM#"
.EndTime = "#" & EndDate & " 05:01:00 PM#"
.AllDayEvent = True
.Subject = Subject
.Location = Location
.TextBody = TextBody
.BusyStatus = "OOF"
.MeetingStatus = "Tentative"

End With

I am doing a few other things like saving it to a public folder and
passing
the above paramaters like Subject, Location, etc. How can I add in a
statement setting the keywords field to "Vacation"? The web app needs to
categorize the request as being vacation or time off but I cannot simply
say
.keywords = "Vacation"
since the field is a variant? How do I use this field for this very simply
purpose?

Can someone please just post a snippet of code that I can plug in that
will
assign a word to the keywords field?

Thank you very much!
Ken





Back to top
Glen Scales [MVP]
Guest





Posted: Fri Dec 16, 2005 1:58 am    Post subject: Re: exchange appointment keywords Reply with quote

Sorry that was VB6 code i posted didn't relize you where using .NET

In .NET you just pass an array of objects so

..Keywords = New Object() {"Off"}

Should work

Cheers
Glen

"Ken Wigle" <KenWigle@discussions.microsoft.com> wrote in message
news:AE2A8124-055F-4263-AADF-6F8B62C2B6BF@microsoft.com...
Quote:
Thank you so much for replying. It looks good to me but when I added the
code
.keywords = array("Off")

I get the error that: 'Array' is a type and cannot be used as an
expression

Any ideas?

Thanks again,
Ken

"Glen Scales [MVP]" wrote:

Kewords is a multivalued property so you need to make sure you use the
correct datatype eg something like this should work okay

With iAppt
.StartTime = StartTime
.EndTime = EndTime
.Subject = Subject
.Location = Location
.TextBody = TextBody
.Keywords = array("test","one","two","three")
End With

Cheers
Glen



"Ken Wigle" <KenWigle@discussions.microsoft.com> wrote in message
news:49E6BB20-9E84-4844-BFCD-83D761B4294A@microsoft.com...
All,

I have searched everywhere for an example using the keywords property
of
the iappointment CDO object and cannot find anything. I am using
Exchange
2003 and have the following basic code:

With iAppt

.StartTime = "#" & StartDate & " 08:00:00 AM#"
.EndTime = "#" & EndDate & " 05:01:00 PM#"
.AllDayEvent = True
.Subject = Subject
.Location = Location
.TextBody = TextBody
.BusyStatus = "OOF"
.MeetingStatus = "Tentative"

End With

I am doing a few other things like saving it to a public folder and
passing
the above paramaters like Subject, Location, etc. How can I add in a
statement setting the keywords field to "Vacation"? The web app needs
to
categorize the request as being vacation or time off but I cannot
simply
say
.keywords = "Vacation"
since the field is a variant? How do I use this field for this very
simply
purpose?

Can someone please just post a snippet of code that I can plug in that
will
assign a word to the keywords field?

Thank you very much!
Ken



Back to top
Ken Wigle
Guest





Posted: Tue Dec 20, 2005 5:58 pm    Post subject: Re: exchange appointment keywords Reply with quote

Thank you so very much - it worked! I looked everywhere to find an example
of assigning a value to a multivalued object but could not find anything.
You have helped me a lot and I really appreciate it!

Ken

"Glen Scales [MVP]" wrote:

Quote:
Sorry that was VB6 code i posted didn't relize you where using .NET

In .NET you just pass an array of objects so

..Keywords = New Object() {"Off"}

Should work

Cheers
Glen

"Ken Wigle" <KenWigle@discussions.microsoft.com> wrote in message
news:AE2A8124-055F-4263-AADF-6F8B62C2B6BF@microsoft.com...
Thank you so much for replying. It looks good to me but when I added the
code
.keywords = array("Off")

I get the error that: 'Array' is a type and cannot be used as an
expression

Any ideas?

Thanks again,
Ken

"Glen Scales [MVP]" wrote:

Kewords is a multivalued property so you need to make sure you use the
correct datatype eg something like this should work okay

With iAppt
.StartTime = StartTime
.EndTime = EndTime
.Subject = Subject
.Location = Location
.TextBody = TextBody
.Keywords = array("test","one","two","three")
End With

Cheers
Glen



"Ken Wigle" <KenWigle@discussions.microsoft.com> wrote in message
news:49E6BB20-9E84-4844-BFCD-83D761B4294A@microsoft.com...
All,

I have searched everywhere for an example using the keywords property
of
the iappointment CDO object and cannot find anything. I am using
Exchange
2003 and have the following basic code:

With iAppt

.StartTime = "#" & StartDate & " 08:00:00 AM#"
.EndTime = "#" & EndDate & " 05:01:00 PM#"
.AllDayEvent = True
.Subject = Subject
.Location = Location
.TextBody = TextBody
.BusyStatus = "OOF"
.MeetingStatus = "Tentative"

End With

I am doing a few other things like saving it to a public folder and
passing
the above paramaters like Subject, Location, etc. How can I add in a
statement setting the keywords field to "Vacation"? The web app needs
to
categorize the request as being vacation or time off but I cannot
simply
say
.keywords = "Vacation"
since the field is a variant? How do I use this field for this very
simply
purpose?

Can someone please just post a snippet of code that I can plug in that
will
assign a word to the keywords field?

Thank you very much!
Ken






Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB