0
votes

I have Azure Logic App that processes messages from Service Bus session-based queue using When one or more messages arrive in a queue (peek-lock) connector.

I have sent 20 messages into Service Bus queue with the same session id.

But it is not reading all messages at once. It is reading one by one.

I have followed these links

https://docs.microsoft.com/en-us/connectors/servicebus/#when-one-or-more-messages-arrive-in-a-queue-(peek-lock)

https://docs.microsoft.com/en-us/connectors/servicebus/#when-a-message-is-received-in-a-queue-(peek-lock)

Can anyone suggest me how to read messages with the session id from session-based queue using Azure Logic App.

1

1 Answers

1
votes

Solution:

Please click ··· in the upper right corner of the When one or more messages arrive in a queue (peek-lock) trigger, then click setting: enter image description here

Turn off Split on:

enter image description here

In this way, messages with the same sessionId can be read at the same time:

enter image description here

Explanation:

Enabling Split On will create a workflow instance for each message.