Update To Date of a Sales Person

In this use case we will update the To Date of a sales person.

Operation: findResourceSalesrep

Request Body

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/resources/resourceService/applicationModule/types/" xmlns:typ1="http://xmlns.oracle.com/adf/svc/types/">
   <soapenv:Header/>
   <soapenv:Body>
      <typ:findResourceSalesrep>
         <typ:findCriteria>
            <typ1:fetchStart>0</typ1:fetchStart>
            <typ1:fetchSize>-1</typ1:fetchSize>
            <typ1:filter>
               <typ1:group>
                  <typ1:item>
                     <typ1:upperCaseCompare>false</typ1:upperCaseCompare>
                     <typ1:attribute>SalesrepNumber</typ1:attribute>
                     <typ1:operator>=</typ1:operator>
                     <typ1:value>Enter Problem Salesperson Number</typ1:value>
                  </typ1:item>
               </typ1:group>
            </typ1:filter>
         </typ:findCriteria>
         <typ:findControl>
            <typ1:retrieveAllTranslations>false</typ1:retrieveAllTranslations>
         </typ:findControl>
      </typ:findResourceSalesrep>
   </soapenv:Body>
</soapenv:Envelope>

Response Body

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
   <env:Header>
      <wsa:Action>http://xmlns.oracle.com/apps/cdm/foundation/resources/resourceService/applicationModule/SalesPersonService/findResourceSalesrepResponse</wsa:Action>
      <wsa:MessageID>urn:uuid:fb4e7f8a-c63d-4b9e-987d-5ffff3c84cdb</wsa:MessageID>
   </env:Header>
   <env:Body>
      <ns0:findResourceSalesrepResponse xmlns:ns0="http://xmlns.oracle.com/apps/cdm/foundation/resources/resourceService/applicationModule/types/">
         <ns2:result xsi:type="ns1:ResourceSalesrepResult" xmlns:ns1="http://xmlns.oracle.com/apps/cdm/foundation/resources/resourceService/" xmlns:tns="http://xmlns.oracle.com/adf/svc/errors/" xmlns:ns0="http://xmlns.oracle.com/adf/svc/types/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://xmlns.oracle.com/apps/cdm/foundation/resources/resourceService/applicationModule/types/"/>
      </ns0:findResourceSalesrepResponse>
   </env:Body>
</env:Envelope>

Operation: updateResourceSalesrep

Request Body

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/resources/resourceService/applicationModule/types/" xmlns:res="http://xmlns.oracle.com/apps/cdm/foundation/resources/resourceService/">
   <soapenv:Header/>
   <soapenv:Body>
      <typ:updateResourceSalesrep>
         <typ:resourceSalesrep1>
            <res:ResourceSalesrepId>Set RESOURCE_SALESREP_ID(ResourceSalesrepId)</res:ResourceSalesrepId>
            <res:EndDateActive>Set End Date like 2023-12-31</res:EndDateActive>
         </typ:resourceSalesrep1>
      </typ:updateResourceSalesrep>
   </soapenv:Body>
</soapenv:Envelope>