Set Up the Function Trigger

If you noticed, we didn’t even set up anything to trigger the function! We finished and tested it, but when normal salespeople are doing their thing in the system, nothing is going to happen.

So, the question is: how would you, according to what you know about the sales process and what we need this function for, set up the trigger for this function? Describe this below and then go do it in your own CRM!

BONUS question: do you have any ideas for how to allow for dynamic selection of invoice items? In this case, it’s just a financial planning service and we hard-coded in the ID of the item. But, what if you sell multiple products or services? How could you account for that in your function?

You finished!