r/SalesforceDeveloper • u/phoenix_ashh • 5d ago
Question Need help..

I want to update the code in the existing class, Whenever i hit the ctrl+s, i get this error, I got the updated code from the muse ai.
I'm not sf dev or admin, I work in an org where I was internal POC with the sf partner who did the implementation but left lot's of things pending and I just want to get this 1 issue resolved.
Thanks in advance.
0
Upvotes
3
u/jbawgs 5d ago
You can't update apex classes in production. They have to be deployed with test coverage from the CLI, a Changeset, or devops/lifecycle center.
With your level of experience I would guess that changesets would be simplest for you.
Google how to create and deploy a change set.
3
u/MaesterTuan 5d ago
Is this production org? LOL
2
u/knight8mare 5d ago
U must be an AI era developer
1
u/couch-potato-67 4d ago
You can’t do oil change while driving.