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
scriptagentscriptagent 

Two ID's possible ?

Good morning,
 
I'm a bit confused right now:
 
Code:
Id idt = '04iR00000008W50';
ProcessInstanceWorkitem[] prInstWItem = [select Id from ProcessInstanceWorkitem where Id=:idt];
//when I display prInstWItem[0].Id, I get '04iR00000008W50PIA' Id idt2 = '04iR00000008W50PIA'; ProcessInstanceWorkitem[] prInstWItem2 = [select Id from ProcessInstanceWorkitem where Id=:idt2]; //when I display prInstWItem2[0].Id, I get '04iR00000008W50PIA'

 
Why have these two requests the same result?
 
Thx for help! Peter
 
 

 

 


 
JeremyKraybillJeremyKraybill
Salesforce ID's have 2 representations: a 15-digit, case-sensitive ID, and an 18-digit, non-case-sensitive ID. Apex always uses the 18-digit ID but you can use either in SOQL.

Jeremy Kraybill
Austin, TX
scriptagentscriptagent
Thank you very much for your reply!
Now I understand what's going on :)
 
Have a nice day, Peter