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 17
17
ISSUER = os .getenv ("SALESFORCE_CONSUMER_KEY" )
18
18
DOMAIN = os .getenv ("SALESFORCE_DOMAIN" )
19
19
SUBJECT = os .getenv ("SALESFORCE_USERNAME" )
20
+ CREATOR_CONTACT_ID = os .getenv ("CREATOR_CONTACT_ID" )
20
21
INSTANCE_URL = os .getenv ("INSTANCE_URL" )
21
22
TENANT_ID = os .getenv ("TENANT_ID" )
22
- PLATFORM_MESSAGE_AUTHOR = os .getenv ("PLATFORM_MESSAGE_AUTHOR_RECORD_ID" )
23
+ BATCH_SIZE = os .getenv ("BATCH_SIZE" , 400 )
23
24
24
25
UPDATE_TOPIC = "/event/updated_contacts_batched__e"
25
- BATCH_SIZE = 200
26
-
27
26
28
27
def send_pipeline_update_messages (contacts_list ):
29
28
pem_file = 'bin/connected-app-secrets.pem'
@@ -71,9 +70,8 @@ def send_pipeline_update_messages(contacts_list):
71
70
root_object = {
72
71
"updatedContactsJson" : current_batch
73
72
}
74
-
75
73
message = {
76
- "CreatedById" : "0052g000003G926AAC" ,
74
+ "CreatedById" : CREATOR_CONTACT_ID ,
77
75
"CreatedDate" : int (datetime .now ().timestamp ()),
78
76
"updated_contacts_json__c" : json .dumps (root_object )
79
77
}
Original file line number Diff line number Diff line change 6
6
BASEEDITOR_PW = "editorpw"
7
7
BASEADMIN_PW = "basepw"
8
8
DROPBOX_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