+ Start a Discussion
Eric BlaxtonEric Blaxton 

How do I add a Summary Rollup field on Account from Custom Object (Invoice)

Goal : Add a Rollup Summary field on the Account that shows the Total of Invoices (Custom field)

I would like to use Apex code if possible.  

Thanks for advice, tips and comments

Regards.
Best Answer chosen by Eric Blaxton
Eric BlaxtonEric Blaxton
I ended up using a 3rd party app for this from App Exchange...called "Rollup Helper"  The free version provides 3 roll-ups.  

All Answers

Nilesh Jagtap (NJ)Nilesh Jagtap (NJ)
Hi Eric,

You need to have master detail relationship between Account and Invoice.
You can create new rollup field as :
Setup>> Customise>> Accounts >> Fields>> New Custom Field>> Roll up summary.

Thanks,
N.J
Eric BlaxtonEric Blaxton
Thanks, but I don't want to create a parent.child relationship. I would rather, have some Apex code that handles it based on Account. Regards, Eric Blaxton
Eric BlaxtonEric Blaxton
I ended up using a 3rd party app for this from App Exchange...called "Rollup Helper"  The free version provides 3 roll-ups.  
This was selected as the best answer