Oracle Web Services On Demand Guide > Web Services On Demand API Calls > Service API Calls >

HistoryDelete


Deletes entries from the Recently Viewed records section in the Action bar.

Usage

You use the HistoryDelete method to delete records from the Recently Viewed records section in the Action bar in the Oracle CRM On Demand application.

For delete operations, the user keys are either of:

  • <Id>
  • <ObjectName> + <ObjectId>

Arguments

Table 53 describes the arguments taken by the HistoryDelete method.

Table 53. Arguments Taken by the HistoryDelete Method
Name
Description
Required
Default
I/O

ListOfHistoryItem

The list of records to be deleted (input), and after execution, the list of records deleted (output).

Yes

Not applicable

Input/Output

Return Value of the Call

The deleted records with their status key fields are returned.

Sample SOAP Request - HistoryDelete

The following SOAP request deletes a record with the <Id> value of 1QA2-34ISOM from the Recently Viewed list:

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:his="urn:crmondemand/ws/history/" xmlns:data="urn:/crmondemand/xml/historyitem/Data">

   <soapenv:Header>

      <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">

         <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

            <wsse:Username>%%%USERNAME%%%<</wsse:Username>

            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">%%%PASSWORD%%%</wsse:Password>

         </wsse:UsernameToken>

      </wsse:Security>

   <soapenv:Header/>

   <soapenv:Body>

      <his:HistoryDelete_Input>

         <data:ListOfHistoryItem>

            <data:HistoryItem>

               <data:Id>1QA2-34ISOM</data:Id>

            </data:HistoryItem>

         </data:ListOfHistoryItem>

      </his:HistoryDelete_Input>

   </soapenv:Body>

</soapenv:Envelope>

Sample SOAP Response - HistoryDelete

The following SOAP response contains the deleted record with its status key fields:

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

   <SOAP-ENV:Body>

      <ns:HistoryDelete_Output xmlns:ns="urn:crmondemand/ws/history/">

         <ListOfHistoryItem xmlns="urn:/crmondemand/xml/historyitem/Data">

            <HistoryItem>

               <Id>1QA2-34ISOM</Id>

               <CreatedById>1-CZ010</CreatedById>

               <CreatedDate>2018-05-18T09:59:42Z</CreatedDate>

               <CreatedBy>Tara Treadlightly, 05/18/2018 05:59:42</CreatedBy>

               <ModifiedById>1-CZ010</ModifiedById>

               <ModifiedDate>2018-05-18T10:15:30Z</ModifiedDate>

               <ModifiedBy>Tara Treadlightly, 05/18/2018 06:15:30</ModifiedBy>

               <ModId>1</ModId>

            </HistoryItem>

         </ListOfHistoryItem>

      </ns:HistoryDelete_Output>

   </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Oracle Web Services On Demand Guide, Version 25.0 (Oracle CRM On Demand Release 37) Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.