Filter what CMS records a contact can see when logging into membership site

Hello!

So, we’re a bit stuck with development we are doing. We have created an awards nomination system and now it’s time for judging. We have contact recaords in a list of judges (that list that allows access to membership site).

We have those contacts associated with a custom object called ‘Judges’ (judge 1, judge 2 etc). Each of those custom objects is then associated with nomination records (anohter custom object). So we have Contact Record > Judge Record > mulitple nomination records associations.

We are building the CMS page to show nomination records when a judge logs in. We see how to pull the nomination records into the page, but are getting stuck with how to limit which nominations a judge sees based on what they are associated with. Does that make sense?

Hi @BNunan ,

What an amazing use-case. Your question does make sense. I’m assuming you are using the crm_objects function to retrieve the nominations, however, if you use the crm_associations function, you can retrieve the associated records of the logged-in contact. If you use this function, you would first have to retrieve the associated judge record, and based on that ID retrieve the associated nominations.

Another approach is using GraphQL to retrieve the associated records: Accounts Dashboard | HubSpot