MarketingIntegration Class

Get, save, and submit a microsites marketing integration form for an Experience Cloud site.

ConnectApi

The following are methods for MarketingIntegration. All methods are static.

MarketingIntegration methods make calls to Marketing Cloud Engagement REST APIs to create, query, and insert data to the data extension object. If the API returns errors, ConnectinApex error messages include the error code and message from Marketing Cloud Engagement.

Get a marketing integration form for an Experience Cloud site.

53.0

No

public static ConnectApi.Form getForm(String siteId, String formId)

siteId

Type: String

ID for the Experience Cloud site.

formId

Type: String

ID of the form.

Type: ConnectApi.Form

Save a marketing integration form for an Experience Cloud site.

53.0

No

public static ConnectApi.Form saveForm(String siteId, ConnectApi.FormInput formInput)

siteId

Type: String

ID for the Experience Cloud site.

formInput

Type: ConnectApi.FormInput

A ConnectApi.FormInput object to save.

Type: ConnectApi.Form

This method attempts to create a read-only data extension in Marketing Cloud Engagement. A Marketing Cloud Engagement admin can change the read-only setting. We recommend keeping the data extension as read-only to maintain schema consistency with the form.

Submit a marketing integration form for an Experience Cloud site.

53.0

53.0

No

public static ConnectApi.FormSubmission submitForm(String siteId, String formId, ConnectApi.FormSubmissionInput formSubmissionInput)

siteId

Type: String

ID for the Experience Cloud site.

formId

Type: String

ID of the form.

formSubmissionInput

Type: ConnectApi.FormSubmissionInput

A ConnectApi.FormSubmissionInput object to submit.

Type: ConnectApi.FormSubmission