Synchronize a Sitefinity CMS form with Salesforce contacts or leads

Perform this procedure, if in Step 4 of Configure a SalesForce synchronization, you have selected Form responses.
  1. Map Sitefinity CMS form with Salesforce contacts or leads.
    This mapping is required.

    EXAMPLE: You can have thousands of Salesforce contact that are coming from many different Sitefinity CMS registration forms. In order to associate each contact with a particular Sitefinity CMS form, and then, for example, in Salesforce filter all contacts that are coming from this particular form.

  2. Under Sitefinity, click Select…
    A list of all created Sitefinity CMS forms appear.
  3. Select the form, whose form responses you want to synchronize with Salesforce and click Done.

    IMPORTANT: This form must contain a field for the Last Name of the users, in case that you are syncing contacts, and fields for the Last Name and the Company of the user, in case that you are syncing leads, since these fields are mandatory in Salesforce.

  4. Under SalesForce click Select…
    Choose what type of data you want to sync - Leads or Contacts.
  5. Under Set a field to mark the synced contacts on SalesForce, to associate a Salesforce contact or lead with a Sitefinity CMS form, you must specify a field for the Salesforce contact or lead that designates this contact or lead is synced from a Sitefinity CMS form.
    For example, you can use an existing field for Leads, named Website and give it a value mydomain.com.
    Thus, each Salesforce lead that results from a particular Sitefinity CMS form will have its Website field equal to mydomain.com. This way, in Salesforce, you can use the Website field to sort or filter contacts or leads coming from different Sitefinity CMS forms.
  6. Click Mapping section and map Salesforce fields to the existing fields in your Sitefinity CMS form. You do this by selecting a Sitefinity CMS form field from the dropdown to the relevant Salesforce field on the left.

    NOTE: You need to map at least the required fields for contacts or leads but do not need to map all other fields.

    NOTE: You can also map fields manually in the Advanced settings in Sitefinity CMS. For details, see the next section in this article.

  7. Under Schedule type, choose an option to either automate the synchronization procedure to run in a specified time interval or do it manually by choosing the Not scheduled default option.
  8. Click Save.

Manual mapping Salesforce fields to Sitefinity CMS form fields

You can map Salesforce fields to Sitefinity CMS form fields manually in the Advanced settings section.

To do this, perform the following:

  1. In Sitefinity CMS backend, click Administration » Settings » Advanced » SalesForceConnector » SalesForce account.
  2. Expand the account where you are creating a synchronization and click List mappings.
  3. Expand the synchronization where you want to map fields and then click Field mappings » Create new.
  4. Enter the Salesforce API Field Name.
    For a reference of Salesforce field labels and API field names, see Salesforce Field Reference Guide.
  5. Enter the corresponding Sitefinity CMS form field.
    You must enter the FieldName of the field.

    To check the FieldName of each MVC form field, open the field for editing and navigate to Advanced » Model » MetaField » FieldName.

  6. Click Save changes.
    The fields are mapped. You can map as many fields as required.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?