lsamaha / py-salesforce-id

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py-salesforce-id

About

A simple helper function for Salesforce integrators working in Python who are encountering short (15 digit Salesforce IDs). This project implements Salesforce algorithm for converting the short form 15 character ID to a long form 18 character ID. The history of the long form ID has its basis in case-insensitive data storage performed by some external systems. The last 3 digits serve as a check-digit as explained here: The algorithm is available in the Salesforce platform and has been implelented in many other languages for integration work. This is example is for Python integrations.

Example

from salesforce import tolongid

shortid = '001A0000006Vm9r'
longid = tolongid(shortid) # 001A0000006Vm9rIAC

About


Languages

Language:Python 100.0%