Open xand49 opened 9 years ago
bump.
Try adding the line:
$request->SavedItemFolderId->FolderId->Id=$folder_id;
after the $request = new EWSType_CreateItemType();
where $folder_id is your stupidly long microsoft folder id!!!!
(I also answered your same question on stackoverflow, please mark as the answer there if it works, thanks:-)
had an error as per stack by just adding that line, added the following block and I received no error messages, however it doesn't actually add the event.
$request->SavedItemFolderId = new EWSType_TargetFolderIdType(); $request->SavedItemFolderId->FolderId = new EWSType_FolderIdType(); $request->SavedItemFolderId->FolderId->Id=$folderID;
you could also try:
$request->SavedItemFolderId->DistinguishedFolderId->Id = 'calendar'; $request->SavedItemFolderId->DistinguishedFolderId->Mailbox->EmailAddress = 'email@domain.com'
using the email address of the folder (that's easy to set in exchange)
I have spent a couple of days trying numerous variations of the above. I'm generally getting one of these errors depending on the settings: "The request failed schema validation: The 'id' attribute is not declared." "The request failed schema validation: The 'Id' attribute is invalid"
I have the (stupidly long) folder id value.
Has anybody solved this problem?
Could you please post an example if you got this to work.
It might be handy to know if you didn't get it to work, maybe James will give us some help?
(bump) Does anybody have an example of creating a booking for a RoomMailbox?
related: https://github.com/jamesiarmes/php-ews/issues/154
Although It never works for me
I'm attempting to plug a php based calendar management system into exchange 2007 calendars.
I have the below code setup at present.
$subject = 'Appointment with ..';
$request->Items->CalendarItem->Body->_ = <<<EOD
This will setup an event in the users personal calendar just fine, but what I need to do is to get it to post to a public folder calendar which I have the folderID for.
If anyone could assist it would be greatly appreciated.