I have a group of contacts that are organizations. They are institutional members of the organization I'm working for. That part works fine. We are trying to send a renewal email and the normal way to do this seems to be using the "on behalf of" option on the contribution page. All that works as expected. It fails if I arrive with a CID and checksum that makes me the org, but succeeds if I arrive with a CID and checksum that makes me a related contact. All well and good.
I have created an "Primary contact for" relationship for each org so I don't email every single person related to an organization. It seemed a simple enough solution, but I can't find a way to make a smart group that captures the primary contacts of a group of organizations.
I started with Search Builder as it appeals to my brain. I failed as I can't find relationships exposed anywhere in this tool.
I can use Advanced Search to find individuals who are primary contacts, but not just the primary contacts whose organizations are in a particular group or have a particular membership status.
I have attempted to make use of Jon G's SearchKit suggestion, but am still getting stuck with variations of the relationship problem.
I have replicated what he suggested and do get results that seem initially promising, but there are too many to possibly be just the primary contacts for these orgs (there are only 75 primary contacts in total) and indeed the first entry in the list is not a primary contact for anyone.
I then tried to add a filter at right to limit the results to primary contacts only. The right options seemed to be available, but now the results set is empty.
I would appreciate any further thoughts to augment my admittedly poor grasp of SearchKit.