Home:ALL Converter>Azure service bus subscription action - set subscription name as custom properties

Azure service bus subscription action - set subscription name as custom properties

Ask Time:2021-09-20T18:35:34         Author:surzyn

Json Formatter

I need to add custom property for message that is autoforwarded from subscription. Value for new property should be subscription name. I have found that I can use subscription rule for adding new properties to message and I'm able to add some hardcoded value there but I can't find how to get subscription name.

Here is example how I'm setting new property with hardcoded value in rule:

SET user.originQueue = 'test'

I was looking here Subscription Rule SQL Action Syntax but I don't see how I can get the subscription name

Also is a way for preview subscription rule in azure portal? I can see only filters in portal. For now I'm using command line for verifying the rules.

Author:surzyn,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/69252998/azure-service-bus-subscription-action-set-subscription-name-as-custom-properti
yy