Problem getting calendar event with recurring using EWS Java client API 1.2

I am using EWS 1.2 Java client API for getting calendar events. I am able to get Recurring information of the event which is created through API's 
appointment.save(), but not able to get recurring information of the event created in OWA interface, I get following error during the bind:
===================================
Exception: Connection not established
microsoft.exchange.webservices.data.EWSHttpException: Connection not established
at microsoft.exchange.webservices.data.HttpClientWebRequest.throwIfConnIsNull(HttpClientWebRequest.java:394)
at microsoft.exchange.webservices.data.HttpClientWebRequest.getResponseHeaders(HttpClientWebRequest.java:280)
at microsoft.exchange.webservices.data.ExchangeServiceBase.processHttpResponseHeaders(ExchangeServiceBase.java:1045)
at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:58)
at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:144)
at microsoft.exchange.webservices.data.ExchangeService.internalBindToItems(ExchangeService.java:1364)
at microsoft.exchange.webservices.data.ExchangeService.bindToItem(ExchangeService.java:1407)
at microsoft.exchange.webservices.data.ExchangeService.bindToItem(ExchangeService.java:1430)
at microsoft.exchange.webservices.data.Appointment.bind(Appointment.java:70)
at microsoft.exchange.webservices.data.Appointment.bindToRecurringMaster(Appointment.java:176)
at microsoft.exchange.webservices.data.Appointment.bindToRecurringMaster(Appointment.java:152)
============================
This happens if I use: Appointment.bindToRecurringMaster or Item.bind(service, id, appointmentProps) or findAppointments(). 
Works fine for events which doesn't have recurring. Only issue with events containing recurrence created through OWA. These are the propertySet:
new PropertySet(BasePropertySet.IdOnly,
                                ItemSchema.Subject,
                                AppointmentSchema.AppointmentType,
                                AppointmentSchema.DeletedOccurrences,
                                AppointmentSchema.FirstOccurrence,
                                AppointmentSchema.LastOccurrence,
                                AppointmentSchema.IsRecurring,
                                AppointmentSchema.Location,
                                AppointmentSchema.ModifiedOccurrences,
                                AppointmentSchema.OriginalStart,
                                AppointmentSchema.Recurrence,
                                AppointmentSchema.Start,
                                AppointmentSchema.End);
If I remove Recurrence it gives the response. 
Thanks.

I am using EWS 1.2 Java client API for getting calendar events. I am able to get Recurring information of the event which is created through API's 
appointment.save(), but not able to get recurring information of the event created in OWA interface, I get following error during the bind:
===================================
Exception: Connection not established
microsoft.exchange.webservices.data.EWSHttpException: Connection not established
at microsoft.exchange.webservices.data.HttpClientWebRequest.throwIfConnIsNull(HttpClientWebRequest.java:394)
at microsoft.exchange.webservices.data.HttpClientWebRequest.getResponseHeaders(HttpClientWebRequest.java:280)
at microsoft.exchange.webservices.data.ExchangeServiceBase.processHttpResponseHeaders(ExchangeServiceBase.java:1045)
at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:58)
at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:144)
at microsoft.exchange.webservices.data.ExchangeService.internalBindToItems(ExchangeService.java:1364)
at microsoft.exchange.webservices.data.ExchangeService.bindToItem(ExchangeService.java:1407)
at microsoft.exchange.webservices.data.ExchangeService.bindToItem(ExchangeService.java:1430)
at microsoft.exchange.webservices.data.Appointment.bind(Appointment.java:70)
at microsoft.exchange.webservices.data.Appointment.bindToRecurringMaster(Appointment.java:176)
at microsoft.exchange.webservices.data.Appointment.bindToRecurringMaster(Appointment.java:152)
============================
This happens if I use: Appointment.bindToRecurringMaster or Item.bind(service, id, appointmentProps) or findAppointments(). 
Works fine for events which doesn't have recurring. Only issue with events containing recurrence created through OWA. These are the propertySet:
new PropertySet(BasePropertySet.IdOnly,
                                ItemSchema.Subject,
                                AppointmentSchema.AppointmentType,
                                AppointmentSchema.DeletedOccurrences,
                                AppointmentSchema.FirstOccurrence,
                                AppointmentSchema.LastOccurrence,
                                AppointmentSchema.IsRecurring,
                                AppointmentSchema.Location,
                                AppointmentSchema.ModifiedOccurrences,
                                AppointmentSchema.OriginalStart,
                                AppointmentSchema.Recurrence,
                                AppointmentSchema.Start,
                                AppointmentSchema.End);
If I remove Recurrence it gives the response. 
Thanks.
I am also facing the same problem.. If anyone can help, it would be helpful. I can see the response xml has the data, but while parsing the xml the error is generated in getResponseCode() in HttpClientWebRequest

Similar Messages

  • Problem in accessing the Web Service using standalone Java Client

    Dear Friends,
    Hi,
    I have an active web service and I have tested the same with XML Spy and Apache Axis and is giving me the output perfectly. For the same, I have developed a standalone Java client but getting problem in fetching the output.
    The Exception is :
    <Jan 4, 2006 5:54:16 PM GMT+05:30> <Info> <WebService> <BEA-220025> <Handler weblogic.webservice.core.handler.ClientHandler threw
    an exception from its handleResponse method.
    The exception was:
    javax.xml.rpc.JAXRPCException: java.io.IOException: Received a response from url: http://10.20.15.59:18004/amountToWords which did
    not have a valid SOAP content-type: text/html;charset=ISO-8859-1. .>
    SOAP Fault **************** Exception during processing: java.io.IOException: Received a response from url: http://10.20.15.59:18
    004/amountToWords which did not have a valid SOAP content-type: text/html;charset=ISO-8859-1.
    (see Fault Detail for stacktrace)
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.io.IOException: Received a response from url: http://10.2
    0.15.59:18004/amountToWords which did not have a valid SOAP content-type: text/html;charset=ISO-8859-1.
    (see Fault Detail for sta
    cktrace)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:566)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:419)
    at HelloClient.main(HelloClient.java:100)
    I have tried some ways to set the content type explicitly but the results are same(throwing an exception).
    I appreciate you all for helping me out of this.
    Thanks
    VR

    Hi Amit
    We also have this issue with weblogic webservices. Did you get any resolution for this issue.
    When the service is executed for lesser number of hits, all the responses are processed properly. But as load (Number of hits for the same service) increases, few responses are failed to be parsed in the web service client. We could confirm that the producer responds with proper content type (text/xml)
    Any help or pointers will be greatly appreciated.
    Thanks,
    Finny

  • [E2010][EWS-XML][JAVA]How to get the properties of meeting rooms in Exchange 2010 using EWS Java API

    When you look at meeting room properties in Outlook 2010, you can see 'City', 'Country/Region' and 'Department' information.
    Is there any way to get this information using EWS Java API? 

    Hi Glen,
    I am able to understand what u have said, but do not know how to implement it with meeting rooms....
    If i am implementing
    "Get all appointments between startDate and endDate in the specified folder, including recurring meeting occurrences" in ews-java-api, as you have mentioned above, i am able to get only my appointments from the start date to end date , as i
    have given my email id and password, how to get my organization meeting room details, booked or not.
    static ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
    public static void main(String[] args) throws Exception {
    // TODO Auto-generated method stub
    ExchangeCredentials credentials = new WebCredentials("[email protected]", "zzzz");
    service.setCredentials(credentials);
    try {
    System.out.println("Check");
    service.autodiscoverUrl("[email protected]",new RedirectionUrlCallback());
    } catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    NameResolutionCollection nameResolutions = service.resolveName("SDB1",ResolveNameSearchLocation.DirectoryOnly, true);
    System.out.println("nameResolutions==="+nameResolutions.getCount());
    for(NameResolution nameResolution : nameResolutions)
    System.out.println("NAME==="+nameResolution.getContact().getDisplayName());
    The above code gives me the output like, the meeting room in my organization with word SDB1 are
    Output:
    nameResolutions===2
    NAME===SDB1- TELCON - 1
    NAME===SDB1-TELCON - 2
     for. eg. I need to know today at what are the appointments in the room SDB1-TELCON2 and who all have booked the room.
    I do not know how to implement for the meeting room can you please help me how to give it.
    Thanks in advance.

  • Why am I getting calendar events twice?

    Why am I getting calendar events twice on my iPhone? I am sharing calendar with my wifes iPhone. My duplicates code in the same color, my wife gets duplicates in different colors.  I suspect this is a set up problem but help here would be appreciated.

    I figured it out.  It has to do with which calendars you want displayed.  Duplications come from multiple calender selections.

  • Strange problem when syncing events with Google Ca...

    I'm trying to sync all my calendar events with Google Calendar. Everything works perfectly if I add or update events with my N9. All the changes and new events are synced to Google Calendar so that they are visible in web browser.
    But if I make changes or create new events with my computer (with web browser) those events are not visible in N9!!! When I tap "Syncronize" N9 show's how many events were added or updated, but they are not visible in the calendar.
    Everything worked before, but now the last visible event in the calendar (made with computer) is on October 25.
    I've tried set this account up with Mail for Exchange and CalDAV. Same problem with both of them...
    Any ideas why one account works, but another does not with same kind of settings!?
    EDIT:
    I just found this:
    http://forums.internettablettalk.com/showthread.ph​p?s=c06b3c1ac31df96bb331589237572569&p=1245121#pos​...
    So, it's probably a bug in PR1.3  :-(
    Solved!
    Go to Solution.

    Solution found!
    http://talk.maemo.org/showthread.php?p=1244209

  • Delete calendar event with own notification text

    Hello Admin: I am new here and I don't know if this the correct community. Please feel free to move it in the correct coummnity
    Hello everyone.
    may you help me?
    I would like to delete a calendar event with my own notification text. Would it be possible, if I delete an calendar event that I could enter a comment before the declined message will be sent to the organizer?
    Kind regards
    Jane

    I have a similar issue.
    I am doing custom prints of each event in Calendar. I pull from each event the properties I want (time, location, summary, description) and format them nicely for an 8.5" x 11" print. I want to combine this newly created document with other files already attached to the event. However, I have not been able to figure out how to reference this property (or maybe it is considered an element?).
    When opening a single Calendar event with textEdit, you can see a line that starts with "ATTACH;FILENAME=", but referencing this line in applescript eludes me.
    How do we reference files that are attached to events in Calendar when using applescript?

  • Can i share a calendar event with another iphone?

    My husband and kids and I all have IPhone 4's.  Is there any way to "share" calendar events with each other as we do contacts??

    You need to create a calendar, that you share.
    After creating the calendar, click on the Calendar-Button in the upper right corner of the iCal Window, then select ,"Share" from the drop down menu.
    Choose "Share with only people you invite".
    Then add your event to this calendar.

  • Send a mail on other's behalf using EWS java api

    Hi ,
     I  am using EWS java API for delgate uses.
     I have added a delegate by using following code 
                                DelegateUser newDelegate = new DelegateUser("[email protected]");
       newDelegate.permissions.setInboxFolderPermissionLevel(DelegateFolderPermissionLevel.Editor);
       Mailbox mailbox = new Mailbox("[email protected]");
       ArrayList<DelegateUser> delegates = new ArrayList<DelegateUser>();
       delegates.add(newDelegate);
       service.addDelegates(mailbox, MeetingRequestsDeliveryScope.DelegatesAndMe, delegates);
      it got added sucessfully.
    Now i ([email protected]) am trying to send a mail to somebody won behalf of  "[email protected]".
    How to achive this using java EWS ?
    Below is the message object i have created.
                                    msg = new EmailMessage(service);
    msg.setSubject("Used EWS web services by deepak");
    msg.setBody(MessageBody
    .getMessageBodyFromText("Sent using the EWS Managed API."));
    msg.getToRecipients().add("[email protected]");

    Hi,
    Actually, we have a dedicated support team regarding the Microsoft Exchange Server Development. I recommend you ask your question about EWS java API on our Exchange Server Development forum which is staffed by more experts specializing in this kind of problems.
    For your convenience:
    http://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdevelopment
    Thanks for your understanding.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Invoke BPEL process using a java client - NullPointer Exception

    Hi, We are trying to call a BPEL process using a java client from our Web Application. For some reason the BPEL engine just logs a NullPointerException and exits.
    The same SOAP request when through SOAP UI tool works great.
    Any help in resolving this is highly appreciated!
    We are getting the below exception--
    <2006-09-22 09:40:53,687> <DEBUG> <default.collaxa.cube.ws> SOAPRequestProvider
    java.lang.NullPointerException
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:269)
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:129)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    -----------------

    Hi, We are trying to call a BPEL process using a java client from our Web Application. For some reason the BPEL engine just logs a NullPointerException and exits.
    The same SOAP request when through SOAP UI tool works great.
    Any help in resolving this is highly appreciated!
    We are getting the below exception--
    <2006-09-22 09:40:53,687> <DEBUG> <default.collaxa.cube.ws> SOAPRequestProvider
    java.lang.NullPointerException
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:269)
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:129)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    -----------------

  • Invoke BPEL process using a java client - NullPointerException

    Hi, We are trying to call a BPEL process using a java client from our Web Application. For some reason the BPEL engine just logs a NullPointerException and exits.
    The same SOAP request when through SOAP UI tool works great.
    Any help in resolving this is highly appreciated!
    We are getting the below exception--
    <2006-09-22 09:40:53,687> <DEBUG> <default.collaxa.cube.ws> SOAPRequestProvider
    java.lang.NullPointerException
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processBPELMessage(SOAPRequestProvider.java:269)
    at com.collaxa.cube.ws.soap.oc4j.SOAPRequestProvider.processMessage(SOAPRequestProvider.java:129)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:869)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
    at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:460)
    at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
    at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:177)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    -----------------

    Hi,
    Please ensure that you include the SOAP Header "SOAPAction" in your request. Most importantly, the value for that should be enclosed within double quotes.
    For eg;
    req.setRequestHeader("SOAPAction", '"process"');

  • Getting calendar events from exchange 2003

    Hi All,
    We have a requirement of getting the calendar items from exchange server 2003 using web dav , jakarta slide
    initially we made a connection and retrieve the mail items from server
    we use search method of org.webdav.lib.httpclient.method.search method to search and retrieve the responses
    can any one say how to build an XML request for retrieving calendar events from exchange and how to parse the search method response from and retrieving it.
    it would be more helpful if any one throw some light on this
    thanks in advance,
    Sasikumar

    myscreen-sasi wrote:
    We have a requirement of getting the calendar items from exchange server 2003 using web dav , jakarta slide This forum is for Sun Calendar Server and has nothing to do with Microsoft Exchange or web-dav programming. I suggest asking on a different forum e.g. java programming:
    http://forums.sun.com/forum.jspa?forumID=31
    Regards,
    Shane.

  • How to queue custom events with out using af:calientListener.- onKeyUp.

    Hi,
    I have a custom component ( extending richinput text).
    defined a new attribute called "onkeyup" and added necessary logic in Renderer. Some thing like
    write.writeAttribute("onkeyup" , "handleEvent()");
    I rendered the java script code too ..... in my custom renderer. ( I neigther want to write java script in metaContainer of document tag nor wants to use resource tag..)
    and the handleEvent code is something like this.
    function handleEvent()
    In this method i want to write the code which pushes my custom event to the queue.
    some thing like this..
    component = event.getSource();
    AdfCustomEvent.queue(component, "customEvent",{payload:component.getSubmittedValue()}, true);
    event.cancel();
    Usually if use a clientListener then it will call the method {  handleEvent(event)  } passing event parameter so that we can get the source of that event.
    But as i dont want to use the clientEventListener.... as of now... i can't get the component because i don have the event object with my method.
    So could any one please letme know , how can i queue my custom event in to my customcomponent... with out using ClientListeners.
    Edited by: mchepuri on Nov 9, 2009 10:04 AM

    Hi,
    AFAIK, you cannot queue an event to the serverListener without a clientListener.
    -Arun

  • How to filter Outlook for Mac calendar events by category using AppleScript

    Hi all --
    I'm trying to write an Applescript on OSX to filter Outlook for Mac 2011 calendar events based on event categories, e.g. find all events tagged as "Conference". For example, I have a calendar event named "WWDC" that is found by the following script:
    tell application "Microsoft Outlook"
      set theCategoryConference to first category whose name is "Conference"
      set theConferenceList to every calendar event whose (subject is "WWDC")
      display dialog "There were " & (count of theConferenceList) & " Conferences."
      set theEvent to item 1 of items of theConferenceList
      display dialog "Categories contains conference: " & (categories of theEvent contains {theCategoryConference})
    end tell
    The above finds 1 event, and the final line displays "true" as this event has been tagged with the Conference category.
    However what I really want to do is find all such events. The following fails to match any events:
    set theConferenceList to every calendar event whose categories contains {theCategoryConference}
    ThIs seems to me like it should work, but returns 0 matching events. Is there a different syntax to use, or is this a limitation of Outlook for Mac that perhaps doesn't allow filtering events based on a nested collection (the categories attribute on calendar event objects)?
    Thanks!
    Ramon

    Hello
    I don't have Outlook 2011 but only guess here.
    Generally speaking, AppleScript's "whose" filter is very limited and does not support list containment test. So perhaps you'd have to resort to something like the following script, which actually scans the events for test.
    tell application "Microsoft Outlook"
        my events_with_categories({category "Conference"})
    end tell
    on events_with_categories(cats)
            list cats : list of categories to be matched
            return list : list of calendar events whose categories contain every item of cats
        script o
            property ee : {}
            property cc : {}
            tell application "Microsoft Outlook"
                set ee to calendar events
                repeat with e in my ee
                    set e to e's contents
                    set cc to e's categories
                    set _match to true
                    repeat with c in cats
                        set c to c's contents
                        if c is not in my cc then
                            set _match to false
                            exit repeat
                        end if
                    end repeat
                    if _match then set end of my ee to e
                end repeat
                return my ee's contents
            end tell
        end script
        tell o to run
    end events_with_categories
    Notes.
    * Script is not tested.
    * IF this works but is too slow, we may try to speed it up by retrieving categories of events (list of lists) in one statement, by which we can dramatically reduce the total number of Apple Events to send.
    Good luck,
    H

  • I can't seem to get calendar events created on my iphone to syc to the icloud calendar

    I am using an iPhone 4 and all of a sudden, I can't get my calendar events on my phone to up sync to the icloud.  Contacts work great from phone to cloud..but events don't work at all.
    Help!

    First check that all your settings are correct, that calendar syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the calendars you are using are in your 'iCloud' account and not an 'On My Mac', 'On My Phone' or other non iCloud account (you can do this by clicking/tapping the calendar button in the top left corner of the application ), non iCloud calendars will not sync.
    If you are sure that everything is set up correctly and your calendars are in the iCloud account, you might try unchecking calendar syncing in the iCloud settings, restarting your device and then re-enabling calendar syncing settings.

  • Highlight calendar events with topic colors

    1. I've pretty well set up iClound on my PC and my iPhone. Love the Contacts, Mail, Calendar, functions. I've set all the categories and selected colors for each category on the calendar. However, I want to have each event with the appropriate color highlighted through the text for that event. I get the event color in the form of a dot on the left, but the text isn't highlighted. What can I do.
    2. Also, on my iPhone with the APP link to the store, when I go through the phone to download an app, it asks for my apple ID but it shows a different (and old) email address. I've reset the ID through iTunes, app store, on my iPhone in Settings, on iCloud in settings, yet when I try to go to the app store through
    my iPhone I get the old ID and I can't change it. HELP

    Sergio,
    The color of an event is dictated by the color assinged to the calendar it's on.
    Tap Calendars then tap Edit to either changed the color of an existing calendar or to add a new one.
    Matt

Maybe you are looking for