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
anil Kumaranil Kumar 

apex calss in production

Hi,

Can we edit apex calss in production? if i want to make changes to apex calss after deployment what is the process?

Thanks,
Regards,
Anil Kumar
SarfarajSarfaraj
Hi Anil,

No you cannot edit apex class in production. You have to do all necessary changes in your sandbox and after that you have to migrate the modified class alongwith necessary test classes using changeset or any other migration tools.

--Akram
anil Kumaranil Kumar
Hi Akram,

Thanks for the responce. After making necessary changes to class, if i deploy it again will it override existing class in production?

Anil
SarfarajSarfaraj
Yes it will overwrite the existing class in production.
Arthur ImirzianArthur Imirzian
Hi Anil,
Here is the Development Lifecycle Guide you need:
https://resources.docs.salesforce.com/sfdc/pdf/salesforce_development_lifecycle.pdf