Hot answers tagged

3

You need to have a look into getRecordTypeInfosByDeveloperName Here is the sample code that fetche recordTypeId for account, where developer name of recordtype is Broker. Map<String, Schema.RecordTypeInfo> developerNameVsRecordTypeInfos = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName(); System.debug(developerNameVsRecordTypeInfos.get('...


2

Looks like you may use Salesforce Event Monitoring feature, for your use case the REST API Event Type would be the one you'll be interested in.


1

SOQL supports Location-Based Queries. You can retrieve records with locations within or outside of a certain radius with DISTANCE conditions in the WHERE clause of the query. You can combine Distance and ZIP Code list to get the desired contacts. Your SOQL should look this: List<Contact> contactList = [Select Id, FirstName, LastName From Contact ...


Only top voted, non community-wiki answers of a minimum length are eligible