@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.