An effort to bring a revolution in Salesforce.

Thursday 30 July 2015

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

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 );

 Change Code As par your need.

No comments:

Post a Comment

Get Gmail, Docs, Drive, and Calendar for business