1 Reply Latest reply: Oct 14, 2005 2:57 PM by 414326 RSS

    Determining ownership of appointments...

    420984
      Hi there,

      We are trying to determine the userid of the owner of the appointments that we
      receive back from the Calendar API, however this seems to be impossible to
      determine given the data we receive back from the API. We only receive the
      email address of the agenda owner, not the userid.

      For a call to fetchEventsByRange with multiple handles, this is quite
      difficult. We need to determine the userid of the appointment owner as the
      multiple handles means that we are scanning several agendas, however it seems
      we cannot use a call to Session.getHandle with the email address so we can't
      then determine the user name. There does seem to be first and last name
      information avaialble, but this is never going to be unique enough to fetch on.
      We have worked around this problem currently - we call fetchEventsByRange
      multiple times each with a single handle so we have some context, but this is
      not at all performant with large numbers of handles (typically around 40), and would prefer to make a single call to fetchEventsByRange to get our data.

      Is there any way to determine the owning userId of an appointment given that we
      only know the email address?

      Thanks in advance,
      Peter Smith.
        • 1. Re: Determining ownership of appointments...
          414326
          Hi Peter,

          I assume you are using version 9042 of the sdk since you wouldn't have these problems with the 10g version. I would recommend updating to the 10g version.
          agendas, however it seems
          we cannot use a call to Session.getHandle with the
          email address so we can't
          then determine the user name.
          Note that in 10g added features, we have added support for more X400 strings to get a Handle:

          ex:
          session.getHandle("?/GUID=FF06486495A8EDB0E030578C40091720/");
          session.getHandle("?/EMAIL=john@example.com/");
          ...
          Is there any way to determine the owning userId of an
          appointment given that we
          only know the email address?
          When you say "owning userId" you mean ORGANIZER userID?

          From the icalendar data you receive from the fetch call, you also know the X-ORACLE-GUID which is unique:
          ORGANIZER;X-ORACLE-GUID=FF06486495A8EDB0E030578C40091720;CN=john:mailto:john@example.com

          As a workaround for 9042, If you can have a mapping of your userId <-> guid, then you could get the info you need?

          Hope this answers your questions!

          Regards,
          Jean-philippe