473,662 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LotusNotes 6 Meeting Invitation Generated in VBA - Cannot Perform Calendar Operation

2 New Member
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.
_______________ _______________ _______________ _______________ _
Expand|Select|Wrap|Line Numbers
  1. Function CreateNotesMeeting()
  2. On Error GoTo ErrorHandler
  3. Dim objNotesSession As Object
  4. Dim objNotesDbDirectory As Object
  5. Dim objNotesDatabase As Object
  6. Dim objNotesDocument As Object
  7. Dim objNotesRichTextItem As Object
  8. Dim StrBody As String
  9. Dim Username As String
  10. Dim StartTime As String
  11. Dim EndTime As String
  12. Dim arrRequiredAttendeeName As String
  13. Dim arrRequiredAttendeeNameAndEmail As String
  14.  
  15. Username = GetCurrentUserName()
  16. StrBody = "Testing Invitation"
  17. StartTime = "3/22/08 01:30:00 PM"
  18. EndTime = "03/22/08 02:30:00 PM"
  19.  
  20. AttendeeNameAndEmail = ""&Username & "/PGV/JD"
  21.  
  22. Set objNotesSession = CreateObject("Notes.NotesSession")
  23. Set objNotesDatabase = objNotesSession.GETDATABASE("ServerName", "MAIL\" &Username & ".NSF")
  24.  
  25. If Not objNotesDatabase.ISOPEN Then Exit Function
  26. Set objNotesDocument = objNotesDatabase.CREATEDOCUMENT
  27.  
  28. Set objNotesDtFrom = objNotesSession.CREATEDATETIME(StartTime)
  29. Set objNotesDtTo = objNotesSession.CREATEDATETIME(EndTime)
  30. Set objNotesRichTextItem = objNotesDocument.CREATERICHTEXTITEM("Body")
  31.  
  32.  
  33. Call objNotesDocument.REPLACEITEMVALUE("AppointmentType", "3")
  34. Call objNotesDocument.REPLACEITEMVALUE("Form", "Appointment")
  35. Call objNotesDocument.REPLACEITEMVALUE("Subject", "Another Test - Counter")
  36. Call objNotesDocument.REPLACEITEMVALUE("Location", "Test")
  37. Call objNotesDocument.REPLACEITEMVALUE("Room", "Test")
  38. Call objNotesDocument.REPLACEITEMVALUE("Body", StrBody)
  39. Call objNotesRichTextItem.EMBEDOBJECT(1454, "", "C:\Test\Test.snp", "")
  40. Call objNotesDocument.REPLACEITEMVALUE("From", objNotesSession.Username)
  41. Call objNotesDocument.REPLACEITEMVALUE("Chair", objNotesSession.Username)
  42. Call objNotesDocument.REPLACEITEMVALUE("$Alarm", 1)
  43. Call objNotesDocument.REPLACEITEMVALUE("$AlarmOffset", -30)
  44. Call objNotesDocument.REPLACEITEMVALUE("CalendarDateTime", objNotesDtFrom.LSLOCALTIME)
  45. Call objNotesDocument.REPLACEITEMVALUE("STARTDATETIME", objNotesDtFrom.LSLOCALTIME)
  46. Call objNotesDocument.REPLACEITEMVALUE("EndDateTime", objNotesDtTo.LSLOCALTIME)
  47. Call objNotesDocument.APPENDITEMVALUE("RequiredAttendees", AttendeeNameAndEmail)
  48. Call objNotesDocument.APPENDITEMVALUE("AltRequiredNames", AttendeeNameAndEmail)
  49. Call objNotesDocument.APPENDITEMVALUE("INetRequiredNames", AttendeeNameAndEmail)
  50. Call objNotesDocument.APPENDITEMVALUE("xSendTo", AttendeeNameAndEmail)
  51. Call objNotesDocument.APPENDITEMVALUE("NoticeType", "I")
  52. Call objNotesDocument.REPLACEITEMVALUE("$UpdatedBy", objNotesSession.Username)
  53. Call objNotesDocument.REPLACEITEMVALUE("_ViewIcon", 158)
  54.  
  55. Call objNotesDocument.Send(False, AttendeeNameAndEmail)
  56. Call objNotesDocument.Save(True, True)
  57.  
  58. Set objNotesRichTextItem = Nothing
  59. Set objNotesDtTo = Nothing
  60. Set objNotesDtFrom = Nothing
  61. Set objNotesDocument = Nothing
  62. Set objNotesDatabase = Nothing
  63. Set objNotesDbDirectory = Nothing
  64. Set objNotesSession = Nothing
  65.  
  66. Exit Function
  67.  
  68. ErrorHandler:
  69.     MsgBox Err.Number & " - " & Err.Description
  70.  
  71. End Function
_______________ _______________ _______________ _______________ ______
Mar 21 '08 #1
1 4027
sandeeprmenon
2 New Member
I am really disappointed that I absolutely got no replies to my request.. :-(
Mar 26 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1089
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".
1
2183
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
2
6352
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...
6
11293
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.
0
2154
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
0
1233
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...
1
6154
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...
2
2541
ddtpmyra
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
0
8432
marktang
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...
0
8344
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,...
0
8857
Oralloy
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...
0
8764
jinu1996
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...
1
8546
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,...
1
6186
isladogs
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...
0
4180
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...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1752
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.