Early in my career, someone I knew made a small change directly in a live Salesforce org during business hours. It was a tiny tweak, the kind that feels harmless. It wasn’t. For an afternoon, the team couldn’t save records, and everyone scrambled. That day taught me a lesson I now consider non-negotiable: you do not build in production. Let me show you what to do instead, because the safe path is genuinely not complicated.

Production is where work happens, not where you experiment

Your production org is the live system. Real users log in there, real customers’ data lives there, and real money may depend on it working. Changing it directly while people rely on it is like rewiring a house while the family is home and the power is on. Sometimes it goes fine. When it doesn’t, the consequences are immediate and public.

So we separate two activities that should never share a room: building changes, and running the business. Production runs the business. Somewhere else, you build and test.

The golden rule is simple. Never develop or experiment in production. Build it somewhere safe, prove it works, then move it over deliberately.

What a sandbox is

That “somewhere safe” is a sandbox. A sandbox is a separate copy of your Salesforce org, set aside for development and testing. It looks and behaves like your real org, but nothing you do there touches live data or live users.

There are different sandbox types, and the practical difference for a beginner is how much they copy. Some sandboxes copy only your configuration, the objects, fields, and automation, without any records. Others copy configuration plus a slice or even the full set of your data, so you can test against realistic information. You pick the type based on what you are doing: a quick configuration test needs less, a full integration test needs more.

The point is the same regardless of type. A sandbox gives you a place to break things, fix them, and try again, with zero risk to the people depending on production.

The path a change travels

Healthy teams move changes along a deliberate path rather than leaping straight to production. The common shape looks like this:

Develop. You build the change in a development sandbox. This is where you write the Apex, configure the fields, or build the Flow. It is messy and that is fine, this is your workshop.

Test. You move the change into a testing sandbox, ideally one with realistic data, and you verify it actually works as intended. Other people may test it here too. The goal is to catch problems while they are still cheap to fix.

Production. Only once the change is proven do you deploy it to the live org, usually during a quiet window. By the time it lands here, it should hold no surprises.

This dev-to-test-to-prod path is not bureaucracy, it is the discipline that keeps the afternoon I described earlier from ever happening to you.

How changes actually move

So how does a change physically travel from a sandbox to production? At a beginner level, there are two approaches worth knowing.

Change sets are the point-and-click option built into Salesforce. You select the components you want to move, the fields, the Apex classes, the Flows, bundle them into a change set, and send them from one org to another. They are approachable and require no extra tooling, which makes them a fine starting point for small, simple deployments.

Metadata deployment is the more modern, scalable approach. Your org’s configuration is stored as metadata, essentially files describing your fields, objects, and code. Tools built around this can capture those files, store them in version control, and deploy them in a repeatable, trackable way. This is how larger teams work, and it is worth growing into, but you do not need it on day one.

Start with change sets to understand the concept of moving components between orgs. The deeper tooling makes much more sense once that idea is concrete.

Why testing is not optional

There is one Salesforce rule that surprises newcomers: to deploy Apex to production, your code must be covered by automated tests, with a minimum coverage threshold across the org. This is not Salesforce being difficult. It is Salesforce insisting that you prove your code runs before it touches live users.

That requirement is a gift in disguise. It forces a habit that protects you. As you start writing Apex, you will write tests alongside it, and those tests become the safety net that lets you deploy with confidence. If Apex is still new, Your First Apex Class is the place to begin building that foundation.

Testing matters for clicks-based work too. A validation rule that looks correct can quietly block legitimate records once real users hit it, which is exactly the kind of thing you want to catch in a sandbox, not in production.

Coming from teaching, I think of a sandbox as a rehearsal. You would never let students perform a piece they had never practiced. You rehearse until it is right, and only then do you step on stage. Production is the stage. The sandbox is where you earn the right to be there.

Your next step

Build the coding foundation that deployment depends on with Your First Apex Class, and learn to test your declarative work safely with Validation Rules. For more on building responsibly, explore the Foundations category.

Mustafa Aksu

Salesforce developer & ISV builder focused on Revenue Cloud, Agentforce, and Data Cloud. I write from real, shipped work.