Results 1 to 10 of 11

Thread: Reply to an appointment invitation

Hybrid View

  1. #1
    Join Date
    Mar 2014
    Posts
    6
    Rep Power
    1

    Default Reply to an appointment invitation

    I am using ZCS 8.0, use soap api for our application. Need to get the reply from an invitee for an appointment - I am calling GetAppointment SOAP Command and able to get the accept/reject/tentative kind of response back but I am unable to retrieve the reply message as sent by the invitee. Please let me know which command or soap message I need to use to get that information.
    Thanks for the help.

  2. #2
    Join Date
    Mar 2014
    Posts
    6
    Rep Power
    1

    Default

    Still using ZCS 8.0 and soap api for our application. Need to set the reply of an invitee for an appointment without actually receiving an email based reply to the invitation - since my earlier message above I have tried calling sendInviteReply SOAP Command but am not able to set any reply status using sendInviteReply. Please let me know which command or soap message I need to use to set reply status.

  3. #3
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    7

    Default

    What do you mean you cannot set any reply status ?

    Here is PHP code I use

    Code:
            switch ($response) {
                case '1':
                  $verb = "ACCEPT";
                  break;
    
                case '2':
                  $verb = "TENTATIVE";
                  break;
    
                case '3':
                  $verb = "DECLINE";
                  break;
            }
    
            // email organizer/attendees only if _serverInviteReply is set to true
            // Almost all phones now properly send the invites directly themselves
            $updateOrganizer = ($this->_serverInviteReply ? "1" : "0" );
            $soap = '<SendInviteReplyRequest xmlns="urn:zimbraMail" id="'.$requestid.'" compNum="0" verb="'.$verb.'" updateOrganizer="'.$updateOrganizer.'"/>';
    so set the status using the verb (ACCEPT, TENTATIVE, DECLINE) and set updateOrganizer flag to either "1" (true) or "0" (false) - make sure to set it as a string.

  4. #4
    Join Date
    Mar 2014
    Posts
    6
    Rep Power
    1

    Default

    This would just set the status for the organizer, this does not set the status for the attendee. I need to set the status for the attendee.

    Quote Originally Posted by liverpoolfcfan View Post
    What do you mean you cannot set any reply status ?

    Here is PHP code I use

    Code:
            switch ($response) {
                case '1':
                  $verb = "ACCEPT";
                  break;
    
                case '2':
                  $verb = "TENTATIVE";
                  break;
    
                case '3':
                  $verb = "DECLINE";
                  break;
            }
    
            // email organizer/attendees only if _serverInviteReply is set to true
            // Almost all phones now properly send the invites directly themselves
            $updateOrganizer = ($this->_serverInviteReply ? "1" : "0" );
            $soap = '<SendInviteReplyRequest xmlns="urn:zimbraMail" id="'.$requestid.'" compNum="0" verb="'.$verb.'" updateOrganizer="'.$updateOrganizer.'"/>';
    so set the status using the verb (ACCEPT, TENTATIVE, DECLINE) and set updateOrganizer flag to either "1" (true) or "0" (false) - make sure to set it as a string.

  5. #5
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    7

    Default

    No. This set's the invitee's status.

    It optionally updates the organizer (by email) too if called with updateOrganizer="1"

    From the soap-calendar.txt document
    //////////////////////////////////////////////////////////////////////
    //
    // SendInviteReply
    //
    //
    <SendInviteReplyRequest id="mail_item_id" compNum="comp_num"
    verb="VERB" [updateOrganizer="1|0"]
    [idnt="{identity-id}"] // use this identity to send reply
    >
    [<tz ...>] // definition for TZID referenced by DATETIME in <exceptId>
    [<exceptId DATETIME>]? // reply to just one instance of the specified Invite (default is all instances)
    [<m>...</m>]
    </SendInviteReplyRequest>

    id : unique ID of the invite (and component therein) you are replying to
    comp : component number of the invite
    verb : ACCEPT, COMPLETED, DECLINE, DELEGATED, TENTATIVE (Completed/Delegated are NOT supported as of 9/12/2005)
    m : embedded message, if the user wants to send a custom update message.
    The client is responsible for setting the message recipient list in
    this case (which should include Organizer, if the client wants to tell
    the organizer about this response)
    updateOrganizer: yes by default, if no then only make the update locally. This parameter
    has no effect if an <m> element is present.

    <SendInviteReplyResponse status="STATUS"/>

    status: OK, OLD (a newer invite exists for that appointment), ALREADY-REPLIED, FAIL (other failure)

  6. #6
    Join Date
    Mar 2014
    Posts
    6
    Rep Power
    1

    Default

    I agree that documentation says that but it does work in reality, I am not able to set invitee's status. Could it be because these invitee's emails are not setup on zimbra?

Similar Threads

  1. Replies: 1
    Last Post: 03-28-2014, 04:46 AM
  2. Replies: 4
    Last Post: 01-25-2014, 07:19 PM
  3. Replies: 3
    Last Post: 12-18-2009, 02:15 PM
  4. Replies: 5
    Last Post: 06-01-2008, 07:08 AM
  5. Outlook appointment invitation problem
    By PNE in forum Administrators
    Replies: 4
    Last Post: 11-19-2007, 05:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •