This content has been marked as final. Show 4 replies
Calendar events retrieval does work fine on Exchange 2007. Can you try creating a calendar event with a particular subject say 'test cfexchangeCalendar tag' and then try retrieving it using cfexchangeCalendar as in:
<cfexchangecalendar action="get" name = "theUID" connection = "testconn1">
<cfexchangeFilter name="subject" value="cfexchangeCalendar">
If this retrieves the newly created event, then it might be a data issue with some events for that account. Could you check this and then let me know what you observe?
Thanks & Regards,
i created an entry in outlook, called "Test CF". Then i checked in the Outlook Web Access, that the calendar is synchronized.
Then i used that code attached and got htis Error:
Requested Exchange resource was not found on the server.
The error occurred in D:\IntranetServer\apache\htdocs\cronjobs\exchangecal.cfm: line 10
9 : <cfexchangecalendar action="get" name = "theUID" connection = "testconn1">
10 : <cfexchangeFilter name="subject" value="Test CF">
11 : </cfexchangeCalendar>
12 : <cfdump var="#theUID#">
Also tried without filter, 'cause i have only one entry in my calendar, but got the same error.
I would use CF to enter events in the exchange calender, based on entries in our intranet calendar.
I can query my Mails with the same connection. Maybe the exchange is misconfigured?
Now tried another example code and got this:
Exchange resource conflict error.
Possible reasons: - The client has provided a value, the semantics of which are not appropriate for the property , for example, trying to set a read-only property. - Cannot put a resource if all ancestors do not already exist.
The error occurred in D:\IntranetServer\apache\htdocs\cronjobs\exchangecal.cfm: line 47
45 : server="mailer.company.com"
46 : event="#sEvent#"
47 : result="theUID" protocol="https">
48 : <!--- Output the UID of the new event. --->
49 : <cfif isDefined("theUID")>
I guess the error occures in matter of formatting date / time values. I entered the date 2007-09-22 and time as 08:00
Is there a special rule how to format this values for exchange?
I tried reproducing the issue with both the code samples you provided, but they do work fine at my end.
Can you try creating a simple event directly in Outlook client/Outlook on Web and then try retrieving it using CF.
The 2nd piece of code where you have a form for entering calendar event details do work fine for me and calendar events get created and retrieved correctly.
So, could you check with your Exchange Admin as to whether there is any issue with calendar configuration on Exchange side? I remember initially I had some issues sending mail using <cfmail> tag on Exchange 2007. Anonymous SMTP connection permission was missing for which explicit permission was set by our exchange admin using exchange management shell command. I suggest you check once with Exchange admin whether this is a similar issue for calendar events.
Thanks & Regards,