Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I have a list of contacts that are created when I run a search on certain criteria. In list view I have contacts come with email addresses, some without. How do I create a loop script that will go through each record and if they have an email address copy it and put it into a field creating a list of the email addresses in that one field, for example the to field of an email layout.

Thanks!

Posted

I don't think you need to do any of that. The FileMaker send email function has a checkbox "Collect addresses across found set".

Posted

right. but what if I still wanted to select the contacts that have email addresses and set a field to hold a list of all the email addresses separated by commas anyway?

Thanks!

Posted

Set variable [ $emails; ""]

go to record [first]

Loop

Set variable [ $emails; list( $emails; contact::email) ]

go next exit after last

End loop

Set field [ someField; substitute( $emails; ¶; ", ") ]

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