Convert Salesforce Ids from 15 to 18 characters using Javascript
I figured this will be useful for anybody working with Salesforce. I used this within Netsuite and worked beautifully.
Here’s the code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
function convertSFDC15To18(sfdcID15){ if (sfdcID15.length == 15) { var s = ""; for (var i = 0; i < 3; i++) { var f = 0; for (var j = 0; j < 5; j++) { var c = sfdcID15.charAt(i * 5 + j); if (c >= "A" && c <= "Z") f += 1 << j; } s += "ABCDEFGHIJKLMNOPQRSTUVWXYZ012345".charAt(f); } return sfdcID15 + s; } else { throw "Error : " + sfdcID15 + " has not a length of 15 characters. Current length detected: " + sfdcID15.length + " characters."; } } //Example: var sfdc18 = convertSFDC15To18('5003000000D8cuI'); // Returns 5003000000D8cuIAAR |
Pingback: wedding planners()
Pingback: agen bola terpercaya()
Pingback: Corporate Event Managers for Companies in Hyderabad()
Pingback: must watch()
Pingback: published here()
Pingback: jadwal pendaftaran cpns 2018-2019 kemendikbud()
Pingback: lowongan tes cpns 2018/2019()
Pingback: iraqi Seo()
Pingback: freelance developers in oslo()
Pingback: seleksi penerimaan cpns 2018()
Pingback: coe()
Pingback: GVK BIO New Deals()
Pingback: pengumuman resmi cpns 2018()
Pingback: Appliance repair North York()
Pingback: Dokter anak jakarta selatan()
Pingback: Kuruganti Events Hyderabad()
Pingback: 먹튀신고()
Pingback: contrato informática()
Pingback: Details()
Pingback: 검증사이트()
Pingback: Tree of Innovation Digital Adverting Agency()
Pingback: Klotho gene()
Pingback: iq iq()
Pingback: Premature Ejaculation()
Pingback: enantat 250()
Pingback: sunrisehouse.com()
Pingback: array()
Pingback: Caco2 permeability studies()
Pingback: free forex signals()
Pingback: payday loans()
Pingback: Timotic()
Pingback: Elizabeth Bay Locksmith()
Pingback: immunforsvaret()
Pingback: jake burgess springfield mo()
Pingback: Daftar Bandarq()
Pingback: sbobet versi desktop()
Pingback: http://www.1beefjerky.com()
Pingback: pharmacokinetic studies()
Pingback: cupones()
Pingback: boutique en ligne()
Pingback: Ambika Ahuja Jaipur Escorts Services()
Pingback: Neha Tyagi Escorts in Jaipur()
Pingback: JAIPUR ESCORTS SERVICES ALIYA SINHA()
Pingback: BANGALORE COMPANION ESCORTS()
Pingback: Dhruvi Jaipur Escorts Services()
Pingback: JAIPUR ESCORTS MODEL DRISHYA()
Pingback: Heena Khan Bangalore Escorts Services()
Pingback: Jiya Malik High Profile Jaipur Escorts Model()
Pingback: FUN WITH JAIPUR ESCORTS PUJA KAUR()
Pingback: Rozlyn Bangalore Escorts Services()
Pingback: SAPNA CHAUDHARY BANGALORE ESCORTS()
Pingback: Selly Arora Independent Bangalore Escorts()
Pingback: Enjoy With Jaipur Escorts Tanisha Walia()
Pingback: RUBEENA RUSSIAN BANGALORE ESCORTS()
Pingback: Bristy Roy Independent Bangalore Escorts()
Pingback: Bangalore Escorts Sneha Despandey()
Pingback: MODEL HONEY PREET BANGALORE ESCORTS()
Pingback: Radhika Apte Model Escorts in Bangalore()
Pingback: SRUTHI PATHAK MODEL BANGALORE ESCORTS()
Pingback: Goa Escorts Services Eva J Law()
Pingback: Fiza Khan Kolkata Escorts Services()
Pingback: pendaftaran resmi cpns 2018()
Pingback: cap pns 2018()
Pingback: Ruby Sen Kolkata Independent Escorts()
Pingback: Diana Diaz Goa Independent Escorts Services()
Pingback: Diksha Arya Independent Escorts Services in Kolkata()
Pingback: Devika Kakkar Goa Escorts Services()
Pingback: Rebecca Desuza Goa Independent Escorts Services()
Pingback: Yamini Mittal Independent Escorts Services in Goa()
Pingback: Simmi Mittal Kolkata Escorts Services()
Pingback: Kolkata Escorts Services Ragini Mehta()
Pingback: Navya Sharma Independent Kolkata Escorts Services()
Pingback: Elisha Roy Goa Independent Escorts Services()
Pingback: Alisha Oberoi Independent Escorts in Kolkata()
Pingback: Divya Arora Goa Independent Escorts Services()
Pingback: Simran Batra Independent Escorts in Kolkata()
Pingback: Ashna Ahuja Escorts Services in Kolkata()
Pingback: Sofia Desai Escorts Services in Goa()
Pingback: Goa Escorts Services Drishti Goyal()
Pingback: Mayra Khan Escorts Services in Kolkata()
Pingback: Sruthi Pathak Escorts in Bangalore()
Pingback: Ambika Jaipur Female Escorts()
Pingback: Sruthi Pathak Bangalore Female Escorts()
Pingback: Sruthi Pathak Bangalore Escorts Services()
Pingback: Trully Independent Bangalore Escorts Services()
Pingback: Fiza Khan Kolkata Independent Call Girls Services()
Pingback: nsfwtophookup.eu nsfwtophookup.eu Hookup()
Pingback: nsfwtophookup.eu 2018()
Pingback: Fiza Khan Kolkata Independent Escorts Call Girls Services()
Pingback: Fiza Khan Kolkata Call Girls Escorts Services()
Pingback: Diksha Arya Kolkata Escorts Call Girls Services()
Pingback: Diksha Arya Kolkata Independent Escorts Call Girls Services()
Pingback: website()
Pingback: voirfilms()
Pingback: watchnudefree.eu()
Pingback: Cheap()
Pingback: Nidika Offer Call Girls in Bangalore()
Pingback: site Blog Name()
Pingback: WOW Site Blog Name()
Pingback: xxlhq.top article()
Pingback: xxlhq.xyz article()
Pingback: xxlph.xyz article()
Pingback: adultpics.top article()
Pingback: xxxpics xyz()
Pingback: xxlph xyz()
Pingback: pornph xyz()
Pingback: xxxpics.xyz article()
Pingback: xxxph top()
Pingback: xxlph.top article()
Pingback: xyz()
Pingback: adulthq top()
Pingback: xxxhd.top article()
Pingback: xnxxhd top()
Pingback: xxxhq top()
Pingback: pornph.xyz article()
Pingback: xxlhd xyz()
Pingback: adultpics top()
Pingback: xxxhq.top article()
Pingback: xxxph xyz()
Pingback: adulthq.xyz article()
Pingback: adultph.top article()
Pingback: xnxxhd.top article()
Pingback: xxlhd.xyz article()
Pingback: pornph.top article()
Pingback: xxlhq xyz()
Pingback: xxlph top()
Pingback: xxxph.top article()
Pingback: adultph top()
Pingback: adulthq.top article()
Pingback: xxlhq top()
Pingback: adulthd top()
Pingback: adulthd xyz()
Pingback: pornph top()
Pingback: adulthd.top article()
Pingback: adulthq xyz()
Pingback: adultph.xyz article()
Pingback: xxxph.xyz article()
Pingback: xxxhd top()
Pingback: adulthd.xyz article()
Pingback: Hyderabad Escorts Call Girls Services()
Pingback: Pune Escorts Services Call Girls()
Pingback: Bangalore Cheap Escorts Sevices()
Pingback: Goa Escorts Call Girls()
Pingback: Bangalore Escorts Services()
Pingback: Bangalore Escorts()
Pingback: buy levitra fast delivery()
Pingback: buy levitra cheap online()
Pingback: ordering cialis online australia()
Pingback: pfizer viagra generic()
Pingback: essay writting service()
Pingback: order cialis online canada()
Pingback: essaywritingservicesjy.com()
Pingback: fast custom essays()
Pingback: dissertation format()
Pingback: order cialis black online()
Pingback: the help essays()
Pingback: thesis writing online()
Pingback: writing thesis proposal()
Pingback: help to write a research paper()
Pingback: write my paper for me fast()
Pingback: cialis order()
Pingback: difference between viagra and cialis()
Pingback: cialis online()
Pingback: cialis daily()
Pingback: generic cialis()
Pingback: mail order cialis()
Pingback: when to take viagra()
Pingback: how long does viagra take to work()
Pingback: buy real viagra online()
Pingback: how to get viagra()
Pingback: approved canadian pharmacies online()
Pingback: online pharmacy canada()
Pingback: walmart online pharmacy()
Pingback: Aricept()
Pingback: canadian viagra generic pharmacy()
Pingback: viagra()
Pingback: best seller cialis()
Pingback: cheap cialis canadian()
Pingback: how to get ciails without a doctor()
Pingback: professional cialis()
Pingback: buy cialis cheap canada()
Pingback: cialis 20mg usa()
Pingback: cost of tadalafil without insurance()
Pingback: cheap genieric cialis()