Bookshelf Home | Contents | Index | PDF |
Oracle Web Services On Demand Guide > Web Services On Demand API Calls > Service API Calls > HistoryInsertOrUpdateInserts or updates entries in the Recently Viewed records section in the Action bar. UsageYou use the HistoryInsertOrUpdate method to insert or update records in the Recently Viewed records section in the Action bar in the Oracle CRM On Demand application. For upsert operations, the user keys are either of: The only field that can be updated is the <Order> field. ArgumentsTable 54 describes the arguments taken by the HistoryInsertOrUpdate method.
Return Value of the CallThe inserted or updated records with their status key fields are returned. Sample SOAP Request - HistoryInsertOrUpdateThe following SOAP request updates an account record with the <objectId> value of 1QA2-VKKBZ record in the Recently Viewed list. The order of the record within the list is changed. <?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"> <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> <his:HistoryInsertOrUpdate_Input> <data:ObjectName>Account</ObjectName> <data:ObjectId>1QA2-VKKBZ</ObjectId> Sample SOAP Response - HistoryInsertOrUpdateThe following SOAP response contains the updated 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"> <ns:HistoryInsertOrUpdate_Output xmlns:ns="urn:crmondemand/ws/history/"> <ListOfHistoryItem xmlns="urn:/crmondemand/xml/historyitem/Data"> <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> |
Oracle Web Services On Demand Guide, Version 26.0 (Oracle CRM On Demand Release 38) | Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |