I am writing a process that loads an office 365 exchange calendar from an external database. I have the functionality working. Howver, it is not efficient. I am looping through several hundred records similar to:
<cfloop query="myQuery">
<cfset myEvent = StructNew()>
<cfset myEvent.AllDayEvent = "no">
<cfset myEvent.Subject = "#mySubject#">
<cfset myEvent.StartTime = "#myStartTime#">
<cfset myEvent.EndTime = "#myEndTime#">
<cfset myEvent.Message = " "#myMessage#"">
<!--- Create Event --->
<cfexchangecalendar action="create" connection="testconn1" event="#myEvent#" result="theUID">
</cfloop>
This is working, however it is slow and sometimes i get: "The request has exceeded the allowable time limit" I do not want to up the time limit. I would like, however, to make this process faster. I am almost 100% positive the bottleneck is the fact that I am creating the event hundreds of times, rather than once. The query called is very fast and only run once. Is it possible to pass multiple events to the cfexchangecalendar create tag rather than one event at a time? Or, does anyone have any suggestions for making this process run quicker?
Where are the specifications for the structure we pass to the cfexchangecalendar via the event variable?
Thanks