Automating Creation of Calendar Events

C

Cam

Is there any way to automatically create a calendar
appointment from an application and have it go directly
to another person's calendar without them having to
recieve it as an email and approve of the event?

We created a program that is able to add appointments to
the calendar of the person who is currently logged onto
the local machine without any input but if the program
specifies that other people are to recieve the
appointment, an email is sent to them which they have to
approve.

What if the person who is creating the appointment has
access to the person's calendar that the appointment
needs to go to?

Thanks,
Cameron
 
P

Peter Huang [MSFT]

Hi Cameron,

What do you mean by the person A can access to the person B's calendar?
Did you mean the person A can logon to the MAPI session using the person
B's profile?
If so you can just logon as the person B and add an appointment to his
calendar directly.

In addition, the application that create a calendar is outlook VBA , VB or
VB.NET and etc?
If you can logon as another person's (person B) profile, you can try to use
the CDO 1.2.x.

If you have further question, please feel free to let me know.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
 
C

Cam

The application is not written in c++, VB, Outlook VBA
or .Net. It accesses Outlook through the COM interface.

Person A has been given permission to add calendar items
to Person B's calendar and can do so from person A's
Outlook without scheduling a meeting.

Where can I find information about the CDO?

Really, what I would like is for Person A to click a
button in our application and assign a calendar item to
Person B without Person B having to approve said item.
Any ideas?

Thanks,
Cameron
 
P

Peter Huang [MSFT]

Hi Cameron,

Here is helpful link about CDO.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexch55/ht
ml/msdn_introcdo.asp

In addition, I write some code in VB that may help you understand how to
use CDO.(I don't know what language you develop your application from your
last post. )

Private Sub Command1_Click()
Dim os As mapi.Session
Dim fd As mapi.Folder
Dim ms As mapi.AppointmentItem
Set os = New mapi.Session
os.Logon "outlook", "", False, True, 0, True
Set fd = os.GetDefaultFolder(mapi.CdoDefaultFolderCalendar)
Set ms = fd.Messages.Add
With ms
.Subject = "Created using VB"
.Location = "Conference Room"
.StartTime = "9/12/2003 9:00 AM"
.EndTime = "9/12/2003 2:00 PM"
End With
ms.Update True
os.Logoff
Set ms = Nothing
Set fd = Nothing
Set os = Nothing
End Sub

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top