You need to sign in to do that
Don't have an account?

display 18 character ID in Page Layout
I am trying to display the 18 character key for campaigns in the campaign layout using a formula field for easy access to the full key, but using "Id" in the formula field only returns the 15 character key.
Can someone help me here?
Thank you in advance.
Can someone help me here?
Thank you in advance.
in javascript, so you can put this into an scontrol, then the scontrol will fixup the ID and display it in a field ( by putting the scontrol on the campaign page.)
Code:
All Answers
in javascript, so you can put this into an scontrol, then the scontrol will fixup the ID and display it in a field ( by putting the scontrol on the campaign page.)
Code:
Thank you for the reply.
~Chad
The 3 extra chars are a check sum of the capitalization of the chars in the 15 char id.
it's deterministic, an algorithm if you will. :smileywink:
var SFDCUserID = sforce.connection.query("Select Id from User where Id ='{!User.Id}'").getArray("records")[0].Id;
Of course this consumes an API call, but it seems to work well.
I wonder if anyone has yet suggested adding merge field options to specify the full 18 character values (i.e. {!User.Id__f})
Message Edited by Snard on 10-25-2007 10:42 AM
I say, implement the 15-to-18-char conversion in a formula field and circumvent code entirely: http://tinyurl.com/15CharFix
Nice one
Thanks, this was just what I needed today. :)
Whoops! The big, fancy formula field is no longer needed; now you can just use the CASESAFEID() formula function.