How to Set and Get Custom Properties of a Service Bus Message in Logic App

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Tech Community.

In send message action, we can add a JSON object with key value pairs as "Properties", and we can also set "System properties" to "Run Details".

 

xgan_0-1628883040002.png

 

Once the logic app run finishes, we can use the Service Bus Explorer tool on the service bus portal to download the message and see its properties:

 

xgan_0-1628882821871.png

x-ms-client-tracking-id is the "System properties" we set in the logic app send message action, and it is actually the run id of the logic app which has created this message. 

 

If we do not use the Service Bus Explorer to download the message, instead we use a service bus trigger to retrieve the message back to logic app, we will get these same properties back.

 

xgan_1-1628884354118.png

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.