ProcessFormHandler Interface

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

RichMessaging

The following are methods for ProcessFormHandler.

  • processFormRequest

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

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

ID processFormRequest(RichMessaging.ProcessFormResponse formResponse)

  • formResponse: Type: RichMessaging.ProcessFormResponse The form response.
  • ID: Type: RichMessaging.ProcessFormResponse

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.