Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Pulling information from a many-many relationship


This topic is 7156 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a many to many relationship of contacts and companies. A company can have several contacts and contacts can be associated with multiple companies.

Each contact has a contact type for each company it is associated with. It can be any number of types from the list, but each company can only have one primary contact. This data is stored in a field in the Join table.

I want to have a field in the company table that identifies who the primary contact is. I've tried using the calculation:

If ( PatternCount ( Company::Primary; "Primary" ); Contact::Full Name)

but it only pulls the name sometimes. I think it only pulls the name if it's the first person that was associated with the company.

How can I get it to pull the right name?

Thanks.

Posted

I want to have a field in the company table that identifies who the primary contact is.

This field should be the ID of the Contact. Then use another TO of Contact linked to Company by this ID field, to show the name.

This topic is 7156 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.