Reputation: 71
The send message action always said "Message Received could not be parsed and is null" Error output
The input is json array. Input information and data
Any suggestion?
Thank you
Upvotes: 1
Views: 1649
Reputation: 71
Figured it out.
Looks like sending a message to service bus requires the message content to be base64 encoded. Since content is a JSON, need to stringify it explicitly prior to encoding, i.e. use @encodeBase64(string(jsonContent))
Changing the content type to text/plain has the same effect, since in that case the content is treated as a string to begin with.
Upvotes: 6