I'm trying to modify the Send Email "CC" field in Posted Sales Invoice page to populate the value of the custom email fields(Email 2 and Email 3) that I have in the Customer Card
![lg2tg10atebw.png](https://us.v-cdn.net/5022383/uploads/editor/lx/lg2tg10atebw.png)
![ibzwpv3jtpy9.png](https://us.v-cdn.net/5022383/uploads/editor/bn/ibzwpv3jtpy9.png)
I have found the following event to subscribe to in order to modify those fields (To, CC, or BCC) but I encountered an issue when they have a value in the "Sell-to Email" field
![3onwojvqyuaa.png](https://us.v-cdn.net/5022383/uploads/editor/g4/3onwojvqyuaa.png)
Any idea how may I connect the
Email Temp Table with the Customer or The Sales Invoice Header tables? Please find my code so far in the screenshot below, but I do not believe those are the right filters for the customer table, and even if they were then how can I connect and link the Email Temp Table to the Posted Sales Invoice table?