sendItemRequest

Sends a distributed item. It is also used to create draft and personal items.

Request

<sendItemRequest>
   <item type="types:Item"/>
</sendItemRequest>

Response

<sendItemResponse>
   <id type="types:uid"/>
   <status type="types:Status"/>
</sendItemResponse>

Elements

item

Specifies all the parameters for the send. Valid item types that can be sent are: Mail, Appointments, Notes, Tasks, and Phone items.

id

Specifies the ID of the item that was created in the sent item folder. For example, if you send an appointment and you are one of the recipients, the ID is the ID of the sent item and not the received item. If the item is a recurring item, sendItemResponse returns an ID for each recurring instance created in GroupWise.

code

Returns the error number related to the event. 0 indicates that the request was successful.

status

Returns the success or failure of the method.

Example

<sendItemRequest>
   <item type="Appointment"> 
      <source>sent</source> 
      <class>Public</class> 
      <acceptLevel>Busy</acceptLevel> 
      <subject>Sending Example</subject> 
      <distribution> 
         <recipients> 
            <recipient> 
               <displayName>u2</displayName> 
               <email>u2@phantom.com</email> 
               <uuid>42F9A600-175B-0000-890F-6E00D5004E00</uuid> 
               <distType>TO</distType> 
            </recipient> 
         </recipients> 
         <sendoptions> 
            <requestReply/> 
            <statusTracking>All</statusTracking> 
            <updateFrequentContacts>0</updateFrequentContacts> 
         </sendoptions> 
      </distribution> 
      <message> 
         <part length="36">VGhpcyBpcyB0aGUgbWVzc2FnZSBib2R5LgA=</part> 
      </message> 
      <options> 
         <priority>Standard</priority> 
      </options> 
      <startDate>20120920T160000Z</startDate> 
      <endDate>20120920T170000Z</endDate> 
      <alarm types:enabled="1">5</alarm> 
      <place>place</place> 
   </types:item> 
</sendItemRequest>

<sendItemResponse> 
   <status> 
      <code>0</code> 
   </status> 
</sendItemResponse>