Reservation Room Programmability

Hello, I am new at lotus.Can you help me? I need to create Meeting and Room Reservation from my application.

Create meeting is not a problem, but a have a trouble with resource reservation. I trying to send invite for selected Room and fail.

It shows at Resource Center, but does not proceed.

When I trying to delete it, the pop-up message appear "This repeatable request was create in the old version of lotus. Try to delete it from view.”

Can you provide a C&C schema for reservation room(resource) or some documentation on creating, removing and updating reservations programmatically.

My code below.

NotesDocument Invit = nBase.CreateDocument();

NotesDocument document = nBase.GetDocumentByUNID(meeting.LotusID);

Invit.ReplaceItemValue(“RoomRequired”, “1”);

Invit.ReplaceItemValue(“OrgState”, “5”);

Invit.ReplaceItemValue(“$RefOptions”, “1”);

Invit.ReplaceItemValue(“$Orig”, meeting.LotusID);

Invit.ReplaceItemValue(“RQStatus”, “T”);

Invit.ReplaceItemValue(“Appointmenttype”, “3”);

Invit.ReplaceItemValue(“ResourceType”, “1”);

Invit.ReplaceItemValue(“$BusyPriority”, “1”);

Invit.ReplaceItemValue(“$BusyName”,“CN=Room1/O=Site1”);

Invit.ReplaceItemValue(“$PublicAccess”, “1”);

Invit.ReplaceItemValue(“$CSVersion”, “2”);

Invit.ReplaceItemValue(“ApptUNID”, meeting.LotusID);

Invit.ReplaceItemValue(“NoticeType”, “I”);

Invit.ReplaceItemValue(“SMTPKeepNotesItems”, “1”);

Invit.ReplaceItemValue(“Capacity”, 1);

Invit.ReplaceItemValue(“Chair”, “CN=Name1/OU=Group1/O=Company1”);

Invit.ReplaceItemValue(“Altchair”, «CN=Name1/OU=Group1/O=Company1”);

Invit.ReplaceItemValue(“Principal”, «CN=Name1/OU=Group1/O=Company1”);

Invit.ReplaceItemValue(“$Altprincipal”,«CN=Name1/OU=Group1/O=Company1”);

Invit.ReplaceItemValue(“From”, «CN=Name1/OU=Group1/O=Company1”);

Invit.ReplaceItemValue(“ReservedBy”, «CN=Name1/OU=Group1/O=Company1”);

Invit.ReplaceItemValue(“ReservedFor”, «CN=Name1/OU=Group1/O=Company1”);

Invit.ReplaceItemValue(“StartDateTime”, meeting.StartDate);

Invit.ReplaceItemValue(“StartDate”, meeting.StartDate);

Invit.ReplaceItemValue(“StartTime”, meeting.StartDate);

Invit.ReplaceItemValue(“EndDateTime”, meeting.EndDate);

Invit.ReplaceItemValue(“$NoPurge”, meeting.EndDate);

Invit.ReplaceItemValue(“Topic”, meeting.Subject);

Invit.ReplaceItemValue(“Subject”, meeting.Subject);

Invit.ReplaceItemValue(“RoomToReserve”, “CN=Room1/O=Site1”);

Invit.ReplaceItemValue(“ResourceName”, “Room1/Site1”);

Invit.ReplaceItemValue(“RequiredResources”,“Room1/Site1”);

Invit.ReplaceItemValue(“SendTo”, “CN=Room1/O=Site1”);

Invit.ReplaceItemValue(“Room”, “Room1/Site1” );

Invit.ReplaceItemValue(“Form”, “SpecialComputeForm”);

Invit.ComputeWithForm(false, false); clean temp variable

Invit.ReplaceItemValue(“Form”, “Reservation”);

Invit.MakeResponse(document);

object obj = new string[1] { “Room1/Site1” };

Invit.Send(false, ref obj);

Subject: Learn from my example C&S code

Susan Bulloch and I did a session at Lotusphere in which I demoed an application that does much of what you are trying to achieve. You can find links to the slides and application download here: http://www.lotusguru.com/lotusguru/LGBlog.nsf/d6plinks/20100125-8228B7

hth