Create the event handler

The event handler receives messages.

Before you begin

You import the event handler PHP file that you downloaded from GitHub. The PHP file is in the twilio/cx/imports/cpm directory.

Procedure

  1. Click Configuration on the navigation pane.
  2. Expand Site Configuration, then double-click Process Designer.
    The process designer opens on the content pane.
  3. Click New.
    The event handler editor opens.
  4. Click the folder icon next to the PHP Code File field.
  5. Navigate to the twilio/cx/imports/cpm directory, select the messageLog_update.php file, and then click Open.
    The PHP code is loaded into the PHP Content field as read-only text, and the Procedure Name field is completed with MessageLog_Update.
  6. Click Save.
    You must save the event handler to test it.
  7. Click Test in the event handler editor.
    The Test Result window displays: [Empty Result].
  8. Click OK.
  9. Click Yes in the Event Handler window.
  10. Click Save.

What to do next

Next you associate the event handler with the custom process model.