I found that the message I am picking up from Service Bus is text/plain.
And yours is application/json.
Is it affecting the work? Though it does not explain that why the body message is empty.
![214678-runexec-1-2.jpg][1]
Thanks and regards
Yong Sheng
[1]: /answers/storage/attachments/214678-runexec-1-2.jpg
Hi Kamlesh
Thanks for your prompt response again!
I have tried but same issue happening.
Configuration as follow:

Run execution:


Below is the message I peek to view inside Service Bus:
The strange thing is I configured the same way aas you did but the execution did not even go into the For loop as the output of "Get message queue" is empty.
By the way, may you show more details of the Body message and the Compose Operation connector inside the For loop?
I found an article about Logic App integration Pattern using PeekLock, wondering if worth to try it...
https://azureintegrations.com/2020/07/11/azure-integration-azure-service-bus-and-logic-app-integration-pattern-using-peeklock/#:~:text=Logic%20App%20atomically%20retrieves%20and%20locks%20a%20message,expires%2C%20the%20message%20becomes%20available%20to%20other%20receivers.
Thanks and have a nice weekend ahead!
Yong Sheng
Dear @PramodValavala-MSFT
Thank you so much for your response with 3 suggested approaches moving on next.
Before moving on to try Azure Functions Apps, I will try method 3 first then method 1 as your suggestion.
For method 3, "Build an object with the aggregated data".
Is it possible to batch processing the turbochargers inside an array of an object?
For example:
Object defined as {
"vesselName": "",
"vesselIMO": "",
"turboName": ""
}
then the array of this object will be updated every loop if the condition is satisfied.
For instances the array can be updated as here:
[{
"vesselName": "kotamanis",
"vesselIMO": "12345",
"turboName": "AE1",
latestHealthScore: 0.453344
}
{
"vesselName": "kotamanis",
"vesselIMO": "12345",
"turboName": "AE2",
latestHealthScore: 0.551122
}]
As searching the example online, all examples talking about dynamically update the content of a single JSON, not the array of JSON/object. So I am wondering whether it is feasible to use logic app for my case...
I really appreciate your sharing!
Thank you and take care!
Yong Sheng
Dear AnuragSharma-MSFT
Thank you so much for finding the error.
I am able to make it work now and everything looks good now.
Besides this, may I ask whether there is any multiple email sending function block inside Azure Logic App?
Because thus far I only found the function block to send email to a single recipient...
And currently I am using a few of this blocks to send email to different email addresses.
Thank you!
Hi Kamlesh
Many thanks for your prompt response.
I have tried the suggestion you gave but the message body is still empty.
Details as follow:
![214584-logicapp-3.jpg][1]
Added SessionId:
![214565-logicapp-4.jpg][2]
Code view:
![214480-logicapp-5.jpg][3]
Do you mind to share your message body contents when you were trying?
Also, I put None for SessionId inside Service Bus trigger connector.
I am wondering if this is a correct configuration.
![214585-when-message.jpg][4]
Thanks and regards
Yong Sheng
[1]: /answers/storage/attachments/214584-logicapp-3.jpg
[2]: /answers/storage/attachments/214565-logicapp-4.jpg
[3]: /answers/storage/attachments/214480-logicapp-5.jpg
[4]: /answers/storage/attachments/214585-when-message.jpg