Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  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"]`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement