concatenate multiple contact emails into a single account field

Hello!

We added a custom checkbox field ("Billing Contact") to our CONTACTS module. If there are 10 CONTACTS belonging to a single ACCOUNT, any of the CONTACTS could have the "Billing Contact" checked.  That means when we send a billing notice to that ACCOUNT each of the billing contacts should get a copy of the invoice.

Sugar is integrated with our billing system (QB), which sends out the billing invoices. 

We'd like to create a non-display field on the ACCOUNT called "Billing emails" and then concatenate all of the CONTACTS email addresses together for CONTACTS who are checked as "Billing Contacts."  So our non-display field would contain:  "email1@email.com;email2@email.com...".  We would then map this non-display field to our QB interface and QB would send the invoice to everyone.

I recently learned how to use the rollup functions (thanks to people in this forum) which loops through all related records to do math things.  I was hoping there was similar functionality that would let me loop through all of the CONTACTS that are "Billing Contacts" and concatenate their email addresses together to suit our purposes.  But nothing jumps out to me in any of the forums, documentation, or Google searches.

If anyone can suggest an approach to this that I'm not seeing, I would really appreciate it.

Thank you!

Bob

Parents
  • Hi BobUnfortunately, you can't use formulas to solve this task because calculated fields will be updated only after account saving. If you change and save a related contact, this change will not be reflected on an account level until this account won't be saved. 

    You can automate such routine with programming, as Andre has suggested, or with Logic Builder

    Logic Builder doesn't require knowledge of programming or SQL and was designed for CRM consultants, business analysts, and admins to automate Sugar by a trigger, by schedule, or inside a SugarBPM workflow:
    - automate calculations of any complexity
    - set up intelligent data sharing & update
    - provide smart data validation & input control
    - compose CRM data into informative and easy-to-read text for emails, messages, or notes
    - ensure flexible data exchange by REST API and not only
    - embed the ready-to-use power of Amazon Web Services into your CRM

    Like programming, you will have a safe-upgrade Sugar extension compatible with on-site and cloud Sugar, and you can change and manage this extension as you wish.

    Let me know if you need more info on how to configure data processing for integration purposes. 

    Regards,
    Mykola

    Integroscrm.com
    We make work in Sugar
    more convenient and efficient

Reply
  • Hi BobUnfortunately, you can't use formulas to solve this task because calculated fields will be updated only after account saving. If you change and save a related contact, this change will not be reflected on an account level until this account won't be saved. 

    You can automate such routine with programming, as Andre has suggested, or with Logic Builder

    Logic Builder doesn't require knowledge of programming or SQL and was designed for CRM consultants, business analysts, and admins to automate Sugar by a trigger, by schedule, or inside a SugarBPM workflow:
    - automate calculations of any complexity
    - set up intelligent data sharing & update
    - provide smart data validation & input control
    - compose CRM data into informative and easy-to-read text for emails, messages, or notes
    - ensure flexible data exchange by REST API and not only
    - embed the ready-to-use power of Amazon Web Services into your CRM

    Like programming, you will have a safe-upgrade Sugar extension compatible with on-site and cloud Sugar, and you can change and manage this extension as you wish.

    Let me know if you need more info on how to configure data processing for integration purposes. 

    Regards,
    Mykola

    Integroscrm.com
    We make work in Sugar
    more convenient and efficient

Children