Set feed dynamically using trigger override

We are a multi tenant app where a user can be a part of many orgs using the same user id. We have all of our users added as subscribers and we have notifications flowing from our API to Novu. When we pull the notifications for a particular subscriber we’d like to separate them based on feed id. We know we can do this by assigning a feed to the In App node in the template workflow, but we don’t want to have to create a separate feed manually for each of our orgs.

It looks like we can create feeds using the API so I’m wondering if there is a way to override the feed the In App node uses in the workflow template using the trigger override so we can set it dynamically based on the users current org?

Our goal is to create a feed for each org using the org id for the feed name. When the notification is triggered we’ll look up the correct feed using the current user’s selected org and set it using the override property of the payload.

If this isn’t possible, would a PR that allows for this be considered?
Was this page helpful?