N
Novu2w ago
Vizzlou

Custom workflow step preference

I've created a custom expo push step for my workflow due to that i need the expo push ticket that is returned. How can i make it so it is recognised as a push preference?
3 Replies
Pawan Jain
Pawan Jain2w ago
@Vizzlou Are you using @novu/framework custom step for this? You can use subscriber custom data with skip feature
// here isAllowedCustomPushStep is custom data property of type boolean and can be updated using update subscriber api https://docs.novu.co/api-reference/subscribers/update-subscriber

skip: () => !subscriber.data.isAllowedCustomPushStep,
// here isAllowedCustomPushStep is custom data property of type boolean and can be updated using update subscriber api https://docs.novu.co/api-reference/subscribers/update-subscriber

skip: () => !subscriber.data.isAllowedCustomPushStep,
No description
Pawan Jain
Pawan Jain2w ago
@Vizzlou What do you think of above flow? Will it work for your use case?
Vizzlou
VizzlouOP2w ago
It will help, however the best would be if the step.push would return the expo tickets I’m after. So I might make a feature request next week
Want results from more Discord servers?
Add your server