Azure Service Bus Topic Subscription - Filter on JSON-encoded message body property
Asked Answered
A

1

8

If the body of a BrokeredMessage is JSON text, is it possible to setup a Topic Subscription with a filter on properties within that JSON?

Arbitration answered 13/1, 2016 at 22:6 Comment(0)
G
5

You could promote those properties with their value into custom properties and use a SqlFilter with user scoping.

Gondar answered 14/1, 2016 at 1:14 Comment(4)
6 years 10 months to Accept πŸ€πŸ˜… – Arbitration
Eventual consistency πŸ™‚ – Gondar
how is this done? tearing my hair out :( – Interlace
What's "this"? Promotion or filtering? Filtering is documented. See the link above. Promotion is just taking a value from the body/payload and attaching it to the message properties (headers) upon sending. – Gondar

© 2022 - 2024 β€” McMap. All rights reserved.