Filtering feed using templateIdentifier
I am using https://docs.novu.co/cookbook/introduction#fetch-subscriber-feed in my App.
Is it possible to filter the notifications using
templateIdentifier
which can be found in the response data ?
It is similar to the Workflow filter in the Activity feed, but with the template slug instead of the ID11 Replies
Here is the parameter i am talking about.
Is it possible to use something that would look like this :
Yes if you send templateIdentifier also in payload
Ok thanks @Pawan Jain
Hi @Pawan Jain here is an update. I had this error which i could locate in the code :
Here is where it sends me in the lib code :
To be complete, this is my code :
novu.subscribers.getNotificationsFeed(currentUserID, {
page,
limit,
read,
payload: {
templateIdentifier: "dislike-post"
}
})
@Lionel M, you just advanced to level 1!
I may use this the wrong, should i use
feedIdentifier
in my payload ?@Paweł T. Do you have any idea about this
Buffer
issue?
No, feedIdentifier is differenthi @Lionel M 👋 it looks like you are trying to use the
@novu/node
library inside the browser environment...
if you would like to build the custom notification center experience you need to use @novu/notification-center
package