Probably something very obvious , that I can’t see. Thanks in advance.
I created a back and forth message system. Most of it is working.
Here is my issue. I set up the data. “Sending user” - “Receiving user”.
Which is great and works, but what I need to do is add departments for people outside so instead of picking a user, they choose a dept. So I created a Dept (OS) which includes for example “Sales”, “Customer Service” etc.
Then added Depts (OS) to users and choose the people that should receive the messages. I.E. Bob, I added to the Sales in the Option Set.
So in testing I would send something to sales, but the messages would not appear in bobs new messages.
I can see them created in the data just like the other messages just receiving user is blank, so they are not showing up.
If I add bobs email in the database, the message shows up…
I am confused on what to do. How can I tie one dept to a bunch of users, I did add bob to the “sales” in the Dept (OS)
I am sure there are many ways to do this. One way I have seen is that instead of a ‘sending user’ and a ‘receiving user’. They would just do a list of users. Then when you try to send to a whole department you can do a search for all users that are in that department and add them to that list.
Does that make sense? Do you think that might work for your situation? Let me know.
Hmm. I guess I don’t see the issue because I can’t see your app. It is really deepening on how you are displaying it to your clients. Maybe just have a conditional that says when they choose a department only show them the department name instead of there people in the list?