0

Edit: rewriting question as I learned a lot more

Basically I want a function with a topic subscription trigger, that will then output to a queue, but the queue name is determined by the inbound message header. Pseudocode:

<-- @ServiceBusTopicTrigger(message)
outboundqueueName = getQueueName(message.getProperty('x'))
--> @ServiceBusQueueOutput(outboundQueueName)

So it seems I can create a function with topic trigger and configure an input from a cosmos DB for example and output to a queue.

But this will only work for a specific queue, how can I choose which queue to send to?

(Java coding)

TIA

1
  • 1
    please provide some code or more information? Commented Oct 25, 2019 at 16:07

1 Answer 1

1

If there isn't much else you need to do with the message except drop something on to dynamically determined queue, why not use a Logic App?


enter image description here


That screenshot's just a concept demo. There's a great example of parsing JSON and selecting properties etc. documented here:

https://blogs.biztalk360.com/azure-logic-apps-event-hubs/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.