You need to sign in to do that
Don't have an account?
Z man0
Max Date Display on Standard Object
Hi Everyone:
I have 2 objects:
Object 1: Standard Object [Contact]
Object 2: Custom Object [Apple]
Relationship: Look up relationship.
Apple records can be found under contact related list.
Is it possible to display the latest created date from the related list on the conact custom field "latest date"
I have 2 objects:
Object 1: Standard Object [Contact]
Object 2: Custom Object [Apple]
Relationship: Look up relationship.
Apple records can be found under contact related list.
Is it possible to display the latest created date from the related list on the conact custom field "latest date"
Try this trigger on Apple__c:
All Answers
If I understand it correctly, Contact has look up to Apple ?
Then,
A (before insert/) After Insert trigger on Apple__c to update
the Latest_Date__c on Contact using CreatedDate from would be more appropriate I believe.
Apple has a look up field to Contact.
Try this trigger on Apple__c:
How do I update the code if need the following requirement:
A bunch of apple records are associated with a single contact. How will I update the code to display the Max of created date of apple records instead of latest created date?
Example :
Contact A
Apple1 Created Date 05/02/2016 Custom Date 05/01/2016
Apple2 Created Date 05/03/2016 Custom Date 05/14/2016
Apple3 Created Date 05/05/2016 Custom Date 05/10/2016
I need 05/14/2016 to be displayed on the Latest date