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
Alex Valavanis 10Alex Valavanis 10 

rename opportunity name based on year

Hi,

I've created a flow (custom clone button) in which whenever the end user clicks on a closed won opportunity a new opportunity is created with stage prospecting. For testing reasons i created a formula which names the opportunity "renewal testing". How can i use a formula which will take the year of the closed date and put it in the opportunity name? (in other words rename the opportunity "Renewal 2017" .

User-added image
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Alex, hope it will be helpful.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar