You need to sign in to do that
Don't have an account?
tgk1
Trigger to pull 18 digit Account ID
Hey everyone-
I need to create a field within the account object that holds the account records ID. I can get the 15 digit ID very easily via a formula field, but unfortunately I need to get the full 18 digits. Has anybody made a trigger like this in the past? If so can you please share your code?? Thank you very much in advance.
-Tom
Use this example for your case in trigger
http://salesforceapexcodecorner.blogspot.com/2011/06/convert-15-digit-sfdc-id-in-18-digit.html
You can directly save it in formula field return type text like using this formula :
I have a bit simplified code I guess, please visit :
http://forceguru.blogspot.com/2010/12/how-salesforce-18-digit-id-is.html
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Thank you both, this is very helpful.
Cool! I would suggest you to mark the post as solution so others may get benefit.
Thanks
Ankit Arora
Blog | Facebook | Blog Page
Nice work Ankit,
I was just wondering how its done, could you please explain the code.
Thanks a lot bro.