star This is a Streamsheets Professional feature.

Publishes either a message or an arbitrary value using a specified Producer and topic. To reference a message from the outbox use the OUTBOX function and to reference a message from the inbox use INBOX. You can use the Function Wizard for this function.


=KAFKA.PUBLISH(Producer, Message, Topic)


Name Description
Producer Producer to use for publishing.
Message Either an existing message from the outbox a JSON or a primitive value to publish.
Topic Topic the message is published to.

Return Value

TRUE, if successful.


Function Result Comment
=KAFKA.PUBLISH(“Kafka Producer”, “Message”, “test”) TRUE This publishes the string value “Message” using the “Kafka Producer” to the topic “test”