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
yeshwanth kumar 13yeshwanth kumar 13 

how to add the datefield on account object based on opportunity closed won deal closedate?

ANUTEJANUTEJ (Salesforce Developers) 
Hi Yashwanth,

If I understand the question correct if the scenario is to show the field on detail page conditionally, then you can try checking the below links regarding the same:

>> https://trailblazer.salesforce.com/ideaView?id=08730000000BroxAAC

>> https://trailblazers.salesforce.com/answers?id=9063A000000pYEyQAM

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
Fb Status in hindiFb Status in hindi
My solution to this issue is overwriting the close date when the opportunity is first created with a workflow rule and formula. When a new record is created I add X number of days to the close date based on the creation date, not whatever close date the user puts in.
This works because the sales process is much shorter than the amount of time that I add with the formula.
When an opportunity is closed won or closed lost, the closed date is set to the day the stage was changed.
If your business needs to do accurate forecasting, this solution may not work for you
GET MORE:
LINK 1- (#)
LINK 2- (https://cutt.ly/VhCmCPh)
LINK 3- (https://bit.ly/3p5HFl6)

User-added image


User-added image

User-added image