Queue Name is not binding to azure service bus (Azure Logic Apps)

meenakshi mahajan 26 Reputation points
2022-04-13T10:12:27.61+00:00

I am sending value to queue using Parameters file. Parameters file code is as below.

192701-image.png

In main JSON file queue name is fetching like this
192683-image.png

After deployment in the Azure queue name is not binding. it should be test dev.
192712-image.png

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

Accepted answer
  1. MayankBargali-MSFT 70,016 Reputation points
    2022-04-13T11:27:34.547+00:00

    @meenakshi mahajan Thanks for reaching out. The code View of the logic app looks good for path. Queue Name will not bind the actual value in the code view but during runtime the actual value that is defined for your parameter QueueName will be used. The only changes will be in the second encodeURIComponent value in case if you are directly using the queue name or parameter.

    In case if you are specifying the name directly then path value will be as below:
    "path": "/@{encodeURIComponent(encodeURIComponent('yourqueuename'))}/messages/head",

    When you specify the queue name as paramater then it will be as below:
    "path": "/@{encodeURIComponent(encodeURIComponent(parameters('QueueName')))}/messages/head",

    Feel free to get back to me if you have any queries or concerns.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful