Bookshelf Home | Contents | Index | PDF |
Oracle Web Services On Demand Guide > Web Services On Demand API Calls > Administrative Services API Calls > Record Ownership ModeYou can use the Field Management service to determine and configure the record ownership mode for objects. There are three record ownership modes for objects: user mode, book mode, and mixed mode. For information about record ownership modes, including which record types support record ownership modes, see Oracle CRM On Demand Online Help. You can determine the record ownership mode by using the FieldManagementRead method to examine the Required flag for the Owner and Book fields for an object:
If the Required flag is true for both Owner and Book fields, then the configuration is invalid and no records can be saved until the configuration is fixed. A SOAP request to determine the record ownership mode must specify the object name, and the system names for the Owner and Book fields. It must also specify
The following is a sample SOAP request to retrieve the record ownership mode information for the Contact object: <?xml version="1.0" encoding="utf-16"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fiel="urn:crmondemand/ws/odesabs/fieldmanagement/" xmlns:quer="urn:/crmondemand/xml/fieldmanagement/query"> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-30489657" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:Username>rsbooks/rsinn</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> <fiel:FieldManagementRead_Input> <quer:ObjectName>Contact</quer:ObjectName> <quer:IncludeAll>true</quer:IncludeAll> <quer:Name>Primary Owner Id</quer:Name> <quer:Name>Primary Position Id</quer:Name> </fiel:FieldManagementRead_Input> The following is the SOAP response, and in this case, Required is <?xml version="1.0" encoding="utf-16"?> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> <fiel:FieldManagementRead_Output xmlns:fiel="urn:crmondemand/ws/odesabs/fieldmanagement/"> <data:ListOfFieldSet xmlns:data="urn:/crmondemand/xml/fieldmanagement/data"> <data:ObjectName>Contact</data:ObjectName> <data:Name>Primary Owner Id</data:Name> <data:DisplayName>Primary Owner Id</data:DisplayName> <data:Required>false</data:Required> <data:Name>Primary Position Id</data:Name> <data:DisplayName>Book: Id</data:DisplayName> <data:Required>false</data:Required> </fiel:FieldManagementRead_Output> You can use the FieldManagementUpsert method to set the record ownership mode for an object as required. |
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. | |