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
Jordan HunterJordan Hunter 

Opportunity Product and Opportunity Date Link

Ive got an issue where my team arent updating the CLose Date on the main opportunity. 

 

We need the close date to match the latest close date for an opportunity product attached to the opportunity but i cant for the life of me figure out how to go about this. 

Would anyone have any ideas?

SwethaSwetha (Salesforce Developers) 
HI Jordan,
Is latest close date a custom field on opportunitylineitem? This should be possible with a trigger

Related:
https://salesforce.stackexchange.com/questions/344847/update-custom-field-on-opportunity-with-the-opportunity-line-items
https://developer.salesforce.com/forums/?id=9062I000000IFibQAG