Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sf = Salesforce(username=username, password=password, security_token=security_token, sandbox=False)
- 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')")
- for r in records.get("records"):
- url = record["URL_Fotograf_a_Cliente__c"]
- # Now, download the image and save it.
- # other record details are available as, e.g., `record["Name"]`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement