Disable Custom Step
I can see in the user preferences that we can disable channels such as "email" and "in_app". Is there a similar functionality for the "custom" step?
6 Replies
Jonathan
No, custom step is not included in preference, however you can store custom step preference value in subscriber data field and use this with skip conditions.
Let me know if you need help
No, custom step is not included in preference, however you can store custom step preference value in subscriber data field and use this with skip conditions.
Let me know if you need help
okay this makes sense, thanks
Additionally, when setting user preferences for a workflow that only has one custom step,
from this json
"preference": {
"channels": {
"email": true,
"sms": true,
"in_app": true,
"chat": true,
"push": true
},
"enabled": true,
},
the outer "enabled" does not seem to have any actual effect. when we do a PATCH request, the preference object does not change
Also, will there be support for the custom step preferences in the future?@Jonathan Licht, you just advanced to level 4!
- Yes, outer enabled does not affect preference. I would recommend to keep it true
- We currently don't have this as a priorit to add support of custom step preference
How do you recomend getting the subscriber data in the novu framework SDK? i cannot find
subscriber.data fieldActually it seems like a TS type omition, the data should be there. Could you try converting with ": any" in ts and log the value? you should see it there. Create a ticket to fix the TS type there
Hi Jonathan
this type issue is now fixed. Please upgrade
this type issue is now fixed. Please upgrade
@novu/framework to latest version 2.8.0