vivek
vivek

Reputation: 5

How to read azure service queue message in Logic apps?

I am trying to create small Azure Logic app which will have some order flows.I will get the message in service bus queue. I need to get the message in logic app and based upon the message content, I need to follow the further steps. The message will contain the order data as well. There will be conditional logic, let's suppose, if order type is "new", I need to call HTTP request where I need to pass the message data as body content in POST request.

I have create a service bus queue and in logic apps, added service bus trigger which will be called when message will be received in service bus queue(automatically).

I need to able to implement conditional logic but as i am newbie in this, i am not sure how to pass this data in condtional logic from message.

Upvotes: 0

Views: 3034

Answers (1)

SwethaKandikonda
SwethaKandikonda

Reputation: 8252

You just need to mention the condition in the block and design the flow that we require. If the condition is true I have added the HTTP action mentioning the required details. For understanding purpose I have mentioned the other condition to trigger an email.

Here the flow of my logic app enter image description here

If you want to continue the flow just click Add an action in True Connector.

REFERENCES: Get started with Azure Service Bus queues (Azure.Messaging.ServiceBus) - Azure Service Bus | Microsoft Docs

Upvotes: 1

Related Questions