Send speaker and proposal information to SalesForce
Project description
This is a plugin for pretalx that serves to send speaker and proposal information to SalesForce.
Information is sent every eight hours or on manual sync, and is mapped as follows:
- Users and their speaker profiles are sent as contacts:
Contact.pretalx_LegacyID__c is set to the pretalx user ID
Contact.FirstName is set to the first part of a user’s name, separated by whitespace.
Contact.LastName is set to any remaining part of a user’s name.
Contact.Email is set to the user’s email address.
Contact.Biography__c is set to the user’s biography.
Contact.pretalx_Profile_Picture__c is set to the user’s profile picture URL.
- Submission objects are set synced to the custom Session object:
pretalx_LegacyID__c is set to the submission’s pretalx ID.
Name is set to the submission’s title.
Session_Title__c is the submission’s full title, as Name is truncated to 80 characters.
Track__c is set to the submission’s track (by name, not by ID).
Submission_Format__c is set to the submission’s type (by name, not by ID).
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 Contact_Session__c object:
Contact__c is set to the Salesforce Contact.
Session__c is set to the Salesforce Session.
Development setup
Make sure that you have a working pretalx development setup.
Clone this repository, eg to local/pretalx-salesforce.
Activate the virtual environment you use for pretalx development.
Run pip install -e . within this directory to register this application with pretalx’s plugin registry.
Restart your local pretalx server. This plugin should show up in the plugin list shown on startup in the console. You can now use the plugin from this repository for your events by enabling it in the ‘plugins’ tab in the settings.
This project uses just as a task runner and uv for dependency management.
Code style
To check your plugin for code style violations, run:
just fmt-check
To auto-fix formatting issues, run:
just fmt
Testing
To run the test suite, run:
just test
This will automatically install pretalx if it’s not already present. If you want to test against a local pretalx checkout instead, run:
just install-pretalx-local /path/to/pretalx
License
Copyright 2024 Tobias Kunze
Released under the terms of the Apache License 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pretalx_salesforce-0.3.0.tar.gz.
File metadata
- Download URL: pretalx_salesforce-0.3.0.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dcb703a29bd2975c7add3f1f40de65e645fde5b50ced0079100523798a332b3
|
|
| MD5 |
90efb05db74d6edb9f05485853b4c0b0
|
|
| BLAKE2b-256 |
6d0249d15f3916eec4fa942952c13f806fe2141f5565088df8229942de14c8f6
|
File details
Details for the file pretalx_salesforce-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pretalx_salesforce-0.3.0-py3-none-any.whl
- Upload date:
- Size: 53.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23ce336b71b390e8b9320e8792e21fa72e2606f6e3ce1488d6c34cf66240e83e
|
|
| MD5 |
c4c4ab119b73443dbf52bc19560f00f4
|
|
| BLAKE2b-256 |
154a406d84839333a735f083f14d3e4b501a0073231e1f49e3bb4746df8718cd
|