novuhq / novu

Open-Source Notification Platform. Embeddable Notification Center, E-mail, Push and Slack Integrations.
https://novu.co
Other
34.47k stars 3.51k forks source link

[NV-2616] 🚀 Feature: Bulk import subscribers through CSV #3565

Open bolanos-nava opened 1 year ago

bolanos-nava commented 1 year ago

🔖 Feature description

It would be very helpful to have an option to import users you already have in your database to Novu by means of a CSV file. The current solution is to iterate through your users and do a create_subscriber method for each one of them. This could have potential issues, for example, one of the users failing and being left without subscription in Novu.

🎤 Why is this feature needed ?

In my case, I need to add my already existing users to Novu, so they get an email subscription. Afterwards, when each one of them logs onto the app, they would accept push notifications through OneSignal.

I can't go for the alternative of creating a subscriber on the fly when triggering the notification, I need them to already exist in Novu to associate them to the OneSignal player when it is created.

✌️ How do you aim to achieve this?

A CSV with the information of the subscribers would be uploaded, with the same fields that you input when creating a subscriber through the API. It would be good as well if the CSV supported the capability of adding custom data as well.

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

NV-2616

scopsy commented 1 year ago

@bolanos-nava thank you for the suggestion! Will add this to our roadmap, we would need to think where would be the best place for this import to leave and have a design for the importing experience 🙏