Case Sensitive IDs

  • 1
  • Question
  • Updated 6 years ago
  • Answered
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members. The community moderator provided the following reason for archiving: Old Questions

Hello folks,

Not sure if this is current functionality or not, but I wasn't able to find something easily. I'm setting up the "box.com" integration on my Skuid page. Interesting thing is, when I define the parameter to send into the iframe, the long case insensitive (18 characters) version of the ID is sent instead of the short case sensitive version. This is a problem because I've also got the box integration running on the normal pages, and when Salesforce is running the iframe, of course, it's using the short id (15 chars). 

Thus my problem, the long version of the URL is actually creating a different "folder" on box because it's interpreting the id as different because of the three additional characters.

I have worked around it be creating a custom formula field with "id" as the value, and Salesforce populates the short version of the id. This is not ideal for me because I hate jury rigging by having an otherwise useless field.

Idea's for a native Skuid solution to the issue (preferably that doesn't require JS, as all I'm doing right now is setting up a template with an iframe pointing to the VF page, easy peasy).
Photo of Jason Hardy

Jason Hardy

  • 240 Points 100 badge 2x thumb

Posted 6 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,968 Points 20k badge 2x thumb
Though we don't show you in the field list - we are also bringing over the 15 char ID in your model.  

The best way to do that is inspect the model in the browser console.  Type "skuid.model.map()" and you'll get all the model objects.

Under each model there is a data node where you can see all the information that is being returned.  There will be both an Id field and an Id15 field.  



 If you use {{Id15}} in your merge templates you should be good. 

I'm sorry you went to all the trouble of creating a formula field just to get this when it was there all along. 
Photo of Jason Hardy

Jason Hardy

  • 240 Points 100 badge 2x thumb
LOL no worries, the field only took 2 minutes to create and less time to delete. This worked well thanks!

This conversation is no longer open for comments or replies.