Logic App is retrieving scrambled string from service bus queue

Muhammad Abid Hasan 1 Reputation point
2020-09-01T11:21:29.68+00:00

Hi,

I am queuing a string (e.g. Something) message in Azure Service Bus Queue.

And a logic apps trigger is retrieving that message from the service bus queue.

While retrieving, it is scrambling the message to an unreadable format. Please see the expected output and actual output from the trigger (please see the difference in "ContentData"),

Expected Output

"body": {
"ContentData": "Something",
"ContentType": "text/plain",
"ContentTransferEncoding": "Base64",
"Properties": {

Actual Output

"body": {
"ContentData": "U29tZXRoaW5n",
"ContentType": "text/plain",
"ContentTransferEncoding": "Base64",
"Properties": {

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,133 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Koerner 1 Reputation point
    2020-09-01T15:00:36.607+00:00

    That string U29tZXRoaW5n IS base64 encoded. You need to decode it to get Something

    Something like

    decodeBase64(triggerBody()?[body('ContentData')])

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.