function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
S_BatmanS_Batman 

Auto-populating custom field with part of the email;

Good Day!

Is there a way to take the '@company.com' portion of the email from the contact level and auto fill it to a custom field in the account level?
Mathew Andresen 5Mathew Andresen 5
The problem is that you are going from a parent (or one) to a child (or many).  So if there are multiple contacts, which one does it pull over?  You could setup a trigger to do this but you would have to put in some logic to deal with the different contacts.

I don't believe you can do this declaratively.

 
S_BatmanS_Batman
Thank you, I'll give it a shot and see what I can come up with.