Ajay98 commited on
Commit
1f0cbb7
·
verified ·
1 Parent(s): 747050e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -11,22 +11,22 @@ try:
11
  sf = Salesforce(username=USERNAME, password=PASSWORD, security_token=SECURITY_TOKEN)
12
 
13
  # Define your custom object API names (replace with your actual custom object API names)
14
- custom_object_1 = 'staff__c'
15
- custom_object_2 = 'CustomerData__c'
16
 
17
- # Retrieve records from the first custom object
18
- records_custom_object_1 = sf.query(f"SELECT Name, AdhardCard__c, contactNumber__c, pancard__c FROM {custom_object_1}")
19
 
20
- # Retrieve records from the second custom object
21
- records_custom_object_2 = sf.query(f"SELECT Name, AdhardCardPhoto__c, pancardPhoto__c, PhoneNumber__c FROM {custom_object_2}")
22
 
23
- # Print retrieved records
24
- print("Records from Custom Object 1:")
25
- for record in records_custom_object_1['records']:
26
  print(record)
27
 
28
- print("\nRecords from Custom Object 2:")
29
- for record in records_custom_object_2['records']:
30
  print(record)
31
 
32
 
 
11
  sf = Salesforce(username=USERNAME, password=PASSWORD, security_token=SECURITY_TOKEN)
12
 
13
  # Define your custom object API names (replace with your actual custom object API names)
14
+ custom_object_1 = 'staff__c'
15
+ custom_object_2 = 'CustomerData__c'
16
 
17
+ # Retrieve records from the first custom object
18
+ records_custom_object_1 = sf.query(f"SELECT Name, AdhardCard__c, contactNumber__c, pancard__c FROM {custom_object_1}")
19
 
20
+ # Retrieve records from the second custom object
21
+ records_custom_object_2 = sf.query(f"SELECT Name, AdhardCardPhoto__c, pancardPhoto__c, PhoneNumber__c FROM {custom_object_2}")
22
 
23
+ # Print retrieved records
24
+ print("Records from Custom Object 1:")
25
+ for record in records_custom_object_1['records']:
26
  print(record)
27
 
28
+ print("\nRecords from Custom Object 2:")
29
+ for record in records_custom_object_2['records']:
30
  print(record)
31
 
32