This is a Plone addon for collective.easyform which uses the Salesforce REST API to create records in Salesforce when a form is submitted.
It is a successor to Products.salesforcepfgadapter, but has a more basic UI and doesn't have all the same features.
- Create a new record in Salesforce
- Map field values from the form to Salesforce fields
- Calculate values from TALES expressions and map them to Salesforce fields
To install jazkarta.easyformplugin.salesforce, first add it to your buildout::
[buildout]
...
eggs =
jazkarta.easyformplugin.salesforce
and then run bin/buildout
You must also make sure the following environment variables are set while running Zope:
- SALESFORCE_USERNAME
- SALESFORCE_PASSWORD
- SALESFORCE_TOKEN (if needed)
- SALESFORCE_DOMAIN: the subdomain to use for authentication to Salesforce,
e.g.
login
for production orgs ortest
for sandboxes.
- Create an Easyform.
- Open the Actions menu and choose "Define form actions"
- Click the "Add New Action" button
- Enter a Title and Short Name for the action. Choose "Send to Salesforce" as the "Action type". Click the "Add" button.
- Close the modal.
- Click the "Settings" button for the new action.
- Edit the "Salesforce Operations" field to specify the field mapping in JSON.
- Click the "Save" button.
- Test submitting the form.
This addon integrates with Easyform's tool for migrating from PloneFormGen.
This will happen automatically as long as jazkarta.easyformplugins.salesforce
is installed
when you use the /@@migrate-ploneformgen
view.
It will try to migrate every salesforcepfgadapter
, but will throw an exception if the
adapter uses settings that are not supported by jazkarta.easyformplugins.salesforce
(such as chained adapters to write to multiple Salesforce records).
- Report Bugs: https://github.com/collective/jazkarta.easyformplugin.salesforce/issues
- Source Code: https://github.com/collective/jazkarta.easyformplugin.salesforce
This package is offered as open source but without any guarantee of free support. If you are interested in paid support, please contact david at glicksoftware.com
The project is licensed under the GPLv2.