Timeline for Converting uppercased 18-digit Id to valid Id
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2023 at 18:44 | comment | added | Jason Clark |
This fails if any part of the 3 character checksum is lowercase. Adding input = input.toUpperCase() at the top of the function fixes the problem.
|
|
May 24, 2016 at 21:46 | comment | added | Koen Faro | Had to edit my code slightly - it was not working correctly in the sense that the last 3 characters were always lowercased - this causes Id.valueOf to render an Id - but subsequently actually using this Id while trying to populate/commit a lookup-field will still render a nasty error.... | |
May 24, 2016 at 21:45 | history | edited | Koen Faro | CC BY-SA 3.0 |
Code still failed due to the fact that Id.valueOf seems to return an Id if the last 3 characters are lowercase - however if you use it it will crash and burn - thus we only use 3x5 = 15!
|
May 24, 2016 at 20:37 | comment | added | Adrian Larson♦ | Elegant. Way to take the cleanup a step further! | |
May 24, 2016 at 20:35 | history | answered | Koen Faro | CC BY-SA 3.0 |