Configure Price Quote (CPQ) CPQ for SOAP API Developers API Reference Remote CPQ Admin Controller Current: Searching Custom Fields in Objects PDF Download PDF Download page Searching Custom Fields in Objects. Current page All pages Searching Custom Fields in Objects You can invoke this global method to retrieve the list of objects in which a given custom field is used.APISignaturefindCriteriaFieldInCustomSettingsstatic Apttus_Config2.CPQAdminStruct2.CriteriaFieldSearchResponse findCriteriaFieldInCustomSettings(Apttus_Config2.CPQAdminStruct2.CriteriaFieldSearchRequest request)ParametersNameTypeDescriptionrequestApttus_Config2.CPQAdminStruct2.CriteriaFieldSearchRequestRequest object invoked by the method.Resquest Data Object - Apttus_Config2.CPQAdminStruct2.CriteriaFieldSearchResponseFieldTypeDescriptionFieldNameStringThe name field that you want to search.Response Data Object - Apttus_Config2.CPQAdminStruct2.CriteriaFieldSearchRequestNameTypeDescriptionCustomSettingNamesListThe list of custom settings in which the requested field is present.Code SampleThe following code sample allows you to fetch the list of objects in which the request custom field is used. Apttus_Config2.CPQAdminStruct2.CriteriaFieldSearchRequest request = new Apttus_Config2.CPQAdminStruct2.CriteriaFieldSearchRequest(); request.FieldName = 'Quantity__c'; // namespace prefixed field name to search Apttus_Config2.CPQAdminStruct2.CriteriaFieldSearchResponse response = Apttus_Config2.RemoteCPQAdminController.findCriteriaFieldInCustomSettings(request); System.debug('*** Matching Custom Setting Names: ' + JSON.serialize(response.CustomSettingNames)); /* Matching Custom Setting Names: ["Config Asset Pricing Criteria Fields","Config LineItem Criteria Fields","Config Expression Criteria Fields","Config Custom Display Columns","Config Data Cache","Config Field Set"]*/ CODE ×