Title:
Bug 75003:There is no way that I can find to specify the name of the calendar for <CFEXCHANGE> to use
| View in TrackerStatus/Resolution/Reason: To Fix//
Reporter/Name(from Bugbase): Reed Powell / Reed Powell (Reed Powell)
Created: 01/15/2009
Components: CFExchange
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 12
Problem:
There is no way that I can find to specify the name of the calendar for <CFEXCHANGE> to use. If the user associated with the username/password for the connection has multiple calendars, there does not appear to be any means for accessing the "secondary" calendars (ie, those created by the user). OWE is able to display the calendar, so this would lead me to believe that the API is capable of dealing with multiple calendars.
The <cfexchangeconnection folder="[mailbox folder path]" syntax is only for retrieving the names of the folders, which would include the name of the calendar folders – but nothing in the query returned identifies the type of folder for the list of folder names returned, so there is no easy way to determine which are calendars.
If you are reading mail messages via <cfexchangemail> then you can use the FOLDER= attribute, but there is no corresponding attribute I can find with <cfexchangecalendar> to specify the foldername of the calendar you want to use. There is a similar problem with <CFEXCHANGECONTACT> and <CFEXCHANGETASK>.
It looks like this is just a void area in the CF implementation of interfacing with the API.
Method:
Do this and you only see the items in the "primary" calendar for the exchange user:
<cftry>
<cfexchangeconnection action="OPEN" connection="exchangeConnection" server="#request.msxserver#" username="#username#" mailboxname="#mailboxname#" password="#password#" protocol="http" >
<cfexchangeconnection action="getsubfolders" connection="exchangeConnection" name="x" folder="test calendar" >
<cfcatch type="any"><BR>ERROR: CANNOT LOGIN TO MAILBOX<Cfabort></cfcatch>
</cftry>
<cfdump var="#x#">
Getting calendar data ...
<cfexchangecalendar action = "get"
name ="RoomInfo"
connection ="exchangeConnection">
<cfexchangefilter name = "starttime"
from = "#dateToDisplay# 00:00" to="#dateToDisplay# 23:59" />
</cfexchangecalendar>
Closing connection to server
<cfexchangeconnection action = "close" connection = "exchangeConnection" />
<cfdump var="#roominfo#">
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037270
External Customer Info:
External Company:
External Customer Name: Reed Powell
External Customer Email: 0C7666B046112672992015D5
External Test Config: 01/15/2009
Attachments:
Comments: