Spaces:
Build error
Build error
Update app.py
Browse files9 unmodified lines101112131415165 unmodified lines222324259 unmodified linessf = Salesforce(username=USERNAME, password=PASSWORD, security_token=SECURITY_TOKEN)# Query to retrieve records from the custom objectquery = "SELECT Name, photo_c, PhoneNumber_c FROM customers_staff__c"results = sf.query(query)# Print the retrieved records5 unmodified linesexcept SalesforceResourceNotFound as e:print(f"Resource not found: {e}")except Exception as e:print(f"An error occurred: {e}")9 unmodified lines101112131415165 unmodified lines222324259 unmodified linessf = Salesforce(username=USERNAME, password=PASSWORD, security_token=SECURITY_TOKEN)# Query to retrieve records from the custom objectquery = "SELECT Name, photo_c, PhoneNumber_c FROM customers_staff__c"results = sf.query(query)# Print the retrieved records5 unmodified linesexcept SalesforceResourceNotFound as e:print(f"Resource not found: {e}")except Exception as e:print(f"An error occurred: {e}")
app.py+2-2