Synchronizing Open EdX Data with Salesforce

If you have not already done so, create/activate a virtualenv, install requirements as described in Getting Started, and configure database settings as described in Configuration. Unless otherwise stated, assume all terminal code below is executed within the virtualenv.

Run the sync_salesforce command

The sync_salesforce command requires the following options:

Option Description Example
-s, --site-domain The domain of the site used to select Open EdX user data for synchronization. foo.example.com
-o, --orgs A comma-separated list of organization names used to select course purchase data for synchronization. FooX,BarX

To run the command:

$ python manage.py sync_salesforce -s [site domain] -o [organization] --settings=settings.local

Limitations

The sync_salesforce command currently expects a number of custom fields to be defined on the Lead and Contact objects in Salesforce. Please see the source code for details.