🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Salsa Integration Add-on

Updated 10 min read Gravity Forms CRM & Email Marketing
On this page
  1. What you need
  2. Step 1: Get your API token
  3. Step 2: Connect (Forms, Settings, Salsa CRM)
  4. Step 3: Create a feed (Form, Settings, Salsa CRM)
  5. The supporter
  6. Custom fields, groups and source
  7. What happens when someone submits the form
  8. Merge tags and notifications
  9. Retries and safety
  10. Entry list actions
  11. For developers
  12. Updating from version 1.0.1
  13. What the add-on does not do
  14. Troubleshooting
  15. Privacy

The Gravity Forms Salsa CRM Add-On sends the people who fill in your Gravity Forms to Salsa Engage as supporters. For each matching entry a background job looks for the supporter by e-mail address in your Salsa account and creates it or updates it with the fields you chose, adds custom field values and, if you want, puts the supporter into static groups. It talks to Salsa with your own Salsa API token, so the supporters appear in your own account and nothing passes through a GravityExtra server.

What you need

  • WordPress 5.8 or newer, PHP 7.4 or newer, Gravity Forms 2.5 or newer.
  • A Salsa Engage account whose organization has API access. You get the API token in Salsa Engage under Organization Settings, on the API tab (Salsa asks for your Engage password there). If you do not see the API tab, your organization may not have API access configured, or your user may not be allowed to see that screen: ask Salsa support to enable it.
  • A Gravity Extra licence key (Forms, Settings, Salsa CRM).

The add-on uses the Salsa Engage Integration API. It does not work with other Salsa products and it does not need an app registration or a partner account: the token of your organization is enough. Salsa limits a token to 300 calls in a rolling minute; a submission uses 2 calls (a search and the save) plus one for each page of custom fields (10 fields per page) and one for each group.

Step 1: Get your API token

  1. Sign in to Salsa Engage as a user who may see Organization Settings.
  2. Open Organization Settings, then the API tab, and enter your Engage password.
  3. Copy the API token (a long run of letters, numbers, dashes and underscores). You can re-issue the token there if you think it was exposed; the old one stops working.

Step 2: Connect (Forms, Settings, Salsa CRM)

  1. Activate your licence key.
  2. Paste the token into API token and click Save Settings. The token is stored encrypted with your site’s security keys and is never shown again. Leave the box empty on later saves to keep it, type a new one to replace it, or tick Remove the stored API token when saving. If you change the WordPress security keys (AUTH_KEY, SECURE_AUTH_KEY and their salts), enter the token again.
  3. Click Check the connection. The add-on reads the limits of your token from Salsa (calls a minute, batch size, calls available now) and creates and changes nothing. A wrong token is refused with a clear message.

Salsa Engage API token settings in Gravity Forms

Step 3: Create a feed (Form, Settings, Salsa CRM)

Salsa CRM feed: supporter field mapping

The supporter

  1. Give the feed a name.
  2. In Supporter, map the form fields. The e-mail is required: it is how an existing supporter is found. Only the fields you map are sent.
    Feed field Goes to (Salsa supporter)
    Email The e-mail contact (lower-cased)
    Full name First and last name, split at the last space (used only when no first or last name is mapped)
    First name, Last name, Title First name, last name, title
    Home phone, Cell phone, Work phone A phone contact of that type (digits, plus, spaces, dashes, dots and brackets only; anything else is refused with a note)
    Address line 1 and 2, City, State, Postal code, Country The address
    Date of birth Date of birth (yyyy-mm-dd, as a Gravity Forms date field stores it; an impossible date is refused)
    ID in another system The external system id
  3. Choose Existing supporters:
    • Update the supporter with the mapped values (recommended): the add-on searches Salsa for the e-mail address and sends the mapped values to the supporter it found; it creates a new supporter only when there is none.
    • Do not change an existing supporter: a supporter that is found is left exactly as it is (no values, no groups); the entry note says so.

    If more than one supporter in Salsa has the same e-mail address, nothing is changed and the note asks you to merge them in Salsa.

  4. Choose the E-mail subscription:
    • Do not send a status: Salsa keeps the subscription status of an existing supporter and applies its own default to a new one.
    • Opt in the e-mail address: every supporter of the feed is subscribed.
    • Opt in only when a checkbox field is ticked: only when the visitor agreed on the form.

    The add-on never opts anyone out. For an existing supporter the e-mail contact is sent only when it is opted in, so a contact that was opted out in Salsa is never touched without consent.

Custom fields, groups and source

  1. Custom fields: in the table, type the exact name of a Supporter custom field of Salsa on the left, and pick a form field or type a value (merge tags work) on the right. The add-on reads your custom fields from Salsa, finds each name (capitals do not matter), checks the value against the field’s type and sends the field’s id and type:
    • Text and long text: any text (HTML is removed).
    • Whole number: digits only. Decimal number: for example 120.50.
    • Yes/no: yes, true, 1, on, checked, or no, false, 0, off.
    • Date: yyyy-mm-dd.

    A row with an empty value is left out. A name that Salsa does not have as a Supporter custom field (or a value of the wrong type) stops the entry with a note, and nothing is sent. A typed name is saved by Gravity Forms as gf_custom with the text in custom_key, and a typed value as gf_custom with the text in custom_value; the add-on reads both.

  2. Add to groups (ids): the ids of static groups (segments) of Salsa, one per line or separated by commas (UUIDs such as 3f2b8c1e-5d3a-4f7e-9c11-2a6d8e4b7a90; up to 10). The supporter is added to each. Salsa does not let the API change groups that are not static: the note then says so, the supporter itself is still saved and the other groups still work. An id that is not a UUID is refused when you save the feed.
  3. Source tracking code: saved with a new supporter to show where it came from (merge tags work). An existing supporter keeps its code.
  4. Use Condition to send the supporter only for some entries. A form can have several feeds.

Salsa CRM feed: custom fields, groups and source code

What happens when someone submits the form

  1. The entry is saved and the visitor sees the confirmation at once. The add-on only queues a background job; it never makes the visitor wait for Salsa and an error never reaches the visitor.
  2. The job builds the supporter from the entry and checks it (a missing or invalid e-mail, a phone number or a date that is not valid, an unknown custom field or a wrong value is refused before anything is sent, with a note on the entry), searches Salsa for the e-mail address, then creates or updates the supporter, then adds it to the groups.
  3. The entry gets a note: supporter created, updated or found and left unchanged, with its Salsa id, and how many groups were added. Problems are named with Salsa’s own words where Salsa gives them.
  4. The entry page has a Salsa CRM box with the status, the supporter id and the result.

Salsa CRM box on a Gravity Forms entry

Merge tags and notifications

Merge tag Value
{salsa_supporter_id} The supporter id in Salsa
{salsa_result} ADDED (created), UPDATED, or EXISTING (found and left unchanged)
{salsa_status} ok, fail, retrying, queued or sending

Add _<feed id> to a tag to read a particular feed (for example {salsa_supporter_id_12}); without it the newest result of the entry is used. The tags are empty until the supporter is saved. Two notification events are offered on forms that have a feed: Salsa: the supporter is saved and Salsa: the supporter failed; each is sent once, after the result.

Retries and safety

  • Temporary problems (Salsa unreachable, HTTP 5xx, 408, or the rate limit 429) are retried in the background after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours (6 attempts). A rate-limit retry never comes earlier than a minute.
  • A new supporter is never sent twice after the request left: when the request that creates a supporter may have arrived but the answer did not (a timeout, a connection reset, an HTTP 5xx or a “system error” or an answer that is not a supporter answer), the add-on does not repeat it. The note says to look in Salsa. Send to Salsa again in the entry list searches the e-mail address first, so it updates a supporter that Salsa did save and creates one only when there is none. “Skip finished” never redoes such an entry.
  • Updating an existing supporter, the searches and adding to groups set the same values again, so they are safe to repeat and are retried.
  • Refusals are final (400, a validation error, a change that Salsa does not allow) and shown with Salsa’s own words. A token that Salsa does not accept (401) is final and points to the settings page.
  • One job per entry and feed at a time; a finished entry is never sent again by a repeated job.
  • The API token is stored encrypted, never shown, never put in a note or a log, and only sent to api.salsalabs.org in the authToken header. The add-on never follows a redirect.

Salsa’s Integration API has no webhooks, so the add-on has no webhook address to protect and never waits for a call from Salsa.

Entry list actions

  • Send to Salsa (skip finished) queues entries that were not sent yet.
  • Send to Salsa again (looks the e-mail up, then updates) sends the chosen entries again, in groups of 5.

For developers

Hook Use
gform_ge_salsa_supporter_payload (filter) Receives the supporter object that is about to be sent (one item of payload.supporters of PUT /integration/ext/v1/supporters: firstName, lastName, contacts, address, customFieldValues …), the entry and the feed. Return the array, or something that is not an array to cancel (the entry gets a note). The supporterId is set by the add-on: an id added by the filter is ignored.
gsa_supporter_saved (action) Fires after the supporter is saved: the result (supporter id, result, groups done), entry, feed, form.
gsa_failed (action) Fires when no supporter could be saved: entry, feed, form, message.

Updating from version 1.0.1

Version 1.0.1 never added a supporter to Salsa: it used the wrong request method and wrong field names, and wrote a note that said the supporter was mapped whatever Salsa answered. Install this version over the old plugin (same folder and file). Your licence key and your feeds are kept. The API token you typed in 1.0.1 is kept too: it is the same Salsa token, and it is now stored encrypted (a notice on the settings page says so; a value that is not a valid token is removed instead). The endpoint address typed in 1.0.1 is removed: the add-on only talks to api.salsalabs.org. An old feed keeps what 1.0.1 read: first name from input 1.3, last name from input 1.6 and the e-mail from field 2; open it once and map the fields you want.

What the add-on does not do

  • It only writes supporters: it does not read data back, record donations or transactions, or read activities (petitions, events, fundraising pages).
  • It does not delete supporters, merge supporters, opt anyone out, or fill dynamic groups or tags.
  • It sends one e-mail contact per supporter (no second or work e-mail address).
  • It works with the Salsa Engage Integration API only.

Troubleshooting

Entry note or message What to do
Salsa is not connected Enter your API token under Forms, Settings, Salsa CRM and save.
Salsa did not accept the API token The token is wrong or was re-issued. Copy the current token from Organization Settings, API tab.
I do not see the API tab in Salsa Your organization may not have API access configured, or your user may not see that screen. Ask Salsa support.
Salsa has no Supporter custom field named … Create the field in Salsa (type Supporter) or fix the name in the feed. Activity custom fields are not supported.
… of the custom field … is not a whole number / a date / yes or no Fix the value or the mapped field.
More than one supporter in Salsa has this e-mail address Merge the supporters in Salsa, then use “Send to Salsa again”.
Salsa did not accept the supporter (…) The text in brackets is Salsa’s reason. Fix the feed or the data, then use “Send to Salsa again”.
group …: Salsa does not allow this change through the API That group is not a static group. Use a static group.
… may or may not have been created … not repeated Look in Salsa. Use “Send to Salsa again”: it looks the e-mail up first and never makes a second supporter.
Salsa call rate limit reached Nothing to do: the job is retried later. A very busy form may need a higher limit from Salsa.

Privacy

When a feed is active, the supporter details of a submitted form (name, e-mail address, phone, address and the mapped custom field values) are sent to Salsa Engage (api.salsalabs.org) to find, create or update a supporter in your Salsa account. Salsa processes the data under its own terms. The add-on adds this to the WordPress privacy policy guide.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr