Blogs RSS feed

Integrating Sitefinity CMS and SalesForce CRM

by Bilyana Ivanova

You have your Sitefinity CMS, you have your CRM and now you want these two to interact. It is :

  • Doable, as Sitefinity CMS, being an ASP.NET web application, allows you to easily add any functionality;
  • Easy, as the API of the CMS, in conjunction with the variety of extensibility points make it all a straightforward process.

As an example we will cover the basic scenario of generating leads in SalesForce by submitting a form on the Sitefinity site.

A form is a collection of field controls. On form submission the data from these controls will be used for the lead generation request to SalesForce. Somehow these field controls need to be mapped to the fields of a lead record within SalesForce. To allow that, we will use a custom forms control with a custom control designer that allows the user to set the mapping. The required fields for a lead creation are Last Name and Company. Here is the end result for a designer with these two fields:

Now let’s get started!

  1. First you should allow access to SalesForce by creating a Connected App. Each app has a consumer key and a consumer secret. You also need a user, who has permissions for lead creation. For the configuration within Sitefinity you will need that user’s usernamepassword and security token.
  2. Download the source code for the new Forms control. Place the code under the root of your application.
  3. You have to register the new configuration section so merge this code in the Global.asax file:

    protected void Application_Start(object sender, EventArgs e) {
    Telerik.Sitefinity.Abstractions.Bootstrapper.Initialized += Bootstrapper_Initialized;
    protected void Bootstrapper_Initialized(object sender, Telerik.Sitefinity.Data.ExecutedEventArgs args) {

  4. Finally build the application and register FormsControlCustom using Sitefinity Thunder.

Now start the site, go to the advanced settings, find the SalesForce section and configure the widget using the data from step  1.

And you are actually done! 

Here is a short instructional video thanks to Grisha Karanikolov:
Powerful SalesForce CRM Data for actionable insights, learn more about the integration of Sitefinity CMS and SalesForce CRM.


  1. 1 Michael 14 May
    That's cool Bilyana - do you know if anyone has done something similar to integrate with Microsoft Dynamics CRM?
  2. 2 Josh 24 Jun
    What do we put in the configuration under "Server"?
  3. 3 Bilyana 25 Jun
    @Josh I should have probably named that property "Domain" . Enter the url you use to log into and navigate Salesforce.
  4. 4 mukti 25 Jun
    test comment
  5. 5 Replica watches 05 Sep
    Thank you for sharing, I really like, but my home there are more related
    content, you can refer to. I expect better next time. Good luck.


  1. RadEditor - HTML WYSIWYG Editor. MS Word-like content editing experience thanks to a rich set of formatting tools, dropdowns, dialogs, system modules and built-in spell-check.
    RadEditor's components - toolbar, content area, modes and modules
    Toolbar's wrapper 
    Content area wrapper
    RadEditor's bottom area: Design, Html and Preview modes, Statistics module and resize handle.
    It contains RadEditor's Modes/views (HTML, Design and Preview), Statistics and Resizer
    Editor Mode buttonsStatistics moduleEditor resizer
    RadEditor's Modules - special tools used to provide extra information such as Tag Inspector, Real Time HTML Viewer, Tag Properties and other.