Logic App is retrieving scrambled string from service bus queue

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

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.
1,804 questions
No comments
{count} votes

1 answer

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

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

    Something like

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

    No comments