Skip to content

Feeds

A feed tells CampaignSuite what to send, where to send it and when. You make feeds per form with the CS | Feeds add-on (CampaignSuite Feeds) of Gravity Forms. Salesforce feeds need a connected Salesforce, and Mautic feeds need a connected Mautic.

  1. In Gravity Forms, open your form and go to Settings > CS | Feeds.
  2. Click Add New.
  3. Fill in the General settings:
    • Feed name
    • Feed type
    • Feed moment
    • Feed Condition (optional)
  4. Fill in the settings of the type (below) and save.

General settings of a feed: feed name, feed type, feed moment and feed condition

Feed list of a form with a Salesforce feed and a Mautic feed, each showing name, type and moment

The feed list shows the Name, Type and Moment of each feed. A form can have several feeds, for example one for Salesforce and one for Mautic. You can duplicate feeds, and they are exported and imported together with the form. When you duplicate a form, each feed is copied once, named “… - Copy 1”, and stays active or inactive as it was. An export includes inactive feeds too. If a feed can’t be imported, the import page says so.

This type creates a new Salesforce record, or updates an existing one if a match is found.

  1. Choose the Object, for example Contact.
  2. Under Map your form fields to the object fields, pick a field of the object on the left and the form field on the right. Add a row for each field.

If a Salesforce object is missing from the list, check that Salesforce is connected and clear the cache on the Debug page.

Settings of a Salesforce feed: the Contact object with form fields mapped to First Name, Last Name, Email, Phone and Lead Source

CampaignSuite doesn’t compare names or email addresses to decide between creating and updating. It only updates a record when the mapping contains the Id of the record, which is the Salesforce record ID (for example the Contact ID that prefill puts in a hidden field). Without an ID, it always creates a new record.

So map Id only on a feed that runs when the ID is known. If a form serves both new and known supporters, use two feeds with a Feed Condition. One updates: it maps Id and runs only when the ID field is not empty. The other creates: it leaves out Id and runs only when the ID field is empty.

Salesforce may also refuse to create a record that its own duplicate rules consider a copy of an existing one. The feed then shows Error on the entry. Ask your Salesforce admin about the duplicate rules, or update the existing record by ID instead.

Instead of picking a form field, you can also type your own value, such as a fixed Lead Source.

This type submits a Mautic form with the data of the entry.

Settings of a Mautic feed: the Mautic form and the mapping of Mautic form fields to form fields

  1. Choose the Form (a Mautic form).
  2. Under Map your form fields to the Mautic form fields, link form fields to the Mautic form fields.
  3. If you want, switch on Advanced options (Overwrite Mautic Entry information) and map extra information: IP Address, Contact ID, Device ID, Session ID, Referrer and User-Agent.

CampaignSuite reads the visitor’s Mautic tracking cookies and stores them on the entry as MTC Contact ID, MTC Device ID and MTC Session ID, so Mautic can link the submission to the visitor. You can see them in the Mautic Cookie Details box on the entry.

This is a simple webhook for testing, with Webhook URL, Webhook Method (GET, POST, PUT, DELETE), Webhook Body and Webhook Headers. It only shows up when Webhook FeedAction type is on in the Debug settings.

The Feed moment decides when the feed runs:

  • When entry is created runs the feed right after the entry is saved. This is the usual choice.
  • Before confirmation runs it after the entry is created, just before the visitor sees the confirmation. It runs once per entry, so on a form with a FinDock payment it runs when the form is submitted and not again when the visitor comes back from the payment.
  • By hand runs it only when you start it yourself, as described below.

When the form has a FinDock feed, extra moments appear for payment events: FinDock Contact/Account Known, FinDock In Review (manual) and FinDock Failure, plus FinDock payment completed, FinDock payment failed and FinDock payment update (can fire multiple times) when the FinDock feed is set up for payments. They work for Salesforce and Mautic feeds too. A feed on one of these moments runs once per entry, the first time the moment happens, and that also goes for a recurring payment. Use them to send data only after a payment has succeeded, for example to add a donor to a Mautic form after the first payment.

With Feed Condition the feed only runs when fields have certain values, for example when a newsletter box is checked. A skipped feed leaves a note on the entry.

Each run adds notes to the Gravity Forms entry and stores a result and status. Open an entry in Gravity Forms and look at Feed Action Details. It lists each feed with Active, Feed and Result, where the result is Success, Error, Skipped or N/A.

Feed Action Details box on an entry, with a successful Mautic feed and a Salesforce feed that links to the new record

If you want a warning when a feed fails, pick the notification event CS Feed failure, which the add-on adds to Gravity Forms notifications.

Users who may edit entries can run feeds from an entry.

Execute Feed Actions box on an entry

  • In the Execute Feed Actions box, select a feed, tick Bypass Conditional logic or Force re-execution (even if feed has been executed successfully before) if you need to, and click Execute.
  • In the Run manual feedactions box, Execute Manual Feeds runs all feeds with the moment By hand.
  • In the entry list, the bulk action Execute Manual Feeds does the same for the selected entries.