Newer Version Available
lightning:conversationNewMessage
Response
| Name | Type | Description |
|---|---|---|
| recordId | String | The ID of the work record that’s associated with the current conversation. |
| content | String | The message sent by the agent. |
| name | String | The name of the user who sent the message. This name matches the username displayed in the conversation log. |
| type | String | The type of message that was received, such as an Agent or Visitor message. |
| timestamp | Date/Time | The date and time the message was received. |
Example
Component code:
Controller code: