+ Start a Discussion
Priya AakankshaPriya Aakanksha 

Field is not writeable: Opportunity.IsWon

error is showing in batch class
1)Method does not exist or incorrect signature: void day() from the type User
2)Field is not writeable: Opportunity.IsWon 
if(Opp.LastModifiedBy.day() > system.today()+30){
              opp.ISWON ='false';
Priya AakankshaPriya Aakanksha
lastmodifiedby is lookup to userand its a standard field
ISWON is hidden field i got that field name after extract the data.