Hi @Lee Yong Sheng ,
Thank you for asking this question on the Microsoft Q&A Platform.
You are getting empty value because of missing "SessionId" input,
"Get_messages_from_a_queue_(peek-lock)": {
"inputs": {
"host": {
"connection": {
"name": "@parameters('$connections')['servicebus']['connectionId']"
}
},
"method": "get",
"path": "/@{encodeURIComponent(encodeURIComponent('testtopic'))}/messages/batch/peek",
"queries": {
"maxMessageCount": 20,
"queueType": "Main",
"sessionId": "@triggerBody()?['SessionId']"
}
},
"runAfter": {},
"type": "ApiConnection"
}
I tried to replicate it at my end and it's working fine for me, please refer the above code,
Regards,
Kamlesh Kumar
BizTalk Techie
Please don't forget to click on or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How
Want a reminder to come back and check responses? Here is how to subscribe to a Notification
If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators