Other OptionsΒΆ

To insert or update (upsert) a record using an external ID, use:

sf.Contact.upsert('customExtIdField__c/11999',{'LastName': 'Smith','Email': 'smith@example.com'})

To format an external ID that could contain non-URL-safe characters, use:

external_id = format_external_id('customExtIdField__c', 'this/that & the other')

To retrieve basic metadata use:


To retrieve a description of the object, use:


To retrieve a description of the record layout of an object by its record layout unique id, use:


To retrieve a list of top level description of instance metadata, user:


for x in sf.describe()["sobjects"]:
  print x["label"]