Bookshelf Home | Contents | Index | PDF |
Oracle Web Services On Demand Guide > Web Services On Demand API Calls > Service API Calls > UpdateCascadingPicklistsUpdates cascading picklist values in Oracle CRM On Demand. Objects SupportedUpdateCascadingPicklists is supported for the same objects as supported by the GetPicklistValues method, see GetPicklistValues. UsageYou use the UpdateCascadingPicklists method to update cascading picklists, typically in a language-dependent manner. The ListOfCascadingPicklistsValue argument contains a sequence of ParentCascPicklistsValue elements, which have the following child elements:
The ChildPicklistValue element contains the following child elements:
If the CreateNew argument is set to Y, a new set of cascading picklist relationships is created with the specified values. You cannot create a new Picklist field using the UpdateCascadingPicklist method. ArgumentsTable 62 describes the arguments taken by the UpdateCascadingPicklists method. Return Value of the CallReturns a status string indicating the success or otherwise of the call. Sample SOAP Requests and ResponsesThis topic contains sample SOAP requests that invoke UpdateCascadingPicklists. Sample SOAP Request 1 - UpdateCascadingPicklist: Create a New Cascading PicklistThe following SOAP request creates a new cascading picklist for the Account record type: <?xml version="1.0" encoding="utf-8" standalone="no"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <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> <PicklistWS_UpdateCascadingPicklists_Input xmlns="urn:crmondemand/ws/picklist/"> <RecordType>Account</RecordType> <ParentFieldName>AccountType</ParentFieldName> <FieldName>Priority</FieldName> <ListOfCascadingPicklistsValue> <ParentCode>Competitor</ParentCode> <ParentDisplayValue>Competitor</ParentDisplayValue> <ParentCode>Customer</ParentCode> <DisplayValue>Low</DisplayValue> <DisplayValue>High</DisplayValue> </ListOfCascadingPicklistsValue> </PicklistWS_UpdateCascadingPicklists_Input> Sample SOAP Request 2 - UpdateCascadingPicklist: Update an Existing Cascading PicklistThe following SOAP request updates an existing cascading picklist for the account record type. The picklist value is updated in the user's default language: <?xml version="1.0" encoding="utf-8" standalone="no"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <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> <PicklistWS_UpdateCascadingPicklists_Input xmlns="urn:crmondemand/ws/picklist/"> <RecordType>Account</RecordType> <ParentFieldName>AccountType</ParentFieldName> <FieldName>Priority</FieldName> <ListOfCascadingPicklistsValue> <ParentCode>Partner</ParentCode> <ParentDisplayValue>Partner</ParentDisplayValue> <ParentCode>Customer</ParentCode> <DisplayValue>High</DisplayValue> </ListOfCascadingPicklistsValue> </PicklistWS_UpdateCascadingPicklists_Input> Sample SOAP ResponsesThe response is the same for both of the sample SOAP requests: <?xml version="1.0" encoding="utf-8"?> <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:PicklistWS_UpdateCascadingPicklists_Output xmlns:ns="urn:crmondemand/ws/picklist/"> |
Oracle Web Services On Demand Guide, Version 20.0 (Oracle CRM On Demand Release 32) | Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |