Spaces:
Build error
Build error
Update app.py
Browse files123454 unmodified lines10111212131415165 unmodified lines2223242425from simple_salesforce import Salesforce, SalesforceMalformedRequest, SalesforceResourceNotFound
# Replace these variables with your Salesforce credentialsUSERNAME = 'alwaysajay411@gmail.com'PASSWORD = 'Anusha@310819'4 unmodified lines sf = Salesforce(username=USERNAME, password=PASSWORD, security_token=SECURITY_TOKEN)
# Query to retrieve records from the custom object query = "SELECT Name, photo_c, PhoneNumber_c FROM customers_staff__c" query = "SELECT Name, photo_c, PhoneNumberc 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}") print(f"An error occurred: {e}")app.py+3-2