N
Novuβ€’5mo ago
iStun4Fun

Preferences for different roles

What if some of my workflows are targeted for admins and other for clients? I would like to let them only show the preferences the role is designated for
11 Replies
Tomer Barnea
Tomer Barneaβ€’5mo ago
Hey @iStun4Fun we are working on this capability, it should be added in the upcoming weeks, you'd be able set subscriber specific preferences, and hide the rest right now it's date for early-mid September πŸ˜„
iStun4Fun
iStun4FunOPβ€’5mo ago
Perfect! Also i found somewhere in the docs that workflows can be enabled/disabled from pereferences or set them critical, but this doesnt work on the framework right? its only when we create it via api? This particular feature can do what i want?
Pawan Jain
Pawan Jainβ€’5mo ago
I would like to let them only show the preferences the role is designated for
Do you want to show only relevant workflows to each user?
iStun4Fun
iStun4FunOPβ€’5mo ago
YES! That would be optimal, @Pawan Jain
Pawan Jain
Pawan Jainβ€’5mo ago
@iStun4Fun Are you using old notification center or new Inbox?
Tomer Barnea
Tomer Barneaβ€’5mo ago
@iStun4Fun would you be happy to join a call next week or the one after and talk a bit it a bit more? We can also share first DX guides and would love to get your thoughts:-)
iStun4Fun
iStun4FunOPβ€’5mo ago
Sure i will bring my POV gladly πŸ™‚ Can this be done with tenants approach? like tenant-client tenant-professional
Tomer Barnea
Tomer Barneaβ€’5mo ago
Hey @iStun4Fun, let me share a scheduling link soon, what do you mean by the last question? Can you give me an example? Hey @iStun4Fun I am following on a direct message
iStun4Fun
iStun4FunOPβ€’2w ago
I remember we met and discussed about this, but how it turned out?
iStun4Fun
iStun4FunOPβ€’2w ago
Also why novu.preferences.update isnt working on my client? im using Headless Api on: "@novu/js": "^2.6.3", and having this issue, while lists functions perfectly:
TypeError: novuClient.preferences.update is not a function

Source
src\context\NotificationsContext.tsx (217:36) @ update

215 |
216 | try {
> 217 | await novuClient.preferences.update({
| ^
218 | workflowId: workflowId || undefined, // If no workflowId, it updates global preferences
219 | channelPreferences, // This matches Novu's expected format
220 | });
TypeError: novuClient.preferences.update is not a function

Source
src\context\NotificationsContext.tsx (217:36) @ update

215 |
216 | try {
> 217 | await novuClient.preferences.update({
| ^
218 | workflowId: workflowId || undefined, // If no workflowId, it updates global preferences
219 | channelPreferences, // This matches Novu's expected format
220 | });
No description
iStun4Fun
iStun4FunOPβ€’2w ago
added it on linear gh issues: https://github.com/novuhq/novu/issues/7282
GitHub
πŸ› Bug Report: Β· Issue #7282 Β· novuhq/novu
πŸ“œ Description It bugs out when I try to call novu.preferences.update... im using "@novu/js": "^2.6.3", and having this issue, while lists functions perfectly, update is not: Typ...
Want results from more Discord servers?
Add your server