SHARE
TWEET

Untitled

a guest Jun 18th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sf = Salesforce(username=username, password=password, security_token=security_token, sandbox=False)
  2.      
  3. records = sf.query("SELECT Id, Name,C_digo_del_Usuario__c,Tratamiento_IPA__c,Estado__c,Municipio__c,Comunidad__c, URL_Fotograf_a_Cliente__c FROM Contact WHERE Tratamiento_IPA__c IN ('x', 'y', 'z')")
  4. for r in records.get("records"):
  5.     url = record["URL_Fotograf_a_Cliente__c"]
  6.     # Now, download the image and save it.
  7.     # other record details are available as, e.g., `record["Name"]`
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top