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

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

Recommended Posts

Posted

Hi all,

 

I have an email template table where users of my solution can create data driven email templates which used to pull data simply from the same table.

 

My problem now is that the data is in a separate table and there are multiple records to pull data from as merge fields.

 

I'm pulling data from a contacts table where a few of the related contacts are flagged as 'primary' contacts.

 

I want to pull in merge variables but get filemaker to identify the primary contact records and pull data from those only, or from the first primary contact in the sort order.

 

Attached is a screenshot of my merge variable calc using the substitute function to replace the merge text...

 

At the moment this just pulls in the first or second contact's first and last name field, i need it to look at the related contacts and pull in data from primary contacts only

 

Does anyone have any idea how you could best do this?

 

post-102321-0-87848600-1397747426_thumb.

Posted

Usually I insert the ContactID of the primary contact right within your Company (?) table.  

 

Then if you have a Contacts value list, based upon ContactID and showing second field of the concatenated full name, and use pop-up menu, you can place it anywhere and have the name show without requiring relationships throughout.  But for merge field, either then pull the value through your relationship (we would need to see your graph and know the table occurrence name of the layout you are on) or create a calculation in your Company (?) table to hold its primary contact name.   

 

Passing values through the relationship is preferred over adding another calculation but we need to understand your structure here before recommending further.  :-)

Posted

Hello LaRetta, thanks for your response!

 

The contacts table is linked to the email correspondence table through a join table to my Events table, then the email table (where this merge variable 'substitute' function lives).

 

There's no direct relationship between Contacts and Email, so i can see the related Contacts from email but not sure how best to to make this work.

 

If you could explain in simpler terms I'd appreciate!... how should i insert the Contact ID of the primary contact right in my Events table?

 

thankyou for your help. :)


Would creating a direct relationship between contacts and a new instance of the email table make things easier to filter using the relationship?

Posted

 

The contacts table is linked to the email correspondence table through a join table to my Events table, then the email table (where this merge variable 'substitute' function lives).

 

Would creating a direct relationship between contacts and a new instance of the email table make things easier to filter using the relationship?

 

I don't know because I still do not know how you are related.  Please attach screen shot of your graph showing the connections for this piece or better, create a simple file showing just the pieces being discussed.

This topic is 3930 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.