Reputation: 1
I am trying to trigger a function app via two separate serviceBusTrigger's(from two different Topics) through the service bus. I tried to add 2 bindings to the function.json with type=serviceBusTrigger but this did not work. Any Idea how this can be achieved?
Upvotes: 0
Views: 44
Reputation: 2351
Triggers are what cause a function to run. A trigger defines how a function is invoked and a function must have exactly one trigger. Triggers have associated data, which is often provided as the payload of the function.
You need to create two separate functions with each having its own trigger. If they share common logic then create common function to call it right from both functions.
Upvotes: 2