Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Pulling information from a many-many relationship

Featured Replies

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.

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.

See also here.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.