I am looking for some help with a chunk of script that would loop thru the contacts associated with a Customer record and check for the value of a certain custom field on the contact record.
What we are trying to do is automate sending order confirmations and possibly invoices to multiple email addresses. The idea is to set up a check box field on the contact record which the script would pick up causing that contact's email address to be added to the "To Be Emailed" field on the transaction. We have a lot of customers who request order confirmations to be sent both to the person who placed the order as well as their superior.
Any help or ideas would be extremely appreciated!
Thanks in advance.