Notification to all

Hello! I want to give my admins the ability to send notifications to everyone on my website, but I don’t know how to set that up. The notifications are in their own separate database that has:

  • Notification Title (Type: Text)
  • Notification Text (Type: Text)
  • Seen (Type: yes/no)
  • and the recipient of the notification, the unique userID (Type: Text)

As of now, I can only send notifications to only one user at a time. Is there any way I could be able to send a notification to everyone?

Hope you guys can help!

Easiest way would be to change the recipent to list of users then run a workflow to deliver to all.

This course by @copilot covers what you need in-depth: Copilot Courses

1 Like

@newhorizoncode If he changes it to a list of users he can’t have independent “Seen yes/no” per user.

Maybe do bulk create of your notification datatype with the Data API and have a database trigger send the notification when the thing is created, or probably better for capacity do some kind of recursive notification create and send per user?

And also switch that user unique id text field to an actual User type?

@tylerboodman, true, in that case I would just remove the Seen field from the DB and when “Seen” just remove current user from the notification list.

If you want to store who it was delivered to for future reference, I would be to add a secondary field that you can move across that user to.

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.