Combining bit & peices from different discussion forums, I created this program (see below) to send meeting invitation from Lotus Notes using VBA. Program successfully sends the invitation to all required parties but throws the following error when I try to process meeting counters or if I try to cancel the meeting from my calendar.
"Unable to send mail; multiple matches found in Name & Address Book(s)"
I removed all entries in my local address book to avoid any conflicts. Interesting I am able to perform mail functions with the calendar entry (like send memo to invities).
The bottom line is that I can't perform calendar functions once I send out the invitations.
Can someone help with figure out why this is happening? I would really appreciate your help.
_______________ _______________ _______________ _______________ _ - Function CreateNotesMeeting()
-
On Error GoTo ErrorHandler
-
Dim objNotesSession As Object
-
Dim objNotesDbDirectory As Object
-
Dim objNotesDatabase As Object
-
Dim objNotesDocument As Object
-
Dim objNotesRichTextItem As Object
-
Dim StrBody As String
-
Dim Username As String
-
Dim StartTime As String
-
Dim EndTime As String
-
Dim arrRequiredAttendeeName As String
-
Dim arrRequiredAttendeeNameAndEmail As String
-
-
Username = GetCurrentUserName()
-
StrBody = "Testing Invitation"
-
StartTime = "3/22/08 01:30:00 PM"
-
EndTime = "03/22/08 02:30:00 PM"
-
-
AttendeeNameAndEmail = ""&Username & "/PGV/JD"
-
-
Set objNotesSession = CreateObject("Notes.NotesSession")
-
Set objNotesDatabase = objNotesSession.GETDATABASE("ServerName", "MAIL\" &Username & ".NSF")
-
-
If Not objNotesDatabase.ISOPEN Then Exit Function
-
Set objNotesDocument = objNotesDatabase.CREATEDOCUMENT
-
-
Set objNotesDtFrom = objNotesSession.CREATEDATETIME(StartTime)
-
Set objNotesDtTo = objNotesSession.CREATEDATETIME(EndTime)
-
Set objNotesRichTextItem = objNotesDocument.CREATERICHTEXTITEM("Body")
-
-
-
Call objNotesDocument.REPLACEITEMVALUE("AppointmentType", "3")
-
Call objNotesDocument.REPLACEITEMVALUE("Form", "Appointment")
-
Call objNotesDocument.REPLACEITEMVALUE("Subject", "Another Test - Counter")
-
Call objNotesDocument.REPLACEITEMVALUE("Location", "Test")
-
Call objNotesDocument.REPLACEITEMVALUE("Room", "Test")
-
Call objNotesDocument.REPLACEITEMVALUE("Body", StrBody)
-
Call objNotesRichTextItem.EMBEDOBJECT(1454, "", "C:\Test\Test.snp", "")
-
Call objNotesDocument.REPLACEITEMVALUE("From", objNotesSession.Username)
-
Call objNotesDocument.REPLACEITEMVALUE("Chair", objNotesSession.Username)
-
Call objNotesDocument.REPLACEITEMVALUE("$Alarm", 1)
-
Call objNotesDocument.REPLACEITEMVALUE("$AlarmOffset", -30)
-
Call objNotesDocument.REPLACEITEMVALUE("CalendarDateTime", objNotesDtFrom.LSLOCALTIME)
-
Call objNotesDocument.REPLACEITEMVALUE("STARTDATETIME", objNotesDtFrom.LSLOCALTIME)
-
Call objNotesDocument.REPLACEITEMVALUE("EndDateTime", objNotesDtTo.LSLOCALTIME)
-
Call objNotesDocument.APPENDITEMVALUE("RequiredAttendees", AttendeeNameAndEmail)
-
Call objNotesDocument.APPENDITEMVALUE("AltRequiredNames", AttendeeNameAndEmail)
-
Call objNotesDocument.APPENDITEMVALUE("INetRequiredNames", AttendeeNameAndEmail)
-
Call objNotesDocument.APPENDITEMVALUE("xSendTo", AttendeeNameAndEmail)
-
Call objNotesDocument.APPENDITEMVALUE("NoticeType", "I")
-
Call objNotesDocument.REPLACEITEMVALUE("$UpdatedBy", objNotesSession.Username)
-
Call objNotesDocument.REPLACEITEMVALUE("_ViewIcon", 158)
-
-
Call objNotesDocument.Send(False, AttendeeNameAndEmail)
-
Call objNotesDocument.Save(True, True)
-
-
Set objNotesRichTextItem = Nothing
-
Set objNotesDtTo = Nothing
-
Set objNotesDtFrom = Nothing
-
Set objNotesDocument = Nothing
-
Set objNotesDatabase = Nothing
-
Set objNotesDbDirectory = Nothing
-
Set objNotesSession = Nothing
-
-
Exit Function
-
-
ErrorHandler:
-
MsgBox Err.Number & " - " & Err.Description
-
-
End Function
_______________ _______________ _______________ _______________ ______
1 4027
I am really disappointed that I absolutely got no replies to my request.. :-(
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: info |
last post by:
The next meeting of the Philadelphia XML User Group will be on
Wednesday, March 9th at 6:00 p.m. The meeting is hosted by Elsevier, in
the Curtis Center on Independence Mall in Philadelphia. A map and
directions can be found at our website:
http://www.xmlphilly.org/calendar.htm.
This month's speaker will be Joe Gangemi, addressing "The XML/SGML
Conundrum".
|
by: Jordan Bruce |
last post by:
*******************************************************
ONTARIO CANADA INFORMIX USER GROUP (OCIUG)
http://www.iiug.org/ociug
NEXT MEETING: WEDNESDAY, JULY 14
*******************************************************
Dear OCIUG member,
Our next meeting is an all-day event this coming Wednesday, July 15 at
the IBM training facility in Markham (directions below). Continental
|
by: Kamyk |
last post by:
Hello all!
I have created a function in VB which generate appointment in Outlook.
Everything is OK, except one thing. I cannot send it automatically using a
button in Access, because I don`t know what is the code to send it
automatically. I noticed that if I click on Calendar>"click on selected
appointment">menu>Appointment>Invite Atendees everything is going well and
this appointment is sent to attendees given on the list.
My question...
|
by: Rushwire |
last post by:
Does anybody know how to send a meeting request using an ics/vcs (VCalendar)
attachment from an asp.net page. I don't want my users to have to double
click on the attachment but rather that it is simply recognised automatically
as a meeting request.
The article below shows an example of very close to what I am trying to do.
The difference being that I want the email to be sent as a meeting request
not as an
attached ics file.
|
by: U S Contractors Offering Service A Non-profit |
last post by:
This Sunday the 26th 2006 there will
be Music @ Tue Nov Inbox
Reply
Craig Somerford
to me
show details
9:54 pm (26 minutes ago)
#1St "CLICK" HeAt frOm A blanket
--http://mail.google.com/mail/?realattid=f_3n2tmv&attid=0.1&disp=inline&view=att&th=10f0d56e8cb478be
24 oct 2006
| |
by: Christie |
last post by:
I am having a hard time sending meeting updates to attendees. I can
get the updated meeting to save to the organizer's calendar, but then
when I send it the meeting is sent to the attendee as a new meeting
instead of an update (It seems that Exchange assigns a new UID when
the Save method is called, so the attendees' calendar can't link it
with the original UID?!). If I try to send without saving first, the
old meeting is sent...
|
by: GraemeC |
last post by:
I have a database that is used to book venues and assign people to those venues. The person doing the booking can send an appointment request from Access to an individuals Outlook calendar. This part of the system works fine.
I can also send a cancelled appointment request from Access to the same individual for the same appointment but for some reason Outlook is not recognising the cancel request as being for the original appointment so when...
|
by: ddtpmyra |
last post by:
Hi,
Can you send meeting request invitation thru PHP code and automatic update recipient Microsoft Calendar? Anybody who did similar development?
thanks,
DM
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |