Send Sitefinity CMS form data to Oracle Eloqua forms
You can enable Sitefinity CMS forms to submit data to Eloqua via the IEloquaFormDataSubmitter interface. You submit the following data:
- Eloqua form name
- Field names in the Sitefinity CMS form
- Field values of the Sitefinity CMS form fields
You also use the EloquaFormDataSubmitter to post data to Eloqua from custom code, for example, custom widgets you implemented.
The following example demonstrates how you use the EloquaFormDataSubmitter.
C#
using System.Collections.Generic;
using Telerik.Sitefinity.Abstractions;
using Telerik.Sitefinity.EloquaConnector.Client.Forms;
namespace SitefinityWebApp
{
public class SendDataToEloqua
{
public void SendSitefinityDataToEloqua()
{
// Example of submitting data to Eloqua
// Create a dictionary with the fields and values you want to send
var fields = new Dictionary<string, string>();
fields.Add("firstName", "John");
fields.Add("lastName", "Smith");
// Specify the name of the Eloqua form
var eloquaFormName = "EloquaFormName";
// Resolve the submitter
var eloquaFormDataSubmitter = ObjectFactory.Resolve<IEloquaFormDataSubmitter>();
// Submit the fields to the form
eloquaFormDataSubmitter.SubmitFormData(fields, eloquaFormName);
}
}
}
In the code above, you:
- Resolve an instance of type
IEloquaFormDataSubmitter. - Next, you add two sample fields and their values:
firstNamewith valueJohnlastNamewith valueSmith
- Via the
eloquaFormNameparameter define the specific Eloqua form, to which you map your Sitefinity form. - Finally, you submit form data via the
eloquaFormDataSubmitter.SubmitFormData(fields, eloquaFormName);method.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your 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 ASP.NET Core and take advantage of its decoupled architecture and modern development model.