This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Anonymous apex that dumps a sorted list of duplicate fields and their API name. | |
| //The output is sorted for *relatively* easy use. | |
| final String SOBJECT_NAME_TO_ANALYIZE = 'Case'; //change this to your sObject you want to analyize. | |
| //================================================================================================================= | |
| Map<String, Schema.SObjectField> fieldMap = Schema.getGlobalDescribe().get(SOBJECT_NAME_TO_ANALYIZE).getdescribe().fields.getmap(); | |
| System.debug(LoggingLevel.Info,'fieldMap = ' + fieldMap); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AngularTestController { | |
| @RemoteAction | |
| public static Contact[] listContacts() { | |
| return [select id, name, email from Contact Order By LastModifiedDate DESC LIMIT 200]; | |
| } | |
| } |