File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1717ISSUER = os .getenv ("SALESFORCE_CONSUMER_KEY" )
1818DOMAIN = os .getenv ("SALESFORCE_DOMAIN" )
1919SUBJECT = os .getenv ("SALESFORCE_USERNAME" )
20+ CREATOR_CONTACT_ID = os .getenv ("CREATOR_CONTACT_ID" )
2021INSTANCE_URL = os .getenv ("INSTANCE_URL" )
2122TENANT_ID = os .getenv ("TENANT_ID" )
22- PLATFORM_MESSAGE_AUTHOR = os .getenv ("PLATFORM_MESSAGE_AUTHOR_RECORD_ID" )
23+ BATCH_SIZE = os .getenv ("BATCH_SIZE" , 400 )
2324
2425UPDATE_TOPIC = "/event/updated_contacts_batched__e"
25- BATCH_SIZE = 200
26-
2726
2827def send_pipeline_update_messages (contacts_list ):
2928 pem_file = 'bin/connected-app-secrets.pem'
@@ -71,9 +70,8 @@ def send_pipeline_update_messages(contacts_list):
7170 root_object = {
7271 "updatedContactsJson" : current_batch
7372 }
74-
7573 message = {
76- "CreatedById" : "0052g000003G926AAC" ,
74+ "CreatedById" : CREATOR_CONTACT_ID ,
7775 "CreatedDate" : int (datetime .now ().timestamp ()),
7876 "updated_contacts_json__c" : json .dumps (root_object )
7977 }
Original file line number Diff line number Diff line change 66BASEEDITOR_PW = "editorpw"
77BASEADMIN_PW = "basepw"
88DROPBOX_APP = "DBAPPPW"
9+
10+ SALESFORCE_USERNAME = ''
11+ SALESFORCE_CONSUMER_KEY = ''
12+ SALESFORCE_DOMAIN = ''
13+ TENANT_ID = ''
14+ INSTANCE_URL = ''
15+ CREATOR_CONTACT_ID = ''
You can’t perform that action at this time.
0 commit comments