resendRequest

Resends an item. This is a two step process like the forwardRequest. You call resendRequest. You get back a Mail item with a LinkInfo element. You pass that element unchanged in the new item. If you want to get back the original message body, you pass “message” or “message/RTF” in the view element of the resendReqeust. --For GroupWise 2012 and later.

Request

<resendRequest>
  <id type="types:uid"/>
  <view type=”string”/>
</delegateRequest>

Response

<resendResponse>
  <item type=”types:Item/>
  <status type="types:Status"/>
</delegateResponse>

Elements

id

Specifies the ID of the item to be resent.

view

Controls what is returned in the Mail item.

item

Mail item with the information for the resend.

code

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

status

Returns the success or failure of the method.

Example of Original Note

<sendItemRequest>
  <item type="Note">
    <returnSentItemsId>true</returnSentItemsId>
    <subject>Note to resend</subject>
    <distribution>
      <to>Preston Stepehnson; Jay Parker</to>
      <recipients>
        <recipient type="Recipient">
          <displayName>Preston Stephenson</displayName>
          <email>pstehenson@prestons.novell.com</email>
          <uuid>2D16B180-0922-0000-846C-82BD300F9E1C</uuid>
        </recipient>
        <recipient type="Recipient">
          <displayName>Jay Parker</displayName>
          <email>jparker@prestons.novell.com</email>
          <uuid>C974CA00-0B55-0000-B976-8E90E5B002BD</uuid>
        </recipient>
      </recipients>
    </distribution>
    <message>
      <part length="0"
          offset="0">VGhpcyBpcyB0aGUgb3JpZ25hbCBtZXNzYWdlIGJvZHku</part>
    </message>
    <startDate>2011-01-29</startDate>
  </item>
</sendItemRequest>

<sendItemResponse>
  <id>4D417E7B.domain.PO1.100.1776172.1.25D1B.1@2:
             7.domain.PO1.100.0.1.0.1@16</id>
  <id>4D417E7B.domain.PO1.100.1776172.1.25D1C.1@2:
             7.domain.PO1.100.0.1.0.1@16</id>
  <status>
    <code>0</code>
  </status>
</sendItemResponse>

Example of Get Note

<getItemRequest>
  <id>4D417E7B.domain.PO1.100.1776172.1.25D1B.1@2:
             7.domain.PO1.100.0.1.0.1@16</id>
  <view>default message recipients</view>
</getItemRequest>

<getItemResponse>
  <item type="Note">
    <id>4D417E7B.domain.PO1.100.1776172.1.25D1B.1@2:
               7.domain.PO1.100.0.1.0.1@16</id>
    <sid>154907</sid>
    <version>3</version>
    <modified>2011-01-27T21:17:31Z</modified>
    <container sid="5">A.domain.PO1.100.0.1.0.1@19</container>
    <created>2011-01-27T21:17:31Z</created>
    <status>
      <accepted>1</accepted>
      <opened>1</opened>
      <read>1</read>
    </status>
    <msgId>4D417E7B.domain.PO1.200.20000C2.1.42820.1</msgId>
    <clientMessageId>4D41E0EB.141 : 194 : 18298</clientMessageId>
    <source>sent</source>
    <delivered>2011-01-27T21:17:31Z</delivered>
    <security>Normal</security>
    <subject>Note to resend</subject>
    <distribution>
      <from>
        <displayName>Preston Stephenson</displayName>
        <email>pstephenson@prestons.provo.novell.com</email>
        <uuid>2D16B180-0922-0000-846C-82BD300F9E1C</uuid>
      </from>
      <to>Preston Stepehnson; Jay Parker</to>
      <recipients>
        <recipient>
          <displayName>Jay Parker</displayName>
          <email>jparker@prestons.provo.novell.com</email>
          <uuid>C974CA00-0B55-0000-B976-8E90E5B002BD</uuid>
          <distType>TO</distType>
          <recipType>User</recipType>
          <domain>domain</domain>
          <postOffice>PO1</postOffice>
          <idomain>prestons.provo.novell.com</idomain>
        </recipient>
        <recipient>
          <displayName>Preston Stephenson</displayName>
          <email>pstephenson@prestons.provo.novell.com</email>
          <uuid>2D16B180-0922-0000-846C-82BD300F9E1C</uuid>
          <distType>TO</distType>
          <recipType>User</recipType>
          <domain>domain</domain>
          <postOffice>PO1</postOffice>
          <idomain>prestons.provo.novell.com</idomain>
        </recipient>
      </recipients>
      <sendoptions>
        <statusTracking>None</statusTracking>
      </sendoptions>
    </distribution>
    <message>
      <part contentType="text/plain"
         length="44">VGhpcyBpcyB0aGUgb3JpZ25hbCBtZXNzYWdlIGJvZHku</part>
    </message>
    <options>
      <priority>Standard</priority>
    </options>
    <size>809</size>
    <retentionModified>2011-01-27T21:17:31Z</retentionModified>
    <iCalId>2011-01-27T21:17:31Z_477A00C2@prestons.provo.novell.com</iCalId>
    <startDate>2011-01-29</startDate>
    <timezone>
      <daylight>
        <month>3</month>
        <dayOfWeek occurrence="Second">Sunday</dayOfWeek>
        <hour>0</hour>
        <minute>0</minute>
        <offset>-21600</offset>
      </daylight>
      <standard>
        <month>11</month>
        <dayOfWeek occurrence="First">Sunday</dayOfWeek>
        <hour>0</hour>
        <minute>0</minute>
        <offset>-25200</offset>
      </standard>
    </timezone>
  </item>
  <status>
    <code>0</code>
  </status>
</getItemResponse>

Example of Resend Request

<resendRequest>
  <id>4D417E7B.domain.PO1.100.1776172.1.25D1B.1@2:
             7.domain.PO1.100.0.1.0.1@16</id>
</resendRequest>

<resendResponse>
  <item type="Mail">
    <sid>154907</sid>
    <source>sent</source>
    <delivered>2011-01-27T21:17:31Z</delivered>
    <subject>Note to resend</subject>
    <distribution>
      <from>
        <displayName>Preston Stephenson</displayName>
      </from>
    </distribution>
    <link>
      <id>4D417E7B.domain.PO1.100.1776172.1.25D1B.1</id>
      <type>resend</type>
    </link>
  </item>
  <status>
    <code>0</code>
  </status>
</resendResponse>

Example of New Send

<sendItemRequest>
  <item type="Note">
    <subject>subject changed for resend</subject>
    <distribution>
      <from type="From">
        <displayName>Preston Stephenson</displayName>
        <email>pstephenson@prestons.provo.novell.com</email>
        <uuid>2D16B180-0922-0000-846C-82BD300F9E1C</uuid>
      </from>
      <to>Preston Stepehnson; Jay Parker</to>
      <recipients>
        <recipient type="Recipient">
          <displayName>Jay Parker</displayName>
          <email>jparker@prestons.provo.novell.com</email>
          <uuid>C974CA00-0B55-0000-B976-8E90E5B002BD</uuid>
        </recipient>
        <recipient type="Recipient">
          <displayName>Preston Stephenson</displayName>
          <email>pstephenson@prestons.provo.novell.com</email>
          <uuid>2D16B180-0922-0000-846C-82BD300F9E1C</uuid>
        </recipient>
      </recipients>
    </distribution>
    <message>
      <part length="0"
          offset="0">VGhpcyBpcyB0aGUgb3JpZ25hbCBtZXNzYWdlIGJvZH
          kuClRoaXMgaXMgdGhlIHNlY29uZCBsaW5lLg==</part>
    </message>
    <link>
      <id>4D417E7B.domain.PO1.100.1776172.1.25D1B.1</id>
      <type>resend</type>
    </link>
    <startDate>2011-01-29</startDate>
    <timezone>
      <daylight>
        <month>3</month>
        <day>0</day>
        <dayOfWeek occurrence="Second">Sunday</dayOfWeek>
        <hour>0</hour>
        <minute>0</minute>
        <offset>-21600</offset>
      </daylight>
      <standard>
        <month>11</month>
        <day>0</day>
        <dayOfWeek occurrence="First">Sunday</dayOfWeek>
        <hour>0</hour>
        <minute>0</minute>
        <offset>-25200</offset>
      </standard>
    </timezone>
  </item>
</sendItemRequest>

<sendItemResponse>
  <id>4D417E7C.domain.PO1.100.1776172.1.25D1E.1@2:
             7.domain.PO1.100.0.1.0.1@16</id>
  <status>
    <code>0</code>
  </status>
</sendItemResponse>