Creating an appointment use ? .Update (?,?) .send??

  • Thread starter Thread starter Scott Townsend
  • Start date Start date
S

Scott Townsend

I'm still having issues with creating appointments via CDO.

They show up when someone else looks at my calendar when they look at them
in the By Category view, but not in the day/week/month view.

If I have the user open up the Appointment and save it, it shows up almost
instantly...

We have a copy of Outlook Spy and the only difference seems to be some
sender info.

These are just regular appointments not meetings.

In looking for Examples we found some code samples that had the following in
it..

ApptItem.Update True, True
ApptItem.Send

We do not currently pass any parameters to .Update and are not doing a .Send


What are the Parameters for the .Update and should we be doing the .Send?

Thanks,
Scott<-
 
You don't need to send it unless you are sending out meeting requests.
Update has 2 possible arguments: MakePermanent and RefreshObject. I almost
never use either one.

From the CDO Help file:

makePermanent

Optional. Boolean. A value of True indicates that the property cache is
flushed and all changes are committed in the underlying message store. False
indicates that the property cache is flushed but not committed to persistent
storage. The default value is True.

refreshObject

Optional. Boolean. A value of True indicates that the property cache is
reloaded from the values in the underlying message store. False indicates
that the property cache is not reloaded. The default value is False.

If the appointments aren't shown until someone opens and saves them then you
are missing some preoperty or properties or they aren't being resolved
correctly until the item is opened and saved most likely.

Have you looked at the property tags and CDO code samples at
www.cdolive.com?
 
I tried putting in

ApptItem.Update true, true
ApptItem.Send false, false, false
and it didn't like it.

I removed the .send and was not getting an error. It also seemed to fix the
issue.

thanks!
Scott<-
 
Just FYI, if you're going to send (meeting requests) you need to fill in all
the correct properties, such as at least one required recipient and resolve
that recipient. You can get information on what's needed by viewing the Help
in the Object Browser on .Send for an AppointmentItem.
 
Back
Top