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
Pawan Jain
Pawan Jain4w ago
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
Jonathan Licht
Jonathan LichtOP4w ago
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?
Novu_Bot
Novu_Bot4w ago
@Jonathan Licht, you just advanced to level 4!
Pawan Jain
Pawan Jain4w ago
- 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
Jonathan Licht
Jonathan LichtOP4w ago
How do you recomend getting the subscriber data in the novu framework SDK? i cannot find subscriber.data field
Pawan Jain
Pawan Jain2w ago
Actually 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 @novu/framework to latest version 2.8.0

Did you find this page helpful?