function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
twongopenairtwongopenair 

Capturing 18 char id in weblink

Hello all,

We are using web integration links. When we try to capture the object ID in the weblink, we able to access the 15 char ID but we would like to be able to get the 18 char ID in the weblink. For example, a weblink might have

http://... /...opportunity_id={!Opportunity.Id}

and {!Opportunity.Id} we return the 15 char ID but we'd like to be able to get to the 18 char ID. I know that the 18 char ID is returned from direct API calls and saw this in the web services documentation:

"ID fields in the Salesforce user interface contain 15-character, base-62, case-sensitive strings"

Does this mean that weblinks used directly in the user interface cannot get the 18 char ID?

Your help is appreciated.

Thanks

werewolfwerewolf
A Javascript algorithm for deriving the 18-char ID from the 15-char ID can be found here:

http://community.salesforce.com/sforce/board/message?board.id=general_development&message.id=13148#M13148
twongopenairtwongopenair
Thanks, I appreciate the link! This is helpful. Too bad you can't pull down 18 char ids through weblinks but at least there is a way to convert.
IspitaIspita
 Ya same here