# JMS tools by Workato - Publish message in topic action
The Publish message in topic action creates a new message in a topic you specify.
PREREQUISITES
You must define the topic's name as well as the message's format and schema in a common data model before you can use this action.
# Input
| Input field | Description |
|---|---|
| Topic name | Enter name of the topic to monitor. This must exactly match the topic name defined in your common data model. |
| Delivery Mode | Optional. Select the delivery mode for the message. |
| Priority | Optional. Enter the message priority as an integer between 0 and 9. A higher value number represents a higher priority. |
| Delivery delay | Optional. Enter the number of milliseconds to delay the message before delivery. |
| Time to live | Optional. Enter the lifetime of the message in milliseconds. Enter 0 or leave this field blank to set messages to never expire. |
| Correlation ID | Optional. Enter the identifier for tracking related messages. |
| Type (ReplyTo) | Optional. Select the type of destination to send replies to. |
| Name (ReplyTo) | Optional. Enter the name of the destination to send replies to. |
| Type | Optional. Enter the classification of the message. |
| Properties | Optional. Define custom properties to include in the message schema. |
| Message | Define the message payload. |
# Output
The output of this action varies based on the message schema.
Last updated: 1/13/2026, 9:56:03 PM