Actions
Publish Pub-Sub Message
Add one or more messages to the topic.
External Documentation
To learn more, visit the Pub-Sub documentation.
Parameters
Parameter | Description |
---|---|
Messages | An array of the message objects to be published. The message needs to be Base64 encoded. For more information see Pub/Sub Documentation. For example:[ { "data": "SGVsbG8gV29ybGQh" }, { "data": "SGVsbG8gQmVhdXRpZnVsIFdvcmxkIQ==" }] |
Project ID | The messages in the request will be published on a topic in this project. |
Topic | The messages in the request will be published on this topic. Can be obtained by using the List Topics action.For example:{ "topics": [ { "name": "projects/test/topics/test-topic" } ]} In order to extract the topic name we need to take the last part of the name returned, in this case test-topic . |
Example Output
Workflow Library Example
Publish Pub Sub Message and Send Results Via Email
Preview this Workflow on desktop
Was this page helpful?