diff --git a/README.rst b/README.rst index 8c2b5b3..97b5c46 100644 --- a/README.rst +++ b/README.rst @@ -20,7 +20,7 @@ Information is sent every eight hours or on manual sync, and is mapped as follow - Status__c is set to the submission’s status. - Abstract__c is set to the submission’s abstract plus the submission’s description, separated by two newlines and then stripped of whitespace. - Pretalx_Record__c is set to the submission’s public URL. -- The mapping between Contacts and Sessions is synced to the custom ContactSession object: +- The mapping between Contacts and Sessions is synced to the custom Contact_Session object: - Contact__c is set to the Salesforce Contact. - Session__c is set to the Salesforce Session. diff --git a/pretalx_salesforce/models.py b/pretalx_salesforce/models.py index 9deae57..c8a6ae0 100644 --- a/pretalx_salesforce/models.py +++ b/pretalx_salesforce/models.py @@ -223,7 +223,7 @@ def sync_relations(self, sf=None, force=False): # This is a known relation, and it holds no data of its own, so we don’t # need to update it continue - result = sf.ContactSession__c.create(relation) + result = sf.Contact_Session.create(relation) speaker_id = relation["Contact__c"]["pretalx_LegacyID__c"] self.synced_data["relation_mapping"][speaker_id] = result["id"] diff --git a/pretalx_salesforce/sync.py b/pretalx_salesforce/sync.py index f76c767..7cbb92a 100644 --- a/pretalx_salesforce/sync.py +++ b/pretalx_salesforce/sync.py @@ -19,7 +19,7 @@ def sync_event_with_salesforce(event): """ Syncs an event with Salesforce. The sync maps objects as follows, and requires - the custom ContactSession and Session objects to be created in Salesforce: + the custom Contact_Session and Session objects to be created in Salesforce: - User/SpeakerProfile -> Contact, setting - Contact.pretalx_LegacyID__c = User.code @@ -29,7 +29,7 @@ def sync_event_with_salesforce(event): - Contact.Biography__c = User.event_profile.biography - Contact.Profile_Picture__c = User.avatar.url - - [nothing] -> ContactSession + - [nothing] -> Contact_Session - ID - Session__c = Session - Contact__c = Contact