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
MohanbabuMohanbabu 

Salesforce.com Organization ID from Site is different from API Organization ID

Hi
 
I found that the value return by  userInfoResult.organizationId from API is different from the actual Organization ID it is showing on company information in Salesforce.com site.
 
There are 3 extra characters when it returns from API.
 
Can any one help me how can i find those 3 extra characters.
 
 
 
Thanks
Mohan.
Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
Chop the last 3 characters off to go from an 18 char Id to a 15 char Id.

All Answers

adamgadamg
Ah.  One is the 15 char representation of the ID, the other is the 18 char version. (one is case sensitive, one isn't) If you do a search you should (hopefully) find some code to do the transformation between the two.
MohanbabuMohanbabu

I am unable to find the code to transfer it to 15 char length.

I need to get the same organizationId from API and from sales force site

Please help where can i find

 

Thanks,

Mohan

SuperfellSuperfell
Chop the last 3 characters off to go from an 18 char Id to a 15 char Id.
This was selected as the best answer