etsmarines Posted May 20, 2010 Posted May 20, 2010 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!
bruceR Posted May 20, 2010 Posted May 20, 2010 I don't think you need to do any of that. The FileMaker send email function has a checkbox "Collect addresses across found set".
etsmarines Posted May 20, 2010 Author Posted May 20, 2010 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!
bruceR Posted May 20, 2010 Posted May 20, 2010 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; ¶; ", ") ]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now