#When we disabled global notification using updateGlobalPreference,

1 messages · Page 1 of 1 (latest)

high shale
#

we will get the reset password email or not ?

#

Also I disabled like below code
await this.novu.subscribers.updateGlobalPreference(subscriberId, {
enabled: enabled,
preferences: [{
type: ChannelTypeEnum.IN_APP,
enabled: enabled
},
{
type: ChannelTypeEnum.EMAIL,
enabled: enabled
},
{
type: ChannelTypeEnum.SMS,
enabled: enabled
},
{
type: ChannelTypeEnum.CHAT,
enabled: enabled
},
{
type: ChannelTypeEnum.PUSH,
enabled: enabled
}]
});

But still got the email eveen i disabled global preference so why is happen ?

#

I'm schecked for this subscribe id : "4632913b-9103-4df4-b2b5-190176ad1a51"

you can check all the preference disabled but when i send email i get the email so why is happen ?

unkempt orchid
#

Hey @high shale great question, we actaully talked about it in the team yesterday. Prefrences are working in a priority based on granularity. In this case it means workflow level config have higher priority than global level config. Would you mind sharing what were you expecting?

high shale
#

@unkempt orchid Actually, when i disabled global config we want disabled sending email for selected subscriber , except some impportant email like reset password etc.

unkempt orchid
#

I'll loop in @idle gyro but I think you should have it on global: off, password-reset: on to make it happen, but I'll let Pawan take that. @idle gyro can you confirm that?

high shale
#

@idle gyro Waiting for your reply

idle gyro
#

@high shale

Can you share transactionId from this trigger?

high shale
#

@idle gyro I have disbaled global notification for this subscriber
"subscriberId": "e7f8ea9a-b0d7-40f7-a668-d079eeabf6d2",

After disabling, I tried to send an email with the traction ID "d71be307-a095-435b-85e3-bec7bf94a702." The email didn't send, but it still appears to have been sent. Why is this happening?

idle gyro
#

@high shale

I am able to reproduce the bug.

Global subscriber preference should be given more priority than workflow preference

halcyon solsticeBOT
idle gyro
#

I have created an internal ticket. I will keep you updated on this

idle gyro
#

@high shale

I just got an update from team, if you change the workflow level preference then worklfow level preference will take precedence than global preference.

high shale
#

Yes, but i have updated global preference like this
await this.novu.subscribers.updateGlobalPreference(subscriberId, {
enabled: enabled,
preferences: [{
type: ChannelTypeEnum.IN_APP,
enabled: enabled
},
{
type: ChannelTypeEnum.EMAIL,
enabled: enabled
},
{
type: ChannelTypeEnum.SMS,
enabled: enabled
},
{
type: ChannelTypeEnum.CHAT,
enabled: enabled
},
{
type: ChannelTypeEnum.PUSH,
enabled: enabled
}]
});

#

if we update global then automatic all workflow will be disabled or enabled but still send email