Newer Version Available
MarketingIntegration Class
Get, save, and submit a microsites marketing integration form for an Experience Cloud
site.
Namespace
MarketingIntegration Methods
The following are methods for MarketingIntegration. All methods are static.
MarketingIntegration methods make calls to
Marketing Cloud REST APIs to create, query, and insert data to the data extension object. If
Marketing Cloud REST APIs return errors, ConnectinApex error messages include the error code and message from Marketing Cloud.
getForm(siteId, formId)
API Version
53.0
Requires Chatter
No
Signature
public static ConnectApi.Form getForm(String siteId, String formId)
Parameters
Return Value
Type: ConnectApi.Form
saveForm(siteId, formInput)
API Version
53.0
Requires Chatter
No
Signature
public static ConnectApi.Form saveForm(String siteId, ConnectApi.FormInput formInput)
Parameters
- siteId
- Type: String
- ID for the Experience Cloud site.
- formInput
- Type: ConnectApi.FormInput
- A ConnectApi.FormInput object to save.
Return Value
Type: ConnectApi.Form
Usage
This method attempts to create a read-only data extension in
Marketing Cloud. A Marketing Cloud admin can change the read-only setting. We recommend
keeping the data extension as read-only to maintain schema consistency with the
form.
submitForm(siteId, formId, formSubmissionInput)
API Version
53.0
Available to Guest Users
53.0
Requires Chatter
No
Signature
public static ConnectApi.FormSubmission submitForm(String siteId, String formId, ConnectApi.FormSubmissionInput formSubmissionInput)
Parameters
- 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.