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
John-Henry GrossJohn-Henry Gross 

permissionSet ID

The permissionSet ID returns from API is different than the display one
I have permission set with ID XXXX (I can see that permission set information via http://<salesforce_url>/XXXX ).
When I query permission set data from PermissionSetAssignment via API. The PermissionSetAssignment.PermissionSet.ID have a different value for the same permission set.
For example that id value is similar to XXXXGAO. Anyhow I can access permission set via http://<salesforce_url>/XXXXGAO too.
So what is the relationship between these two ids? If I have one id (i.e XXXXGAO) how can I retrieve other one and vice versa?
Shivanath DevnarayananShivanath Devnarayanan
Hey John,

These are the the 15 Digit Case Sensitive ID and 18 Digit Case Insensitive ID.

They are the same, but the API usually returns the 18 digit ID.

here's a stackexchange post discussion on how to do the conversion via code : http://salesforce.stackexchange.com/questions/27686/how-can-i-convert-a-15-char-id-value-into-an-18-char-id-value