Play Games

Search This Blog

Saturday, May 1, 2021

covert 18 digit salesforce record Id to 15 digits - Salesforce Globe For You

 covert 18 digit salesforce record Id to 15 digits  - Salesforce Globe For You 

Solution: use to15() to do this.

code:

Id lead18DigitId = '00Q0o00001fxEZiEAM'; // keep 18 digit id

string lead15DigitId = lead18DigitId.to15();

system.debug('Lead 15 digit Id : '+lead15DigitId);

No comments:

Post a Comment