You need to sign in to do that
Don't have an account?
sclose
Trigger Please
Hi.
Looking for help. I have a custom object with a custom field called Project Owner. I have another custom object with a custom field called Company. When company field is updated I want that date to populate in Project Owner field. Any suggestions?
Thanks,
SC
Try this:
It only covers the update condition, but if you were checking for after insert as well, you would just need the if x.Company__c != null case without the nested condition after.
First of all please define relationship between both objects.
I had made the assumption that the two objects were simply directly related (one ot many relationship). Did my solution meet your requirements?
A. Custom object named Project.
Custom field named Project Owner = Agency Name
B. Custom object named MCHN Role
1. Custom field name Company = Agency Name
2. Custom field name Role Type = Owner (Public)
When 1 and 2 match this should populate on the Project object custom field Project Owner