Newer Version Available

This content describes an older version of this product. View Latest

ProcessFormHandler Interface

Apex interface that processes the responses to forms submitted in a messaging session.

Namespace

RichMessaging

ProcessFormHandler Methods

The following are methods for ProcessFormHandler.

processFormRequest

Processes the form request and returns the ID of the record created during form processing.

Signature

ID processFormRequest(RichMessaging.ProcessFormResponse formResponse)

Parameters

formResponse
Type: RichMessaging.ProcessFormResponse
The form response.

Return Value

ID
Type: RichMessaging.ProcessFormResponse

ProcessFormHandler Example Implementation

The sample ContactApexFormHandler Apex class automatically captures the customer's submitted details, creates a Contact record in Salesforce, and returns the Contact record ID.

This is an example implementation of the RichMessaging.ProcessFormHandler interface.

For more information, see "Create a Form Based on an Apex Class" in this help topic.