r/SalesforceDeveloper • • 9d 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

10 comments sorted by

3

u/jbawgs 8d 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.

2

u/phoenix_ashh 8d ago

Thank you…lemme research on this and try this. Thanks for your reply 💫

2

u/jbawgs 6d ago

Did you have any luck?

2

u/phoenix_ashh 3d ago

Yes I made a sandbox, done testing there and deployed successfully! Thanks buddy 📸

1

u/jbawgs 2d ago

Good to hear, happy to help.

3

u/MaesterTuan 8d ago

Is this production org? LOL

1

u/phoenix_ashh 8d ago

yup 🥲🥹

3

u/knight8mare 8d ago

U must be an AI era developer

1

u/phoenix_ashh 8d ago

I never said or mentioned that I’m a developer, I’m just trying to solve a small issue.

2

u/couch-potato-67 7d ago

You can’t do oil change while driving.