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
Synthia BeauvaisSynthia Beauvais 

Predefined Field Value

I am creating a Predefined Filed but I am getting Error: Incorrect number of parameters for function 'YEAR()'. Expected 1, received 0

How can I correct the below formula? 

AND(Primary_Sales_Rep__c.Name, YEAR(), "Pipeline Review")

Sankeerth ReddySankeerth Reddy
The Function 'YEAR()' returns the year of a particular date. In your case it is empty. Hence you get the above error.
Refer the link below, it can help you