How to convert from 18 Digit Salesforce ID to 15 Digit ID Using Apex Class

Monday, August 3, 2015


How to convert from 18 Digit Salesforce ID to 15 Digit ID Using Apex Class ?



String Id= ’00111000009lpABAAY’;

String  Id15Digit = Id15Digit.substring(0, 15);

system.debug(’15 Digit ID”+ Id15Digit );

No comments: