Add one or more messages to the topic.
External DocumentationTo learn more, visit the Pub-Sub documentation.

Parameters

ParameterDescription
MessagesAn 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 IDThe messages in the request will be published on a topic in this project.
TopicThe 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

{
  "messageIds": [
    string
  ]
}

Workflow Library Example

Publish Pub Sub Message and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop