Can we have two associations to the same entity?

I have three entities: Ticket, comments, File.. Both file and comments are associated to tickets. I have established the association but when I try to retrieve the comments for a particular ticket via association, I get an empty list. May I know whether there is something that I’m missing out on?
1 answers

Hi Sherlin,


You can check the access rules and make sure that the user has at least “Read” access on that association.

Otherwise, it sounds like an issue in the logic, you can follow the logic flow to make sure that the “comments“ objects are created and associated with that particular ticket through the association that you use to retrieve, and if you are retrieving the “comments” in a different session/user you also need to make sure that the objects (ticket and comments) are committed to the database.