onMessageSentToBusiness( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

An event that triggers when a contact, member, or site visitor sends a message to a business.

The onMessageSentToBusiness() event handler runs when a message is sent from a site's contact, member, or visitor to a business. The received MessageSentToBusinessEvent object contains information about the message that was sent.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventMessageSentToBusinessEvent

Information about the message that was sent and metadata for the event.

Did this help?