File size: 539 Bytes
eb5c0b9
87307db
 
eb5c0b9
 
 
 
 
87307db
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import os
from simple_salesforce import Salesforce
from config import SALESFORCE_USERNAME, SALESFORCE_PASSWORD, SALESFORCE_SECURITY_TOKEN

# Salesforce Credentials
SALESFORCE_USERNAME = os.getenv("SALESFORCE_USERNAME", "[email protected]")
SALESFORCE_PASSWORD = os.getenv("SALESFORCE_PASSWORD", "Sati@1020")
SALESFORCE_SECURITY_TOKEN = os.getenv("SALESFORCE_SECURITY_TOKEN", "sSSjyhInIsUohKpG8sHzty2q")
query = "SELECT Name, Price__c, Description__c, Veg_NonVeg__c FROM Menu_Item__c"
result = sf.query(query)
print(result['records'])