Sanjayraju30 commited on
Commit
aaed1c3
·
verified ·
1 Parent(s): b76a355

Update modules/salesforce_connector.py

Browse files
Files changed (1) hide show
  1. modules/salesforce_connector.py +8 -1
modules/salesforce_connector.py CHANGED
@@ -12,7 +12,14 @@ def fetch_pole_data_from_salesforce(sf):
12
  query = """
13
  SELECT Name, Solar_Generation__c, Wind_Generation__c, Power_Required__c,
14
  Camera_Status__c, Tilt__c, Vibration__c, Alert_Level__c, Power_Sufficient__c
15
- FROM SmartPole__c
 
 
 
 
 
 
 
16
  LIMIT 50
17
  """
18
  result = sf.query(query)
 
12
  query = """
13
  SELECT Name, Solar_Generation__c, Wind_Generation__c, Power_Required__c,
14
  Camera_Status__c, Tilt__c, Vibration__c, Alert_Level__c, Power_Sufficient__c
15
+ FROM VIEP_Pole__c # ← replace this with your actual API name
16
+ query = """
17
+ SELECT Name, Solar_Generation__c, Wind_Generation__c, Power_Required__c,
18
+ Camera_Status__c, Tilt__c, Vibration__c, Alert_Level__c, Power_Sufficient__c
19
+ FROM VIEP_Pole__c
20
+ LIMIT 50
21
+ """
22
+
23
  LIMIT 50
24
  """
25
  result = sf.query(query)