Pranay25 commited on
Commit
87f6aa6
·
verified ·
1 Parent(s): 82a8657

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -24,10 +24,10 @@ GENDER_MAPPING = {
24
  "Other": "Others"
25
  }
26
 
27
- # Salesforce credentials from environment variables (removed hardcoded defaults)
28
- SALESFORCE_USERNAME = os.getenv("[email protected]")
29
- SALESFORCE_PASSWORD = os.getenv("Hms@2025")
30
- SALESFORCE_SECURITY_TOKEN = os.getenv("jxumt3OHbuMTJjMyFnnG2v3e")
31
 
32
  # Log the credentials being used (for debugging)
33
  print(f"Using Salesforce credentials - Username: {SALESFORCE_USERNAME}")
@@ -84,7 +84,7 @@ def interact_with_salesforce(attributes):
84
  username=SALESFORCE_USERNAME,
85
  password=SALESFORCE_PASSWORD,
86
  security_token=SALESFORCE_SECURITY_TOKEN,
87
- domain="login", # Changed from "test" to "login" for production/developer org
88
  version="60.0"
89
  )
90
  print(f"Successfully connected to Salesforce as {SALESFORCE_USERNAME}")
 
24
  "Other": "Others"
25
  }
26
 
27
+ # Salesforce credentials from environment variables
28
+ SALESFORCE_USERNAME = os.getenv("SALESFORCE_USERNAME")
29
+ SALESFORCE_PASSWORD = os.getenv("SALESFORCE_PASSWORD")
30
+ SALESFORCE_SECURITY_TOKEN = os.getenv("SALESFORCE_SECURITY_TOKEN")
31
 
32
  # Log the credentials being used (for debugging)
33
  print(f"Using Salesforce credentials - Username: {SALESFORCE_USERNAME}")
 
84
  username=SALESFORCE_USERNAME,
85
  password=SALESFORCE_PASSWORD,
86
  security_token=SALESFORCE_SECURITY_TOKEN,
87
+ domain="login",
88
  version="60.0"
89
  )
90
  print(f"Successfully connected to Salesforce as {SALESFORCE_USERNAME}")