+ Start a Discussion
Mohan sharmaMohan sharma 

When save apex class problem appear like update api version for class.

In my assignment related to salesforce i got one problem that is when i save and execute code in developer console it is running fine but when i write same code inside ape class then i am getting problem like update api version so how to solve this problem.
Best Answer chosen by Mohan sharma
Deepak Kumar ShyoranDeepak Kumar Shyoran
For that you need to  update the version of your Apex classes. You can either update it by loging into your Account let say Go to Setup > Develop > APex Classes > Select a class and then click on version and update it to the latest release like 31 or 32. Or you can do the same with the help of Eclipse Ide by clicking opening that class and then click on Metadata at left bottom side and change version to 31 or 32.