I have a scenario where one user is responsible for creating and sending internal messages to other users. I would like to programmatically read these internal messages (created via the DHIS2 UI) from this specific user using the API. My goal is to then post these messages to the DataStore so that users who are tracked entities can access and read them.
Is there a recommended way to fetch internal messages from a specific user via the DHIS2 API?
How can I expose these messages and post them to the DataStore for tracked entity users to read?
Are there best practices or existing workflows for this kind of integration?
I have multiple users in the system, but I want to focus on messages from one particular user who will be responsible for communication.
It would be interesting to know more about the use-case as well as more details. Why are these messages necessary? Is there maybe another way to approach this? When you say “tracked entity users”, do you mean the data entry user who is enrolling TEIs?
I hope the suggestions above help for a start, however, it would be great if you could continue the discussion by sharing more details about the use case. Thanks!!
Hi @Gassim and thanks for this; I decided to go ahead by creating/ using another dhis2 instance to specifically broadcast message notifications as opposed to the earlier enquiry I had was not so safe to secure the platform data.