<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title><![CDATA[Salesforce DevOps Guides]]></title>
        <description><![CDATA[Salesforce DevOps guides, playbooks, tutorials, and comparisons from the Serpent team. Everything you need to run modern Salesforce releases.]]></description>
        <link>https://serpent.cloud</link>
        <image>
            <url>https://serpent.cloud/content-assets/shared/brand/serpent-logo.png</url>
            <title>Salesforce DevOps Guides</title>
            <link>https://serpent.cloud</link>
        </image>
        <generator>RSS for Node</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:55:37 GMT</lastBuildDate>
        <atom:link href="https://serpent.cloud/resources/rss.xml" rel="self" type="application/rss+xml"/>
        <pubDate>Mon, 23 Nov 2026 09:55:37 GMT</pubDate>
        <copyright><![CDATA[© 2026 Tekunda L.L.C-FZ all rights reserved]]></copyright>
        <item>
            <title><![CDATA[sf package version create: Salesforce Package Versions Guide]]></title>
            <description><![CDATA[How to run sf package version create: prerequisites, the flags that matter, why versions fail to promote, and how to run it cleanly in CI.]]></description>
            <link>https://serpent.cloud/resources/sf-package-version-create%3A-Salesforce-Package-Versions-Guide</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/sf-package-version-create%3A-Salesforce-Package-Versions-Guide</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;code&gt;sf package version create&lt;/code&gt; builds a new, installable version of an
  unlocked or second-generation managed package in your Dev Hub from the metadata in
  your project. Run it with &lt;code&gt;--code-coverage&lt;/code&gt; and without
  &lt;code&gt;--skip-validation&lt;/code&gt; if you ever want to promote that version, or it stays a
  beta that can never reach production.
&lt;/p&gt;
&lt;h2&gt;What does sf package version create do?&lt;/h2&gt;
&lt;p&gt;
  The command takes the package contents in a directory, or a package alias or 0Ho ID,
  and creates a package version in the Dev Hub, as the
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_package_version_create.html&quot;
    &gt;Salesforce CLI reference&lt;/a
  &gt;
  describes. Each version gets a unique subscriber package version ID that starts with
  04t. When the command finishes inside its wait time, the CLI writes a new alias such
  as &lt;code&gt;MyPkg@1.0.0-1&lt;/code&gt; into the &lt;code&gt;packageAliases&lt;/code&gt; section of
  &lt;code&gt;sfdx-project.json&lt;/code&gt;.
&lt;/p&gt;
&lt;p&gt;
  New versions start in beta. Beta versions install in scratch orgs and sandboxes but
  not in production, while promoted, released versions install in any org, as the
  &lt;a
    href=&quot;https://trailhead.salesforce.com/en/modules/unlocked-packages-for-customers/units/build-your-first-unlocked-package&quot;
    &gt;Trailhead unlocked package unit&lt;/a
  &gt;
  shows.
&lt;/p&gt;
&lt;h2&gt;What do you need before you run it?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;A Dev Hub org&lt;/strong&gt;, set as your default or passed with
    &lt;code&gt;--target-dev-hub&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;A package&lt;/strong&gt;, created once with &lt;code&gt;sf package create&lt;/code&gt; and
    mapped to its 0Ho ID in &lt;code&gt;packageAliases&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;A package directory entry&lt;/strong&gt; with &lt;code&gt;versionName&lt;/code&gt; and
    &lt;code&gt;versionNumber&lt;/code&gt;. Using the &lt;code&gt;NEXT&lt;/code&gt; keyword, as in
    &lt;code&gt;1.0.0.NEXT&lt;/code&gt;, lets the build number increment for you.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Still choosing a package type?
  &lt;a href=&quot;/resources/The-Secrets-of-Salesforce-Second-Generation-Managed-Package&quot;
    &gt;The secrets of second-generation managed packages&lt;/a
  &gt;
  covers the trade-offs, and if you inherited an old one,
  &lt;a href=&quot;/resources/Unmanaged-Package-in-Salesforce%3A-What-It-Is-and-How-to-Move-Off&quot;
    &gt;unmanaged packages and how to move off them&lt;/a
  &gt;
  explains the exit.
&lt;/p&gt;
&lt;h2&gt;How do you create a package version step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Set the version.&lt;/strong&gt; In &lt;code&gt;sfdx-project.json&lt;/code&gt;, set
    &lt;code&gt;versionNumber&lt;/code&gt; to something like &lt;code&gt;1.2.0.NEXT&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Create the version.&lt;/strong&gt; Run
    &lt;code
      &gt;sf package version create --package MyPkg --installation-key-bypass
      --code-coverage --wait 30&lt;/code
    &gt;. You must pass either &lt;code&gt;--installation-key&lt;/code&gt; or
    &lt;code&gt;--installation-key-bypass&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Check the request.&lt;/strong&gt; If the wait runs out, run
    &lt;code&gt;sf package version create report --package-create-request-id 08c...&lt;/code&gt; for
    the status, any errors and the 04t ID.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Test the beta.&lt;/strong&gt; Install it in a scratch org or sandbox with
    &lt;code
      &gt;sf package install --package MyPkg@1.2.0-1 --target-org MyScratchOrg --wait
      10&lt;/code
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Promote.&lt;/strong&gt; When it passes, run
    &lt;code&gt;sf package version promote --package MyPkg@1.2.0-1&lt;/code&gt;. Promotion cannot be
    undone.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Which sf package version create flags matter most?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;code&gt;--code-coverage&lt;/code&gt;: runs the packaged Apex tests and stores coverage. You
    need it to promote, and promotion requires at least 75 percent.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;--skip-validation&lt;/code&gt;: skips dependency, ancestor and metadata checks for
    speed. Versions built this way cannot be promoted, and the flag cannot be combined
    with &lt;code&gt;--code-coverage&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;--async-validation&lt;/code&gt;: returns the version before validation finishes, so
    testing can start sooner in CI.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;--definition-file&lt;/code&gt;: a scratch-org-style file listing the features and
    org settings your metadata depends on.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;--version-number&lt;/code&gt; and &lt;code&gt;--version-name&lt;/code&gt;: override
    &lt;code&gt;sfdx-project.json&lt;/code&gt; for a single run.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;--branch&lt;/code&gt; and &lt;code&gt;--tag&lt;/code&gt;: record the source branch and a tag on
    the version.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;--post-install-script&lt;/code&gt; and &lt;code&gt;--uninstall-script&lt;/code&gt;: Apex classes
    that run after install, upgrade or uninstall, for managed packages only.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Why can&apos;t I promote my package version?&lt;/h2&gt;
&lt;p&gt;Three causes account for most failed promotions:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;It was built with &lt;code&gt;--skip-validation&lt;/code&gt;.&lt;/strong&gt; Rebuild without
    it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Coverage is missing or under 75 percent.&lt;/strong&gt; Add tests and rebuild with
    &lt;code&gt;--code-coverage&lt;/code&gt;. Coverage is not calculated for org-dependent unlocked
    packages.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The number is already released.&lt;/strong&gt; Only one version can be promoted
    per major.minor.patch, so bump the number and build again.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How do you run sf package version create in CI?&lt;/h2&gt;
&lt;p&gt;
  Split it into two lanes. On feature branches, &lt;code&gt;--skip-validation&lt;/code&gt; or
  &lt;code&gt;--async-validation&lt;/code&gt; keeps the loop short. On the release branch, build
  with &lt;code&gt;--code-coverage&lt;/code&gt; and full validation, so the artifact you test is the
  one you can promote. Track your Dev Hub&apos;s daily allowance with
  &lt;code&gt;sf limits api display&lt;/code&gt; and its &lt;code&gt;PackageVersionCreates&lt;/code&gt; entry,
  because a build on every commit uses it up fast.
&lt;/p&gt;
&lt;p&gt;
  A beta install is only as useful as the data in the org it lands in. Serpent seeds
  sample or masked data as part of environment setup and release pipelines, so scratch
  orgs and refreshed sandboxes come back populated without a manual script, and
  deploying data is on every plan, including the free Essentials plan. See
  &lt;a href=&quot;/pricing&quot;&gt;Serpent pricing&lt;/a&gt; for what each plan includes.
&lt;/p&gt;
&lt;p&gt;
  Once a version is promoted,
  &lt;a
    href=&quot;/resources/The-AppExchange-Release-Workflow%3A-From-Package-Version-to-Subscriber-Upgrade&quot;
    &gt;the AppExchange release workflow&lt;/a
  &gt;
  takes it to subscriber upgrades. If your team still ships with change sets, start with
  &lt;a href=&quot;/resources/From-Change-Sets-to-Continuous-Delivery%3A-SF-DevOps-Playbook&quot;
    &gt;the change sets to continuous delivery playbook&lt;/a
  &gt;
  first.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;
  &lt;strong
    &gt;What is the difference between sf package create and sf package version
    create?&lt;/strong
  &gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;sf package create&lt;/code&gt; registers the package once, with its name and type.
  &lt;code&gt;sf package version create&lt;/code&gt; builds each installable version of it.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I install a beta package version in production?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Beta versions install in scratch orgs and sandboxes. Promote the version to
  released before installing it in production.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do unlocked packages need 75 percent code coverage?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  To promote, yes. You can build a beta without coverage, but it can never be released.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What if sf package version create times out?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The request keeps running in the Dev Hub. Check it with
  &lt;code&gt;sf package version create report&lt;/code&gt; and the 08c request ID.
&lt;/p&gt;
&lt;p&gt;More packaging and CI/CD how-tos live in our &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Unmanaged Package in Salesforce: What It Is and How to Move Off]]></title>
            <description><![CDATA[What an unmanaged package in Salesforce is, how to create and install one, its limits, and how to migrate it to an unlocked package.]]></description>
            <link>https://serpent.cloud/resources/Unmanaged-Package-in-Salesforce%3A-What-It-Is-and-How-to-Move-Off</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Unmanaged-Package-in-Salesforce%3A-What-It-Is-and-How-to-Move-Off</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; An unmanaged package in Salesforce is a first-generation
  bundle of metadata that you install once and then own completely: every component
  becomes editable in the target org, there is no namespace, no IP protection and no
  upgrade path. It is the right tool for templates, sample apps and one-time transfers.
  For anything you plan to maintain, move it to an unlocked package.
&lt;/p&gt;
&lt;h2&gt;What is an unmanaged package in Salesforce?&lt;/h2&gt;
&lt;p&gt;
  An unmanaged package is a one-time distribution mechanism. You collect components such
  as custom objects, fields, Apex classes, flows, layouts and reports, upload them from
  a packaging org, and share an install link. On install, the contents are unpacked into
  the target org and behave as if an admin had built them there.
&lt;/p&gt;
&lt;p&gt;
  That is the whole trade-off. The installer gets full control, and the publisher gives
  up any way to push fixes later. For a side-by-side view of both models, see
  &lt;a href=&quot;/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
    &gt;managed vs unmanaged packages in Salesforce&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;When should you use an unmanaged package?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Templates and starter kits&lt;/strong&gt; that the installer is expected to fork
    and customise.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Sample and open-source apps&lt;/strong&gt;, where visible code is the point.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;One-time transfers&lt;/strong&gt; of a set of metadata between unrelated orgs.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Consulting accelerators&lt;/strong&gt;, such as objects, reports and permission
    sets a client adapts to its own process.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  If the words &lt;em&gt;version&lt;/em&gt;, &lt;em&gt;upgrade&lt;/em&gt; or &lt;em&gt;subscriber&lt;/em&gt; appear anywhere
  in your plan, an unmanaged package is the wrong choice.
&lt;/p&gt;
&lt;h2&gt;How do you create and install an unmanaged package?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    In the source org, open &lt;strong&gt;Setup&lt;/strong&gt; and search
    &lt;strong&gt;Package Manager&lt;/strong&gt; in Quick Find.
  &lt;/li&gt;
  &lt;li&gt;Create a new package and give it a clear name. Leave it without a namespace.&lt;/li&gt;
  &lt;li&gt;
    Add components from the &lt;strong&gt;Components&lt;/strong&gt; tab. Salesforce adds many
    dependent components for you, so review the list before you upload.
  &lt;/li&gt;
  &lt;li&gt;
    Click &lt;strong&gt;Upload&lt;/strong&gt;. When the upload succeeds, Salesforce emails you an
    installation link.
  &lt;/li&gt;
  &lt;li&gt;
    Open that link while logged in to the target org (sandboxes use the test login
    domain), choose who gets access, and install.
  &lt;/li&gt;
  &lt;li&gt;
    Test in a sandbox first. Installed components can collide with existing metadata of
    the same name.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;What are the limits of unmanaged packages?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;No upgrades.&lt;/strong&gt; You cannot install a new version over an old one. You
    uninstall and reinstall instead.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Uninstall deletes data.&lt;/strong&gt; Removing the package removes its custom
    objects and fields, and the records in them.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No IP protection.&lt;/strong&gt; All Apex, formulas and logic are visible and
    editable in the installing org.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No namespace.&lt;/strong&gt; Components land in the default namespace, so name
    clashes with existing metadata are on you.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Org limits apply.&lt;/strong&gt; Installed custom objects, fields and tabs count
    against the installing org&apos;s edition limits.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No change tracking.&lt;/strong&gt; Once installed, nothing ties the components
    back to a version, so drift is invisible unless you track it in source control.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The uninstall-to-upgrade rule is where teams lose data. Before you remove an installed
  package, capture a known-good state. In Serpent, the Backups view does exactly that,
  recovers supported org metadata and records, and keeps a Restore History. It
  complements rollback, and already-deleted data is still harder to reverse cleanly, so
  back up first. Steps are in the
  &lt;a href=&quot;/help-center/data-backup-restore/backup-restore&quot;&gt;backup and restore guide&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;How do you migrate an unmanaged package to an unlocked package?&lt;/h2&gt;
&lt;p&gt;
  This is the part most guides leave out. There is no in-place conversion, so you
  rebuild the package from source:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Inventory the components.&lt;/strong&gt; List what the unmanaged package installed
    and what has been customised since.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Retrieve to source.&lt;/strong&gt; Write a &lt;code&gt;package.xml&lt;/code&gt; for those
    components and run
    &lt;code&gt;sf project retrieve start --manifest package.xml --target-org source&lt;/code&gt;.
    Our
    &lt;a href=&quot;/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
      &gt;Salesforce CLI guide&lt;/a
    &gt;
    covers the setup.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Commit to Git.&lt;/strong&gt; From here, version control is the source of truth.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Split by dependency.&lt;/strong&gt; If the bundle mixes a shared data model with
    features, separate them into base and feature packages. The rules are in
    &lt;a
      href=&quot;/resources/Cross-Package-Dependency-Resolution-in-Salesforce%3A-Modelling%2C-Install-Order-and-Safe-Upgrades&quot;
      &gt;cross-package dependency resolution&lt;/a
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Create the unlocked package.&lt;/strong&gt; Run
    &lt;code&gt;sf package create --package-type Unlocked --path force-app&lt;/code&gt; against your
    Dev Hub, then cut a version with
    &lt;code&gt;sf package version create --code-coverage&lt;/code&gt;. Apex needs at least 75%
    coverage before you can promote it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Rehearse in a sandbox&lt;/strong&gt; with realistic data before you touch
    production.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  For step 6, Serpent seeds sample or masked data during environment setup and release
  pipelines, so scratch orgs and refreshed sandboxes come back populated without a
  manual script run. If you are building for AppExchange instead, the destination is a
  managed 2GP package; read
  &lt;a href=&quot;/resources/The-Secrets-of-Salesforce-Second-Generation-Managed-Package&quot;
    &gt;the secrets of second-generation managed packages&lt;/a
  &gt;
  before you start.
&lt;/p&gt;
&lt;h2&gt;Unmanaged vs unlocked vs managed: which fits?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Unmanaged:&lt;/strong&gt; one-time copy, editable, no upgrades. Templates and
    samples.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Unlocked (2GP):&lt;/strong&gt; source-driven, versioned, upgradeable, namespace
    optional. Internal apps.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Managed (2GP):&lt;/strong&gt; namespaced, IP-protected, upgradeable. Commercial
    AppExchange apps.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Serpent&apos;s &lt;a href=&quot;/package-development&quot;&gt;package development&lt;/a&gt; support builds,
  versions and ships 1GP, 2GP and managed packages on every plan, and maps dependencies
  so version conflicts surface before a target org sees them. More how-tos live in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can you upgrade an unmanaged package?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. You must uninstall the old version and install the new one, which deletes data in
  its custom objects and fields.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do unmanaged packages have a namespace?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Components install into the default namespace, which is why name collisions are
  possible.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I list an unmanaged package on AppExchange?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Commercial AppExchange distribution uses managed packages, which carry a namespace
  and pass security review.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I convert an unmanaged package into an unlocked package?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not in place. Retrieve the metadata to source control, then create a new unlocked
  package from it.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Migration Tools in Salesforce: Which One to Use When]]></title>
            <description><![CDATA[Compare data migration tools in Salesforce: Data Import Wizard, Data Loader, SFDMU, ETL and DevOps data deployment, and when each one fits.]]></description>
            <link>https://serpent.cloud/resources/Data-Migration-Tools-in-Salesforce%3A-Which-One-to-Use-When</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Data-Migration-Tools-in-Salesforce%3A-Which-One-to-Use-When</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;The short answer:&lt;/strong&gt; use the Data Import Wizard for simple loads under
  50,000 records, Data Loader for larger or scheduled loads up to 150 million records,
  and an org-to-org tool when you need to copy related records between production and
  sandboxes. That last job, the one Salesforce teams do most often, is where native
  tools stop and SFDMU or a DevOps platform&apos;s data deployment takes over.
&lt;/p&gt;
&lt;h2&gt;What are data migration tools in Salesforce?&lt;/h2&gt;
&lt;p&gt;
  They are tools that insert, update, upsert or export records in a Salesforce org at a
  volume or complexity that manual entry cannot handle. They fall into four groups:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Native file loaders&lt;/strong&gt;: the Data Import Wizard and Data Loader, both
    from Salesforce.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;CLI utilities&lt;/strong&gt;: such as SFDX Data Move Utility (SFDMU), a Salesforce
    CLI plugin.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;ETL and integration platforms&lt;/strong&gt;: for transforming data from external
    systems and keeping it in sync.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;DevOps data deployment&lt;/strong&gt;: org-to-org data moves inside a release tool
    such as Serpent, Copado or Gearset.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Which Salesforce data migration tool fits which job?&lt;/h2&gt;
&lt;h3&gt;A one-off import of a clean list&lt;/h3&gt;
&lt;p&gt;
  Use the Data Import Wizard. It is built into Setup, needs no install and handles up to
  50,000 records at a time. Watch out: it supports a limited set of objects and gives
  little control over relationships.
&lt;/p&gt;
&lt;h3&gt;A large or recurring load from files&lt;/h3&gt;
&lt;p&gt;
  Use Data Loader. According to
  &lt;a
    href=&quot;https://trailhead.salesforce.com/content/learn/modules/lex_implementation_data_management/lex_implementation_data_import&quot;
    &gt;Trailhead&lt;/a
  &gt;, it handles 50,000 to 150 million records, objects the wizard does not support, and
  scheduled loads such as nightly imports. Watch out: it works from CSV files on a local
  machine, so exports, mappings and error files live outside Salesforce.
&lt;/p&gt;
&lt;h3&gt;Related records between two orgs&lt;/h3&gt;
&lt;p&gt;
  Use SFDMU or a DevOps data deployment. Watch out: plain file loaders break lookups
  between orgs, because record IDs differ in every org.
&lt;/p&gt;
&lt;h3&gt;Continuous sync with an external system&lt;/h3&gt;
&lt;p&gt;
  Use an ETL or integration platform. That is integration rather than migration, and it
  needs its own monitoring.
&lt;/p&gt;
&lt;p&gt;
  For the end-to-end process around whichever tool you pick, follow our
  &lt;a href=&quot;/resources/Data-Migration-in-Salesforce%3A-A-Practical-Step-by-Step-Guide&quot;
    &gt;step-by-step data migration guide&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;Where do Data Import Wizard and Data Loader stop?&lt;/h2&gt;
&lt;p&gt;
  Both come with Salesforce and both are file-based. The wizard suits admins importing
  Accounts, Contacts, Leads or custom object records from a spreadsheet. Data Loader
  suits volume and can use the Bulk API for large jobs. The Trailhead
  &lt;a
    href=&quot;https://trailhead.salesforce.com/content/learn/modules/large-data-volumes/load-your-data&quot;
    &gt;large data volumes module&lt;/a
  &gt;
  recommends the Bulk API for anything from a few thousand to millions of records, and
  loading parents before children.
&lt;/p&gt;
&lt;p&gt;
  Where they stop: neither knows about your release process. There is no dependency
  check across orgs, no masking, and no record of which data shipped with which release.
&lt;/p&gt;
&lt;h2&gt;How do you migrate data between Salesforce orgs?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;SFDMU.&lt;/strong&gt; The open-source
    &lt;a href=&quot;https://github.com/forcedotcom/SFDX-Data-Move-Utility&quot;
      &gt;SFDX Data Move Utility&lt;/a
    &gt;
    is a Salesforce CLI plugin under the Apache-2.0 license. It migrates org to org or
    through CSV, supports insert, upsert, update and delete, handles related objects
    including circular references, and is configured with a single
    &lt;code&gt;export.json&lt;/code&gt; file. It runs locally, so someone on the team owns the
    scripts.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Copado Data Deploy.&lt;/strong&gt; Per
    &lt;a
      href=&quot;https://docs.essentials.copado.com/en/articles/6325474-how-to-deploy-relational-data-with-data-deploy-essentials&quot;
      &gt;Copado&apos;s documentation&lt;/a
    &gt;, it uses data templates that define a main object with its parents and children,
    deploys relational data between sandboxes and to and from production, and offers PII
    masking.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Gearset data deployment.&lt;/strong&gt;
    &lt;a
      href=&quot;https://docs.gearset.com/en/articles/2529745-running-your-first-data-deployment&quot;
      &gt;Gearset&apos;s docs&lt;/a
    &gt;
    describe dependency checks, optional per-field masking, temporary deactivation of
    flows, triggers and validation rules, and retrieval of up to 100,000 records per
    parent object.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Serpent.&lt;/strong&gt; Covered below.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  If the goal is a test-ready sandbox rather than a one-time move, see
  &lt;a href=&quot;/resources/How-to-seed-a-Salesforce-sandbox-with-realistic-data&quot;
    &gt;how to seed a Salesforce sandbox with realistic data&lt;/a
  &gt;. If your org is moving to Hyperforce, that is Salesforce moving your org&apos;s
  infrastructure, not you moving records, so work from our
  &lt;a href=&quot;/resources/Hyperforce-Migration%3A-A-DevOps-Checklist-for-Salesforce-Teams&quot;
    &gt;Hyperforce migration checklist&lt;/a
  &gt;
  instead.
&lt;/p&gt;
&lt;h2&gt;What should you check before choosing a tool?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Relationships.&lt;/strong&gt; Does it resolve lookups through external IDs or a
    dependency graph?
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Automation handling.&lt;/strong&gt; Can it pause triggers, flows and validation
    rules, and does it switch them back on?
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Masking.&lt;/strong&gt; Can it obfuscate personal data before records reach a
    sandbox?
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Where data travels.&lt;/strong&gt; Does it pass through CSVs on a laptop, or move
    org to org?
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Run history.&lt;/strong&gt; Can you see what moved, what failed and when?&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Pipeline fit.&lt;/strong&gt; Can data move in the same release as the metadata it
    depends on?
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;How does Serpent handle data migration?&lt;/h2&gt;
&lt;p&gt;
  Open &lt;strong&gt;Migrate Data&lt;/strong&gt; in the Data Management tab, pick a source and a
  destination org, turn on PII masking if you need it, start the migration, then review
  its progress and results. The Migration Details page shows the execution timeline, the
  Migrated Objects table filters by success and failed status, and built-in dependency
  checks reduce migration surprises. Full steps are in the
  &lt;a href=&quot;/help-center/data-backup-restore/data-migration-masking&quot;
    &gt;data migration and masking guide&lt;/a
  &gt;.
&lt;/p&gt;
&lt;p&gt;
  Two things matter in a DevOps workflow. Migrate Data is an action in the visual
  automation flow builder, so metadata and data move in the same release flow. And
  sandbox seeding runs as part of environment setup and release pipelines, so refreshed
  sandboxes and scratch orgs come back populated without a manual script run. Before a
  large write, the Backups view captures a known-good state you can restore from, as
  described in
  &lt;a href=&quot;/help-center/data-backup-restore/backup-restore&quot;&gt;backup and restore&lt;/a&gt;. See
  &lt;a href=&quot;/features/data-deployment&quot;&gt;data deployment&lt;/a&gt; for how it fits the pipeline.
  Deploy data is on every &lt;a href=&quot;/pricing&quot;&gt;plan&lt;/a&gt;, including the free Essentials
  plan.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;What is the best free data migration tool for Salesforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Data Loader for file-based loads and SFDMU for org-to-org moves. Neither carries an
  extra license cost, and SFDMU needs the Salesforce CLI.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How many records can Data Loader handle?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Up to 150 million records, per Trailhead. The Data Import Wizard handles up to 50,000
  records at a time.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I migrate data between sandboxes with Data Loader?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only by exporting and reimporting CSVs and remapping lookups by hand. An org-to-org
  tool handles the relationships for you.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do Salesforce data migration tools mask PII?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The native file loaders do not. Salesforce Data Mask &amp;amp; Seed, Copado, Gearset and
  Serpent all offer masking.
&lt;/p&gt;
&lt;p&gt;
  More how-to playbooks for Salesforce DevOps teams live in
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyperforce Migration: A DevOps Checklist for Salesforce Teams]]></title>
            <description><![CDATA[How a Salesforce Hyperforce migration works, what to fix before cutover, and how to keep pipelines, integrations and sandboxes working afterwards.]]></description>
            <link>https://serpent.cloud/resources/Hyperforce-Migration%3A-A-DevOps-Checklist-for-Salesforce-Teams</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Hyperforce-Migration%3A-A-DevOps-Checklist-for-Salesforce-Teams</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sun, 08 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; A Hyperforce migration moves your Salesforce org from
  Salesforce&apos;s own data centres onto its public cloud infrastructure. Salesforce runs
  the move itself, with roughly three hours of read-only time, but your team owns the
  readiness work: removing hard-coded instance URLs, updating IP allowlists, confirming
  integrations use HTTP/1.1, and making sure your CI/CD pipeline still authenticates and
  deploys afterwards.
&lt;/p&gt;
&lt;h2&gt;What is a Hyperforce migration?&lt;/h2&gt;
&lt;p&gt;
  Hyperforce is Salesforce&apos;s unified cloud infrastructure, built with public cloud
  providers such as AWS instead of first-party data centres. A Hyperforce migration
  moves your org onto a new instance on that infrastructure. Your configuration, code
  and data come with it. What changes is where the org runs, and anything that assumed
  the old location.
&lt;/p&gt;
&lt;p&gt;
  The programme is large. Salesforce Engineering reports
  &lt;a
    href=&quot;https://engineering.salesforce.com/hyperforce-migration-at-scale-how-deterministic-automation-replaced-manual-spreadsheets-across-95000-organizations/&quot;
    &gt;processing over 95,000 org migrations from more than 15,000 requests&lt;/a
  &gt;
  in about a year, using an internal automation layer that checks eligibility,
  scheduling windows and regional capacity.
&lt;/p&gt;
&lt;h2&gt;How does the Hyperforce migration process work?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Notification.&lt;/strong&gt; Users with the Modify All Data and Manage Users
    permissions are notified when their org is selected. There is no public schedule,
    and partners report notice periods of 30 to 90 days.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Preparation in Hyperforce Assistant.&lt;/strong&gt; The guided migration
    experience has been
    &lt;a
      href=&quot;https://www.salesforceben.com/get-ready-for-your-salesforce-hyperforce-migration/&quot;
      &gt;generally available since Winter &apos;24&lt;/a
    &gt;
    on a dedicated Setup page in production and sandbox orgs. It lists the steps to
    complete and scans your org code for hard-coded instance references.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Eligibility.&lt;/strong&gt; An org that does not meet the eligibility criteria has
    its migration deferred.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cutover.&lt;/strong&gt; The move runs in your preferred maintenance window with an
    estimated three hours of downtime, during which the org is read-only. If the
    proposed timing clashes with a release, contact your Salesforce account team.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;What should you fix before the cutover?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Hard-coded instance URLs.&lt;/strong&gt; A reference such as
    &lt;code&gt;na14.salesforce.com&lt;/code&gt; in Apex, Visualforce, named credentials, remote
    site settings or an external system stops working after the move. Replace each one
    with your My Domain URL. Run the Assistant&apos;s check, then back it up with static
    analysis such as PMD or Salesforce Code Analyzer.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Instanced URLs in API traffic.&lt;/strong&gt; This work pays twice. The release
    update that blocks API calls to old instance hostnames is
    &lt;a
      href=&quot;https://www.salesforceben.com/salesforce-spring-27-release-what-to-expect-and-how-to-prepare-part-1/&quot;
      &gt;now due in Spring &apos;27&lt;/a
    &gt;, Hyperforce or not.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;IP allowlists.&lt;/strong&gt; Hyperforce can change IP addressing, so
    &lt;a
      href=&quot;https://www.synechron.com/insight/navigating-hyperforce-migrations-large-complex-salesforce-environments&quot;
      &gt;audit allowlists, endpoints and certificates&lt;/a
    &gt;
    in firewalls and partner systems, including middleware such as MuleSoft.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;HTTP version.&lt;/strong&gt; Integrations must use HTTP/1.1. Hyperforce does not
    accept HTTP/1.0 requests.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Authentication flows.&lt;/strong&gt; Single sign-on, OAuth and JWT setups depend
    on endpoints, so test each one. Our
    &lt;a href=&quot;/resources/Salesforce-Authentication-Your-Complete-Migration-Guide&quot;
      &gt;Salesforce authentication migration guide&lt;/a
    &gt;
    covers the flows worth checking.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;A known-good backup.&lt;/strong&gt; Capture the org state before cutover. In
    Serpent, the Backups view captures a known-good state, recovers supported org
    metadata and records, and keeps a Restore History. See
    &lt;a href=&quot;/help-center/data-backup-restore/backup-restore&quot;&gt;backup and restore&lt;/a&gt; for
    the steps.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;How do you keep your CI/CD pipeline working through Hyperforce?&lt;/h2&gt;
&lt;p&gt;
  The ranking guides cover the org. Few cover the pipeline that deploys to it, and that
  is where teams lose the day after cutover.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Check every pipeline login.&lt;/strong&gt; A CI job that authenticates with
    &lt;code&gt;--instance-url https://na14.salesforce.com&lt;/code&gt; is a hard-coded reference
    too, but it lives in your CI configuration, outside the org the Assistant scans.
    Point every job at your My Domain URL.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Freeze deployments around the window.&lt;/strong&gt; Nothing deploys while the org
    is read-only. Hold merges for the day before and after so a failed deploy is never
    confused with a migration issue.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run the full regression suite straight after.&lt;/strong&gt; Promote your nightly
    suite to a post-cutover gate. Our guide to
    &lt;a
      href=&quot;/resources/Salesforce-test-automation-in-CI%3A-what-to-run-on-every-pull-request%2C-and-what-to-run-nightly&quot;
      &gt;what to run on every pull request and what to run nightly&lt;/a
    &gt;
    shows how to split it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Plan for sandbox drift.&lt;/strong&gt; Guidance differs on whether sandboxes move
    with production or on their own schedule, and some partners advise refreshing them
    after the migration. A refresh resets a sandbox to production and drops in-flight
    work, so
    &lt;a href=&quot;/resources/How-to-Set-Up-Back-Promotion-in-a-Salesforce-DevOps-Pipeline&quot;
      &gt;back-promote&lt;/a
    &gt;
    anything unreleased first.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Reseed refreshed sandboxes.&lt;/strong&gt; Serpent seeds sample or masked data as
    part of environment setup and release pipelines, so refreshed sandboxes come back
    populated without a manual script run. PII masking obfuscates common personal
    fields, which keeps production-shaped data usable while meeting GDPR and similar
    rules.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;What should you verify after the migration?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Every inbound and outbound integration completes a real transaction.&lt;/li&gt;
  &lt;li&gt;SSO and connected app logins work for each user group.&lt;/li&gt;
  &lt;li&gt;Scheduled jobs, outbound email and platform event subscribers run on time.&lt;/li&gt;
  &lt;li&gt;A small test deployment from your pipeline succeeds end to end.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Is Hyperforce a good moment to change DevOps tooling?&lt;/h2&gt;
&lt;p&gt;
  Often, yes. You are already auditing logins, endpoints and pipelines, so rewiring them
  once beats rewiring them twice. Teams running Copado, Gearset or change sets can plan
  the switch in the same window. If that is you, see
  &lt;a href=&quot;/migrate&quot;&gt;how migrating to Serpent works&lt;/a&gt;, then browse the rest of our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt; for the pipeline patterns that follow.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How long is the downtime during a Hyperforce migration?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Salesforce estimates about three hours, during which the org is read-only. The move
  runs in your preferred maintenance window.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I have to do anything if Salesforce migrates my org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Salesforce moves the org, but removing hard-coded URLs, updating allowlists and
  testing integrations is your work.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I change my migration date?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  If the proposed window is inconvenient, contact your Salesforce account team before
  the cutover.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Will my integrations break?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only if they rely on hard-coded instance URLs, HTTP/1.0 or IP allowlists you did not
  update. Test each one in a sandbox first.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Migration in Salesforce: A Practical Step-by-Step Guide]]></title>
            <description><![CDATA[How to plan and run data migration in Salesforce: tools and limits, load order, external IDs, org-to-org moves, PII masking and validation.]]></description>
            <link>https://serpent.cloud/resources/Data-Migration-in-Salesforce%3A-A-Practical-Step-by-Step-Guide</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Data-Migration-in-Salesforce%3A-A-Practical-Step-by-Step-Guide</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; Data migration in Salesforce means moving records into an org,
  or between orgs, so they arrive with their relationships, owners and history intact.
  The reliable pattern is to deploy metadata first, give every record a stable external
  ID, upsert parents before children, rehearse in a sandbox, then validate counts and
  relationships. Most guides stop at the one-time legacy import, but the migration most
  teams run every month is org-to-org: production data into sandboxes and scratch orgs.
&lt;/p&gt;
&lt;h2&gt;What is data migration in Salesforce?&lt;/h2&gt;
&lt;p&gt;It is the movement of records, not configuration. There are two kinds:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Legacy to Salesforce:&lt;/strong&gt; a one-time import from an old CRM, ERP or
    spreadsheet, usually at go-live.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Org to org:&lt;/strong&gt; a recurring copy between Salesforce orgs, such as
    seeding a sandbox, merging orgs after an acquisition, or loading test data for a
    release.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Either way, the objects and fields must already exist in the destination, and the
  destination assigns its own record IDs. You cannot carry Salesforce IDs from one org
  to another, which is why relationships are the hard part.
&lt;/p&gt;
&lt;h2&gt;Which Salesforce data migration tool should you use?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Data Import Wizard:&lt;/strong&gt; built into Setup and handles up to 50,000
    records at a time for common standard objects and custom objects, according to
    &lt;a
      href=&quot;https://trailhead.salesforce.com/lex_implementation_data_management/lex_implementation_data_import&quot;
      &gt;Trailhead&lt;/a
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Data Loader:&lt;/strong&gt; a client application that imports up to 150 million
    records at a time, covers objects the wizard does not, and suits scheduled loads.
    Above that volume, Salesforce recommends working with a partner.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Salesforce CLI:&lt;/strong&gt;
    &lt;a
      href=&quot;https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_data_upsert_bulk.html&quot;
      &gt;&lt;code&gt;sf data upsert bulk&lt;/code&gt;&lt;/a
    &gt;
    upserts a CSV through Bulk API 2.0 with a required &lt;code&gt;--external-id&lt;/code&gt; flag,
    so loads can be scripted and repeated. Our guide to
    &lt;a href=&quot;/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
      &gt;mastering Salesforce development with the Salesforce CLI&lt;/a
    &gt;
    covers the setup.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Org-to-org data deployment:&lt;/strong&gt; when both ends are Salesforce orgs, a
    tool that reads the source and writes the destination in one run saves the export,
    transform and reimport loop.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How do you migrate data in Salesforce step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Scope it.&lt;/strong&gt; List the objects, decide how much history you really
    need, and agree what gets archived instead of migrated.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploy metadata first.&lt;/strong&gt; Every field you load needs a matching field
    in the destination, with the same type and picklist values.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Clean at the source.&lt;/strong&gt; Deduplicate, normalize picklists and fix
    inactive owners before export. Cleaning after load costs more.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Map fields and add external IDs.&lt;/strong&gt; Store each legacy key in an
    External ID field. Upsert matches on it, updating a record that exists and inserting
    one that does not, and lets child rows point at a parent without knowing its new
    Salesforce ID. Reruns then update instead of duplicate.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Load parents before children.&lt;/strong&gt; Users and owners, then accounts, then
    contacts, then opportunities, then junction objects such as opportunity products.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Control automation.&lt;/strong&gt; Document the flows and triggers on each object
    and bypass them during the load, so a migration does not send thousands of emails.
    Re-enable them with a named owner signing off.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Rehearse in a sandbox.&lt;/strong&gt; Salesforce recommends importing a small test
    file first. Then run the full volume in a sandbox before production.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate.&lt;/strong&gt; Compare record counts per object, check that every child
    has its parent, read the error files and spot-check records with the business owner.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep a way back.&lt;/strong&gt; Back up the destination before you write to it and
    keep the source export until users sign off.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;How do you migrate data between Salesforce orgs?&lt;/h2&gt;
&lt;p&gt;
  This is the gap in most guides, and it is the migration DevOps teams run most often.
  In Serpent it is a single flow: open the Migrate Data screen in the Data Management
  tab, pick a source and a destination org, turn on PII masking if you need it, start
  the migration, then review its progress and results. Built-in dependency checks reduce
  migration surprises, and the Migration Details page shows the execution timeline, with
  a Migrated Objects table you can filter by success and failed status. The full
  walkthrough is in the help center:
  &lt;a href=&quot;/help-center/data-backup-restore/data-migration-masking&quot;
    &gt;data migration and masking&lt;/a
  &gt;.
&lt;/p&gt;
&lt;p&gt;
  Because metadata and data move in the same release flow, and Migrate Data is an action
  in the visual automation flow builder, the data a release depends on ships with the
  release instead of in a separate script. See
  &lt;a href=&quot;/features/data-deployment&quot;&gt;Serpent data deployment&lt;/a&gt; for how that fits a
  pipeline; Deploy data is on every plan, including the free Essentials plan.
&lt;/p&gt;
&lt;h2&gt;How do you keep personal data safe when copying production data?&lt;/h2&gt;
&lt;p&gt;
  Copying production records into a sandbox copies the personal data in them too.
  Serpent&apos;s PII masking obfuscates common personal fields during preview and migration,
  which keeps production-shaped data usable in lower environments while meeting GDPR and
  similar rules. For repeatable test environments, Serpent seeds sample or masked data
  as part of environment setup and release pipelines, so refreshed sandboxes and scratch
  orgs come back populated without a manual script run. Our guide on
  &lt;a href=&quot;/resources/How-to-seed-a-Salesforce-sandbox-with-realistic-data&quot;
    &gt;how to seed a Salesforce sandbox with realistic data&lt;/a
  &gt;
  goes deeper.
&lt;/p&gt;
&lt;h2&gt;What are the most common Salesforce data migration mistakes?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Children before parents.&lt;/strong&gt; Lookups fail or point at nothing.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Trusting source IDs.&lt;/strong&gt; They do not exist in the destination; use
    external IDs.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Leaving automation on.&lt;/strong&gt; Flows fire on every inserted record.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No dry run.&lt;/strong&gt; The first full load should never be the production
    load.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No recovery plan.&lt;/strong&gt; Data is harder to reverse cleanly than a metadata
    release. Serpent&apos;s Backups view captures a known-good state, recovers supported
    metadata and records, and keeps a Restore History; see
    &lt;a href=&quot;/help-center/data-backup-restore/backup-restore&quot;&gt;backup and restore&lt;/a&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Forgetting the integration user.&lt;/strong&gt; Every tool authenticates as
    someone; if you are changing how, read our
    &lt;a href=&quot;/resources/Salesforce-Authentication-Your-Complete-Migration-Guide&quot;
      &gt;Salesforce authentication migration guide&lt;/a
    &gt;
    first.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Data belongs in your release process alongside code and configuration, one of the
  ideas behind
  &lt;a href=&quot;/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
    &gt;the 5 pillars of Salesforce DevOps&lt;/a
  &gt;. For more how-tos, browse the &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How many records can the Data Import Wizard handle?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Up to 50,000 records at a time. For more, Data Loader handles up to 150 million
  records at a time.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do you need to migrate metadata before data?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Every object and field you load must already exist in the destination org with a
  matching type.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is an external ID in a Salesforce migration?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  A field that stores a stable key from the source system. Upsert uses it to match
  records and link children to parents without Salesforce IDs.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong
    &gt;Can you migrate data between two Salesforce orgs without exporting CSVs?&lt;/strong
  &gt;
&lt;/p&gt;
&lt;p&gt;
  Yes. An org-to-org tool such as Serpent&apos;s Migrate Data reads the source org and writes
  the destination in one run, with optional PII masking.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up Back-Promotion in a Salesforce DevOps Pipeline]]></title>
            <description><![CDATA[Back-promotion carries a hotfix back down your Salesforce pipeline. How to cascade the merge, one environment at a time, without merge chaos.]]></description>
            <link>https://serpent.cloud/resources/How-to-Set-Up-Back-Promotion-in-a-Salesforce-DevOps-Pipeline</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Set-Up-Back-Promotion-in-a-Salesforce-DevOps-Pipeline</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; back-promotion is the merge that carries a production
  change back down to every lower branch and org in your pipeline. You need it because a
  hotfix applied straight to production exists nowhere else, so the next ordinary
  release quietly overwrites it. The safe way to automate it is a cascading merge, one
  environment at a time, opened as a pull request rather than pushed by a script.
&lt;/p&gt;

&lt;h2&gt;What is back-promotion in a Salesforce pipeline?&lt;/h2&gt;
&lt;p&gt;
  A normal promotion moves a change up the chain: &lt;code&gt;dev&lt;/code&gt; to
  &lt;code&gt;integration&lt;/code&gt; to &lt;code&gt;uat&lt;/code&gt; to &lt;code&gt;main&lt;/code&gt;. Back-promotion
  moves in the opposite direction, taking what already exists in a higher environment
  and merging it downward so the lower environments match.
&lt;/p&gt;
&lt;p&gt;Two things need to travel, and most teams only do the first:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;The source.&lt;/strong&gt; Merge the higher branch into the lower branch, so the
    repository agrees with itself.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The org.&lt;/strong&gt; Deploy that merge to the lower sandbox, or your next piece
    of work is built against metadata that no longer matches production.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Why do hotfixes need a path back down the chain?&lt;/h2&gt;
&lt;p&gt;
  Because a hotfix breaks the assumption your pipeline is built on: that production only
  ever receives what came up the chain. Break that assumption and three failures follow.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Silent regression.&lt;/strong&gt; The next release deploys the older version of
    the same component and the fix disappears. Nothing errors, so nobody notices until
    the incident repeats.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Untrustworthy UAT.&lt;/strong&gt; You are testing against a state that production
    is no longer in.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Compounding conflicts.&lt;/strong&gt; Every day the branches stay apart, the
    eventual merge gets bigger and more manual.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Out-of-band changes are not only hotfixes. A page layout edited in production during
  an incident, a picklist value added for support, a field created to unblock a user:
  they all need the same route home.
&lt;/p&gt;

&lt;h2&gt;What actually creates the merge chaos, and how do you avoid it?&lt;/h2&gt;
&lt;p&gt;
  This is the part most guides skip. Back-promotion goes wrong in predictable ways, and
  five rules prevent nearly all of it.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Merge downward, do not cherry-pick.&lt;/strong&gt; A cherry-pick creates a new
    commit with a different hash, so Git still treats the original as unmerged and
    re-raises the same conflict on every future merge. Merge the branch instead.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cascade one hop at a time, in pipeline order.&lt;/strong&gt;
    &lt;code&gt;main&lt;/code&gt; into &lt;code&gt;uat&lt;/code&gt;, then &lt;code&gt;uat&lt;/code&gt; into
    &lt;code&gt;integration&lt;/code&gt;, then &lt;code&gt;integration&lt;/code&gt; into &lt;code&gt;dev&lt;/code&gt;.
    Merging &lt;code&gt;main&lt;/code&gt; straight into &lt;code&gt;dev&lt;/code&gt; leaves the skipped branches
    to conflict later.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run it the same day the hotfix ships.&lt;/strong&gt; Divergence is cheap for hours
    and expensive for weeks.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Open a pull request, do not push.&lt;/strong&gt; An automation that merges
    silently strips out the review and the audit trail, which are the two things a
    hotfix most needs.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Fail loudly on conflict, and assign it to the hotfix author.&lt;/strong&gt; They
    hold the context. A conflict routed to whoever is on rota gets resolved by guessing.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
  &lt;p&gt;
    Back-promotion is not a deployment problem. It is a branch hygiene problem that
    shows up as a deployment problem three weeks later.
  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;How do you set up back-promotion step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Write the pipeline order down.&lt;/strong&gt; One ordered list of environments and
    the branch each maps to. Back-promotion is meaningless without it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Give hotfixes their own branch off production.&lt;/strong&gt; Branch from
    &lt;code&gt;main&lt;/code&gt;, never from &lt;code&gt;dev&lt;/code&gt;, so the fix carries nothing
    unreleased with it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Ship the hotfix through the normal gates.&lt;/strong&gt; Same tests, same review,
    same approval, just a shorter path.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Trigger the cascade on merge to &lt;code&gt;main&lt;/code&gt;.&lt;/strong&gt; The pipeline
    opens a back-promotion pull request into the next branch down, automatically.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploy each merged branch to its org.&lt;/strong&gt; Source parity without org
    parity leaves the drift exactly where it was.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Verify with a drift check.&lt;/strong&gt; Compare each lower org against its
    branch once the cascade lands. A difference means something was changed in the org
    and never committed.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Record it on the work item.&lt;/strong&gt; A hotfix is not done when production is
    fixed. It is done when every environment carries it.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;Is a sandbox refresh a substitute for back-promotion?&lt;/h2&gt;
&lt;p&gt;
  No, and treating it as one is a common and expensive mistake. A refresh replaces the
  sandbox with a copy of production, which does bring the hotfix down, and destroys
  every unreleased change in that sandbox on the way. Refreshes are also rationed: a
  Full sandbox can only be refreshed every 29 days (&lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=000386499&amp;amp;type=1&quot;
    &gt;Salesforce Help&lt;/a
  &gt;), so it is a scheduled event, not an incident response.
&lt;/p&gt;
&lt;p&gt;
  Use refreshes to reset data and long-term drift. Use back-promotion to keep source and
  orgs aligned in between. Most Salesforce DevOps platforms support this shape in some
  form, Copado, Gearset, AutoRABIT, Flosum, Blue Canvas, Salto and Serpent included. Serpent runs Back Promote as an automation flow step that merges landed changes back down into in-progress work item branches. What varies is whether the cascade is automatic, and whether it arrives as a reviewable pull request.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;What is the difference between promotion and back-promotion?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Promotion moves a change up the pipeline toward production. Back-promotion moves an
  existing higher-environment change downward, so the lower environments stop drifting.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should back-promotion be fully automatic?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The trigger and the pull request should be. The merge itself should still be approved,
  because a conflict resolved without review is how a hotfix gets undone twice.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do we handle a conflict during back-promotion?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Resolve it in the back-promotion branch, in favour of production behaviour, and have
  the person who wrote the hotfix confirm it. Never resolve by taking the lower branch
  wholesale.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Do we still need back-promotion if nobody edits production directly?&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
  Yes, though less often. Long-lived release branches, reverted releases and package
  patch versions all put changes into higher environments that the lower ones do not
  have.
&lt;/p&gt;

&lt;p&gt;
  More step-by-step pipeline playbooks live in the
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;. If your pipeline does not open the cascade
  for you today, start with rule two: one hop at a time, in order. Back-promotion stops
  being the job nobody wants.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Rollback Strategies for Failed Salesforce Deployments]]></title>
            <description><![CDATA[Salesforce has no undo button. The rollback options that actually work: snapshots, reverse deployments, destructive changes and pre-deploy decisions.]]></description>
            <link>https://serpent.cloud/resources/Rollback-Strategies-for-Failed-Salesforce-Deployments</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Rollback-Strategies-for-Failed-Salesforce-Deployments</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; Salesforce has no undo button. A production deployment
  that fails rolls itself back, because &lt;code&gt;rollbackOnError&lt;/code&gt; must be true when
  you deploy to production, but a deployment that succeeds and turns out to be wrong is
  yours to reverse by hand. Your realistic options are a reverse deployment from a
  pre-release snapshot, a targeted destructive change, or a forward fix, and which of
  them is available to you is decided before you deploy, not after.
&lt;/p&gt;

&lt;h2&gt;Why is there no rollback button in Salesforce?&lt;/h2&gt;
&lt;p&gt;
  Salesforce commits metadata straight into the org. There is no transaction log to
  unwind and no previous version of the org to switch back to. The Metadata API gives
  you exactly one safety net, and it only covers outright failure: for a production
  deployment, &lt;code&gt;rollbackOnError&lt;/code&gt; must be set to true, so if any component in
  the package fails, the whole deployment is discarded and the org is left as it was (&lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy.htm&quot;
    &gt;Salesforce Metadata API developer guide&lt;/a
  &gt;).
&lt;/p&gt;
&lt;p&gt;
  That net does nothing for the case teams actually fear. A release that deploys
  cleanly, passes every test, and then breaks a business process at nine in the morning
  is not a failed deployment in Salesforce terms. Reversing it means building and
  shipping a new deployment, and you can only build that one from something you captured
  earlier.
&lt;/p&gt;

&lt;h2&gt;What can actually be rolled back, and what cannot?&lt;/h2&gt;
&lt;p&gt;
  This is the question every rollback plan should start with, and it is where most plans
  are silent. Sort your release into three buckets before you write a single step.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Reversible by redeploying the old version.&lt;/strong&gt; Apex classes and
    triggers, Lightning web components, flows, layouts, validation rules, permission
    sets and most declarative configuration. If you have the previous source, you can
    put it back.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Recoverable inside a window.&lt;/strong&gt; A deleted custom field lands in
    Deleted Fields in Object Manager and can be undeleted with its data for 15 days,
    after which it is gone. Restoring the field does not restore the page layouts it was
    removed from (&lt;a
      href=&quot;https://www.salesforceben.com/how-to-restore-deleted-salesforce-fields/&quot;
      &gt;background on restoring deleted fields&lt;/a
    &gt;).
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Effectively irreversible.&lt;/strong&gt; Deleted picklist values, field type
    conversions that truncate data, records rewritten by a bad flow or trigger, and
    roll-up summary fields deleted through the Metadata API, which bypass the Recycle
    Bin entirely (&lt;a
      href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_deleting_files.htm&quot;
      &gt;Salesforce documentation on deleting components&lt;/a
    &gt;).
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The third bucket is where rollback plans quietly fail. Metadata rollback restores
  configuration, never data. If your release ran an automation across 400,000 records,
  redeploying yesterday&apos;s Apex changes nothing about those records.
&lt;/p&gt;

&lt;h2&gt;What are the realistic rollback strategies?&lt;/h2&gt;

&lt;h3&gt;1. Reverse deployment from source control&lt;/h3&gt;
&lt;p&gt;
  The most reliable option. If the branch that produced the release is in Git, the
  previous commit is your rollback artifact. You build a package from the last
  known-good commit and deploy it over the top. This only covers components the release
  changed or added, so it needs to be paired with strategy three.
&lt;/p&gt;

&lt;h3&gt;2. Restore from a metadata snapshot&lt;/h3&gt;
&lt;p&gt;
  Capture the state of the target org immediately before the deployment, then use that
  snapshot to generate the reverse package if you need it. This covers the case where
  the org has drifted from Git, which in most Salesforce teams it has. Tools in this
  category automate the capture and the diff: Gearset, AutoRABIT and Blue Canvas all
  document snapshot or restore based rollback, and Serpent ships one-click rollback on every plan, including the free one. On Scale and above, Backup &amp; Restore covers the data side.
&lt;/p&gt;

&lt;h3&gt;3. Destructive changes for anything you added&lt;/h3&gt;
&lt;p&gt;
  A reverse deployment updates components that existed before. It does not remove the
  ones your release created, so a new object or field stays behind unless you delete it
  explicitly. That means a &lt;code&gt;destructiveChanges.xml&lt;/code&gt; manifest, a separate
  artifact you have to write. Use &lt;code&gt;destructiveChangesPre.xml&lt;/code&gt; to delete
  before the additions land and &lt;code&gt;destructiveChangesPost.xml&lt;/code&gt; to delete after,
  which is how you unwind dependencies such as an Apex class that still references the
  object you want gone.
&lt;/p&gt;

&lt;h3&gt;4. Roll forward instead&lt;/h3&gt;
&lt;p&gt;
  Often the right call. If the fault is a single validation rule or one line of Apex, a
  hotfix through the normal pipeline is faster and safer than reversing a package of 200
  components. Roll back when the blast radius is unknown. Roll forward when it is small
  and understood.
&lt;/p&gt;

&lt;h2&gt;How do you roll back a failed Salesforce deployment, step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;Stop the pipeline so no further release stacks on top of the broken one.&lt;/li&gt;
  &lt;li&gt;Name the blast radius: which components, which automations, which records.&lt;/li&gt;
  &lt;li&gt;Decide rollback or forward fix, and tell stakeholders which one you chose.&lt;/li&gt;
  &lt;li&gt;
    Build the reverse package from the pre-release snapshot or the last known-good
    commit.
  &lt;/li&gt;
  &lt;li&gt;Add a destructive manifest for anything the release created.&lt;/li&gt;
  &lt;li&gt;
    Validate the reverse package against production before you run it, so you do not
    turn one incident into two.
  &lt;/li&gt;
  &lt;li&gt;Deploy, then verify the business process rather than the deployment status.&lt;/li&gt;
  &lt;li&gt;Repair data separately, from backup, and only once the metadata is stable.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;What should you decide before you deploy?&lt;/h2&gt;
&lt;p&gt;
  A rollback is a design decision made at build time. Answer these five before the
  release goes out.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Where is the pre-release snapshot of the target org, and did it actually run?&lt;/li&gt;
  &lt;li&gt;Which components in this release fall into the irreversible bucket?&lt;/li&gt;
  &lt;li&gt;Does anything need a destructive manifest, and is it written and reviewed?&lt;/li&gt;
  &lt;li&gt;Is there a data backup taken close enough to the release to be useful?&lt;/li&gt;
  &lt;li&gt;Who decides to roll back, and what is the signal that triggers it?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Validating before you deploy is the cheapest prevention available. A validation with
  tests stays usable for 10 days and lets you quick deploy the same package without
  rerunning Apex tests, so there is little excuse for finding compile errors in
  production. More release playbooks are in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Does Salesforce roll back a failed deployment automatically?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes, but only for deployments that fail. Production deployments require
  &lt;code&gt;rollbackOnError&lt;/code&gt; to be true, so a failing component discards the whole
  package. A successful deployment is never reversed for you.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can change sets be rolled back?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not natively. There is no reverse button, so teams build a second change set that
  redeploys the previous version, which only works if someone captured that version
  first.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does a metadata rollback restore my data?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Metadata and data are separate problems. Reversing configuration does not undo
  records that an automation created, updated or deleted, so you need a backup and a
  restore plan for that.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How long do I have to recover a deleted custom field?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  15 days. The field sits in Deleted Fields in Object Manager and can be undeleted with
  its data inside that window, though you may have to re-add it to page layouts
  manually.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating from Gearset to Serpent without downtime]]></title>
            <description><![CDATA[A switching playbook: what carries over, what you rebuild, and how to keep releasing while both tools are connected to the same repository.]]></description>
            <link>https://serpent.cloud/resources/Migrating-from-Gearset-to-Serpent-without-downtime</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Migrating-from-Gearset-to-Serpent-without-downtime</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; You do not need a release freeze. Your Git repository is the
  portable asset, so both tools can be connected to it while you move pipeline by
  pipeline, lowest environment first and production last. What carries over is the repo,
  its branches and its history. What gets rebuilt is everything that lived inside the
  vendor: CI and monitoring jobs, org connections, approval gates, backup schedules and
  deployment history.
&lt;/p&gt;

&lt;h2&gt;What actually carries over when you switch?&lt;/h2&gt;
&lt;p&gt;
  The mental model that makes this easy: metadata lives in Git, orchestration lives in
  the vendor.
  &lt;a href=&quot;https://docs.gearset.com/en/articles/3727761-gearset-and-git&quot;
    &gt;Gearset&apos;s own documentation&lt;/a
  &gt;
  describes your repository as where the metadata is stored, with the tool moving it
  between orgs and that repo. So the asset you spent years building, the commit history
  and the branch model and the file layout, is yours and stays exactly where it is.
&lt;/p&gt;
&lt;p&gt;Carries over untouched:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;The Git repository, with every branch, tag and commit.&lt;/li&gt;
  &lt;li&gt;
    Your directory structure and metadata format, as long as the new tool reads it.
  &lt;/li&gt;
  &lt;li&gt;
    Branch protection rules and reviewer lists, because those live in GitHub, GitLab or
    Bitbucket.
  &lt;/li&gt;
  &lt;li&gt;
    Anything already expressed as code: scripts, Apex tests, static analysis
    configuration.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Has to be rebuilt:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;CI/CD job definitions and their schedules.&lt;/li&gt;
  &lt;li&gt;Change monitoring jobs and their notification rules.&lt;/li&gt;
  &lt;li&gt;Org connections and authenticated users, per environment.&lt;/li&gt;
  &lt;li&gt;Approval gates and the rules for who can promote to production.&lt;/li&gt;
  &lt;li&gt;
    Backup schedules, and any retained backup data, which is not portable between
    vendors.
  &lt;/li&gt;
  &lt;li&gt;Deployment history and audit records held inside the old tool.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;What should you check before you connect anything?&lt;/h2&gt;
&lt;p&gt;
  Confirm your metadata format first. Gearset commits in SFDX source format when it
  initialises an empty repository and supports metadata API format as well, so an
  inherited repo can legitimately be in either. A format mismatch is the one thing that
  turns a quiet parallel run into a wall of false diffs.
&lt;/p&gt;
&lt;p&gt;
  If the repo is in metadata API format and you want to convert, do that as its own
  change: convert, review, merge, verify a deployment from it. Never convert format and
  switch tooling in the same week. You will not be able to tell which change caused
  which surprise.
&lt;/p&gt;

&lt;h2&gt;How do you keep releasing while both tools are connected?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Inventory what the old tool does for you.&lt;/strong&gt; Deployments, CI jobs,
    change monitoring, backup, code review, sandbox seeding. That list is your migration
    backlog and it is usually longer than anyone remembers.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Connect the new tool read-only.&lt;/strong&gt; Point it at the same repository and
    the same orgs and run comparisons without deploying. Nothing changes for the team on
    day one.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Rebuild the lowest environment first.&lt;/strong&gt; Dev or integration. Let one
    squad ship through the new pipeline for a sprint while everyone else stays on the
    old path.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run both for one full release cycle.&lt;/strong&gt; The new pipeline validates
    every change, the old one still deploys. Every difference between the two results is
    a configuration gap you found for free.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Move UAT and staging.&lt;/strong&gt; By this point the pipeline shape is proven,
    the approval model is agreed and the audit output looks the way your reviewers
    expect.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Move production last&lt;/strong&gt;, inside a normal change window. There is no
    cutover event, only the last environment moving.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Decommission on a delay.&lt;/strong&gt; Keep the old subscription through at least
    one backup retention period, then revoke org connections and remove deploy keys and
    webhooks.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;What are the traps in a parallel run?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Two writers, one branch.&lt;/strong&gt; Agree that only one tool commits to a
    given branch at a time. Racing commits are the most common self-inflicted wound in a
    migration.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Duplicate status checks.&lt;/strong&gt; Both tools will want to report on pull
    requests. Make only one of them a required check, or merges stall waiting on a
    pipeline you are retiring.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Double deployment.&lt;/strong&gt; If both tools have a scheduled job pointed at
    the same target org, you will deploy twice. Disable the old schedule the moment the
    new one goes live, not the week after.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Backups.&lt;/strong&gt; Backup data generally cannot be exported into another
    vendor in a restorable form. Decide your retention position before you cancel
    anything.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Audit gaps.&lt;/strong&gt; In a regulated environment, export the deployment
    history you are required to keep while the old contract is still active.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;How long does the whole thing take?&lt;/h2&gt;
&lt;p&gt;
  The constraint is your release cadence, not the tooling. A team on a two-week cycle is
  usually through in two cycles: one parallel cycle and one production cycle. Serpent
  setup takes under 15 minutes per workspace and onboarding sessions with our team are
  free, so most of the calendar is spent waiting for your own change windows rather than
  configuring anything.
&lt;/p&gt;

&lt;h2&gt;Why do teams switch in the first place?&lt;/h2&gt;
&lt;p&gt;
  Three reasons come up repeatedly. Pricing that moves with users and with the number of
  CI/CD orgs. A workflow that assumes Git fluency the admin half of the team does not
  have. And package delivery that is a separate purchase. Serpent prices flat per
  company, runs a ticket-based workflow with Git in the background, installs nothing in
  your org, and includes 1GP, 2GP and AppExchange release workflows on every plan
  including free Essentials. Data migration with PII masking is part of the platform too, and Backup &amp; Restore comes with Scale and above. More switching playbooks live in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Do we need a release freeze to switch?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Rebuild environments one at a time and keep the old pipeline deploying until the
  new one has validated a full release cycle.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Can two DevOps tools be connected to the same repository at once?&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
  Yes, and that is what makes a no-downtime switch possible. The rule that keeps it safe
  is one writer per branch at any given time.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do our existing backups move across?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Backup data is not portable between vendors in a restorable form, so plan an
  overlap that covers your retention requirement.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What happens to our deployment history?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  It stays with the old tool. Export whatever your auditors need while the contract is
  still active.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does Serpent install anything in our Salesforce orgs?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. It connects over standard APIs only, so there is no package to approve on the way
  in and nothing to uninstall later.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[SOX and GDPR Compliance in a Salesforce Release Process]]></title>
            <description><![CDATA[Build separation of duties, change evidence and safe data handling into your Salesforce pipeline instead of bolting on a manual control layer.]]></description>
            <link>https://serpent.cloud/resources/SOX-and-GDPR-Compliance-in-a-Salesforce-Release-Process</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/SOX-and-GDPR-Compliance-in-a-Salesforce-Release-Process</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; SOX asks you to prove that whoever built a change did
  not release it, and that every production change traces back to an approved request.
  GDPR asks you to prove personal data was minimised and protected, including in
  sandboxes. A normal pipeline already produces most of that evidence, so the work is
  enforcing the controls in the pipeline rather than reconstructing them by hand once a
  year.
&lt;/p&gt;

&lt;h2&gt;What do SOX and GDPR actually require from a release process?&lt;/h2&gt;
&lt;p&gt;
  Two different laws with one overlapping demand: controls that are designed, enforced
  and evidenced.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;SOX&lt;/strong&gt; (Sarbanes-Oxley) applies to US-listed companies. Section 404
    requires management to assess internal control over financial reporting. In practice
    your auditor tests IT general controls: who can change the systems that produce
    financial numbers, and how those changes are approved.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;GDPR&lt;/strong&gt; applies whenever you process the personal data of people in
    the EU. For a release process the relevant duties are data minimisation (&lt;a
      href=&quot;https://gdpr-info.eu/art-5-gdpr/&quot;
      &gt;Article 5&lt;/a
    &gt;), data protection by design and by default (&lt;a
      href=&quot;https://gdpr-info.eu/art-25-gdpr/&quot;
      &gt;Article 25&lt;/a
    &gt;) and security of processing (&lt;a href=&quot;https://gdpr-info.eu/art-32-gdpr/&quot;
      &gt;Article 32&lt;/a
    &gt;).
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Neither names a tool. Both want a control, evidence it ran, and evidence it ran every
  time.
&lt;/p&gt;

&lt;h2&gt;Which parts of a Salesforce org are in scope?&lt;/h2&gt;
&lt;p&gt;
  Not all of it, and deciding early keeps the audit small. SOX scope follows the
  financial numbers:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    Objects and automation feeding revenue recognition, billing, quoting and
    forecasting: Opportunity, Order, Product, Price Book, CPQ or Revenue Cloud
    configuration, discount approval processes.
  &lt;/li&gt;
  &lt;li&gt;
    Anything that can change those values without a human in the loop: Flows, Apex
    triggers, validation rules, integration users.
  &lt;/li&gt;
  &lt;li&gt;
    Profiles, permission sets and permission set groups granting edit access to the
    above.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  GDPR scope has the opposite shape: it follows personal data wherever it lives, usually
  Contact, Lead, Case, Person Account, chat transcripts, and every sandbox copy.
&lt;/p&gt;
&lt;p&gt;
  Write the scope down before the audit. Answering that question for the first time in
  an audit meeting is how a review becomes a two-week fire drill.
&lt;/p&gt;

&lt;h2&gt;How do you enforce separation of duties without slowing releases down?&lt;/h2&gt;
&lt;p&gt;
  Separation of duties means the author of a change cannot be the person who promotes it
  to production. Change sets cannot enforce that: whoever can deploy can also build.
  Push the control into the pipeline:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Take deploy rights away from humans in production.&lt;/strong&gt; Only the
    pipeline&apos;s dedicated integration identity deploys. Modify All Data and Modify
    Metadata in production belong to that identity, not to developers or admins.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Make the pull request the control point.&lt;/strong&gt; Require at least one
    approving review from somebody other than the author, and disable self-approval in
    branch protection.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Split approval by environment.&lt;/strong&gt; A UAT promotion can be signed off by
    the tech lead. A production release also needs the business owner of the affected
    process.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Log the emergency path instead of banning it.&lt;/strong&gt; Break-glass
    deployments will happen. Define who may trigger one, require a retrospective work
    item within 24 hours, and record it as an exception. Auditors accept documented
    exceptions, not invisible ones.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;What change evidence will an auditor accept?&lt;/h2&gt;
&lt;p&gt;
  Auditors sample. They pick a few production changes and ask you to walk each from
  request to release. A pipeline answers with links, not screenshots:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;The work item, with the business reason and the requester.&lt;/li&gt;
  &lt;li&gt;The commits, showing exactly which metadata changed.&lt;/li&gt;
  &lt;li&gt;The pull request, with reviewer identity and timestamp.&lt;/li&gt;
  &lt;li&gt;
    The test evidence: Apex tests, coverage, static analysis or automated code review
    output.
  &lt;/li&gt;
  &lt;li&gt;
    The deployment record: target org, deploy ID, who triggered it, and the outcome.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Two properties make that evidence pass: it must be &lt;strong&gt;immutable&lt;/strong&gt;, and
  &lt;strong&gt;complete&lt;/strong&gt;, meaning no route to production skips it. A pipeline
  covering 90% of changes still fails, because the sample can land on the other 10%.
&lt;/p&gt;

&lt;h2&gt;How do you handle personal data in sandboxes without breaking GDPR?&lt;/h2&gt;
&lt;p&gt;
  A full sandbox refresh copies production personal data into an environment with looser
  access and more people in it. That is a processing activity, and it needs justifying
  like any other.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Seed, do not clone.&lt;/strong&gt; Pull a representative slice instead of the
    whole database. Less data means less exposure and a faster refresh.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Mask on arrival.&lt;/strong&gt; Anonymise or pseudonymise personal fields as part
    of the refresh, never as a follow-up task somebody remembers on Friday.
    &lt;a href=&quot;https://www.salesforce.com/platform/data-masking/&quot;&gt;Salesforce Data Mask&lt;/a&gt;
    covers the standard patterns, and Serpent can mask PII on data migrations and seeds.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Restrict sandbox access like production.&lt;/strong&gt; Same profiles, same
    offboarding. A partial sandbox with real email addresses and a permissive profile is
    the most common finding we see.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;How long do you have to keep the evidence?&lt;/h2&gt;
&lt;p&gt;
  Longer than Salesforce keeps it for you. Setup Audit Trail holds a rolling 180 days
  and can be downloaded as CSV. Field History Tracking retains roughly 18 months in the
  UI and 24 through the API, unless you licence
  &lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=xcloud.field_audit_trail.htm&amp;amp;type=5&quot;
    &gt;Field Audit Trail&lt;/a
  &gt;
  with Shield and set a retention policy. SOX cycles are annual and evidence is
  requested for the whole period, so the native windows are not enough.
&lt;/p&gt;
&lt;p&gt;
  Git plus your DevOps platform fixes this: repository history is permanent, and
  deployment records live outside the org.
&lt;/p&gt;

&lt;h2&gt;What does a compliant pipeline look like end to end?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    Every change starts as a work item with a business reason, and lands in version
    control.
  &lt;/li&gt;
  &lt;li&gt;Automated review and tests run on the pull request, before a human looks.&lt;/li&gt;
  &lt;li&gt;
    An approver who is not the author signs off, with a second approver at the
    production gate.
  &lt;/li&gt;
  &lt;li&gt;
    Only the pipeline identity deploys, and every deployment writes an immutable record.
  &lt;/li&gt;
  &lt;li&gt;
    Sandbox refreshes are seeded and masked by the same automation, and evidence exports
    on demand.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  None of this needs a separate compliance product. It needs the release process you
  already wanted, configured so the controls are the only path. Most Salesforce DevOps
  platforms support it, including Copado, Gearset, AutoRABIT, Flosum and Serpent. More
  guides live in our &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Does SOX apply to our whole Salesforce org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Scope follows financial reporting, so quoting, orders, billing and revenue objects
  plus the automation touching them. Document the boundary yourself, before the auditor
  draws it wider.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can we be SOX compliant using change sets?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  It is very hard. Change sets cannot separate the author from the deployer and leave no
  linked approval record, so you end up building a manual evidence layer beside them.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is a full sandbox with production data a GDPR breach?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not automatically, but it is a processing activity you must justify, minimise and
  secure. Seeding a subset and masking personal fields on refresh is the practical
  route.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Who should approve a production release?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Someone other than the author, plus the business owner of the affected process for
  anything in SOX scope. Record both approvals against the change.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a Salesforce Test Automation Pipeline in CI]]></title>
            <description><![CDATA[How to build a Salesforce CI pipeline that runs Apex and LWC tests on every commit: scratch org auth, deploy, test levels, and the traps to avoid.]]></description>
            <link>https://serpent.cloud/resources/How-to-Build-a-Salesforce-Test-Automation-Pipeline-in-CI</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Build-a-Salesforce-Test-Automation-Pipeline-in-CI</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong
    &gt;A Salesforce test automation pipeline runs your Apex and Lightning Web Component
    tests automatically on every commit, before code reaches production.&lt;/strong
  &gt;
  A working setup connects a git repository to a CI runner, spins up a scratch org or
  sandbox, deploys the metadata, runs the tests, and fails the build if coverage drops
  below the 75 percent Salesforce requires. This guide walks the whole pipeline, from
  first test level to the traps that slow teams down.
&lt;/p&gt;
&lt;h2&gt;What is Salesforce test automation in CI?&lt;/h2&gt;
&lt;p&gt;
  Continuous integration (CI) is the practice of validating every change as it lands,
  instead of at a release gate. For Salesforce, that means a pipeline that runs your
  automated tests on each push or pull request and blocks the merge if anything fails.
  The goal is shift-left testing: catch a broken trigger or a failing assertion in
  minutes on a branch, not in a release-night deploy to production.
&lt;/p&gt;
&lt;p&gt;
  Salesforce enforces a hard rule that makes this non-negotiable: before you can deploy
  Apex to production, your tests must pass and you must have at least
  &lt;strong&gt;75 percent&lt;/strong&gt; code coverage. CI is how you keep that green continuously
  instead of scrambling at deploy time.
&lt;/p&gt;
&lt;h2&gt;What should you test on every commit?&lt;/h2&gt;
&lt;p&gt;A useful Salesforce suite is layered. Aim to cover, fastest first:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Apex unit tests:&lt;/strong&gt; the backbone. Cover triggers, classes, and
    business logic with meaningful assertions, not just coverage padding.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;LWC Jest tests:&lt;/strong&gt; component logic for Lightning Web Components, run
    with &lt;code&gt;@salesforce/sfdx-lwc-jest&lt;/code&gt;. These are fast and run without an org.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Integration and smoke tests:&lt;/strong&gt; a thin layer that checks the critical
    end-to-end paths and third-party integrations after deploy.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Run Apex and Jest on every commit because they are fast, and reserve slower UI
  end-to-end checks for a nightly stage. Our guide on
  &lt;a
    href=&quot;/resources/Salesforce-test-automation-in-CI%3A-what-to-run-on-every-pull-request%2C-and-what-to-run-nightly&quot;
    &gt;what to run on every pull request and what to run nightly&lt;/a
  &gt;
  breaks that split down.
&lt;/p&gt;
&lt;h2&gt;How do you set up a CI pipeline for Salesforce tests?&lt;/h2&gt;
&lt;p&gt;
  The moving parts are the same whether you use GitHub Actions, GitLab CI, or Jenkins. A
  minimal pipeline does this on each pull request:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Authenticate&lt;/strong&gt; the Salesforce CLI to a Dev Hub, usually with a JWT
    auth flow and a stored certificate.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Create an environment:&lt;/strong&gt; spin up a scratch org (or target a dedicated
    CI sandbox).
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Deploy&lt;/strong&gt; the source with &lt;code&gt;sf project deploy start&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run tests&lt;/strong&gt; with
    &lt;code
      &gt;sf apex run test --test-level RunLocalTests --code-coverage --result-format
      human&lt;/code
    &gt;, and run &lt;code&gt;npm run test:unit&lt;/code&gt; for LWC Jest.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Gate&lt;/strong&gt; the build on the result, then delete the scratch org so
    nothing lingers.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Salesforce publishes an official walkthrough of
  &lt;a
    href=&quot;https://developer.salesforce.com/blogs/2020/01/using-salesforce-dx-with-github-actions&quot;
    &gt;Salesforce DX with GitHub Actions&lt;/a
  &gt;
  that maps cleanly onto these steps.
&lt;/p&gt;
&lt;h2&gt;Which Apex test level should CI use?&lt;/h2&gt;
&lt;p&gt;The test level controls how much runs and how long the build takes:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;code&gt;RunLocalTests&lt;/code&gt; runs every test in the org except those from installed
    managed packages, and is the safe default for a validation pipeline.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;RunSpecifiedTests&lt;/code&gt; runs only named classes, useful for fast branch
    feedback but risky as a production gate because it can miss coverage.
  &lt;/li&gt;
  &lt;li&gt;
    A newer &lt;code&gt;RunRelevantTests&lt;/code&gt; level shipped in beta in the Spring &apos;26
    release to shorten deploys by running only the tests affected by a change; treat it
    as beta until you have validated it against your suite.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  For the merge-blocking build, prefer &lt;code&gt;RunLocalTests&lt;/code&gt; so coverage is real.
  Use specified or relevant tests only for quick, non-gating feedback earlier in the
  branch.
&lt;/p&gt;
&lt;h2&gt;Where do teams get Salesforce CI wrong?&lt;/h2&gt;
&lt;p&gt;Three mistakes account for most stalled pipelines:&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;
    Chasing the 75 percent number instead of real assertions. Coverage without
    assertions passes the gate and still ships bugs.
  &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
  The other two are flaky test data and a suite that grows too slow to run on every
  commit. Fix the first by creating test data inside each test with a factory pattern
  and &lt;code&gt;@testSetup&lt;/code&gt;, never relying on org data. Fix the second by splitting
  fast unit tests from slow end-to-end tests, so feedback stays under a few minutes
  where it matters most. Tooling from the Salesforce DevOps category, including Copado,
  Gearset, Salto, AutoRABIT, Flosum, Blue Canvas, and Serpent, can wrap these steps in a managed pipeline if you would rather not hand-build the YAML. Serpent can run Apex tests, Jest unit tests, validations and AI code review on every pull request once you enable them.
&lt;/p&gt;
&lt;p&gt;
  For more Salesforce DevOps how-to guides, see our
  &lt;a href=&quot;/resources&quot;&gt;resources library&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;What code coverage does Salesforce require to deploy?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  At least 75 percent org-wide Apex coverage, and every test must pass. CI keeps this
  continuously green rather than discovering a shortfall at deploy time.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I need scratch orgs for Salesforce CI?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No, but they help. Scratch orgs give each build a clean, disposable environment. A
  dedicated CI sandbox works too if source tracking and reset are managed carefully.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do I test Lightning Web Components in CI?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Use the Jest-based &lt;code&gt;@salesforce/sfdx-lwc-jest&lt;/code&gt; runner. It runs component
  tests locally without an org, so it is fast enough to run on every commit.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which CI tool is best for Salesforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  GitHub Actions, GitLab CI, and Jenkins all work well with the Salesforce CLI. The
  runner matters less than a clean pipeline: authenticate, deploy, run tests, gate,
  clean up.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Second-Generation Packaging (2GP), Explained]]></title>
            <description><![CDATA[Salesforce 2GP explained: how it differs from 1GP, managed vs unlocked, and the CLI steps to build and promote a package.]]></description>
            <link>https://serpent.cloud/resources/Salesforce-Second-Generation-Packaging-(2GP)%2C-Explained</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Salesforce-Second-Generation-Packaging-(2GP)%2C-Explained</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; Second-generation packaging (2GP) is Salesforce&apos;s modern,
  source-driven way to build and distribute managed and unlocked packages from version
  control instead of a packaging org. It replaces first-generation packaging (1GP) with
  modular packages, flexible namespaces, explicit dependencies, and a Salesforce CLI
  workflow. Salesforce now recommends 2GP for all new managed package development.
&lt;/p&gt;
&lt;h2&gt;What is Salesforce second-generation packaging (2GP)?&lt;/h2&gt;
&lt;p&gt;
  A 2GP package is a container for the metadata, code, and schema you distribute as an
  app - to AppExchange customers (managed) or across your own org estate (unlocked). The
  defining idea is that the package is built from source in Git, not from a stateful
  packaging org. Salesforce is explicit that managed 2GP &quot;isn&apos;t merely version 2.0&quot; of
  1GP; it is a different, automation-friendly development model, and it is the
  recommended path for all new packages.
&lt;/p&gt;
&lt;h2&gt;How is 2GP different from first-generation packaging (1GP)?&lt;/h2&gt;
&lt;p&gt;
  The short version: 1GP lives in a packaging org, 2GP lives in your repository. That
  single change unlocks the rest:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Source-driven.&lt;/strong&gt; The package version is created from your project
    source, so Git is the source of truth.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Modular.&lt;/strong&gt; You can split functionality across multiple packages
    instead of one monolith.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Namespace flexibility.&lt;/strong&gt; The same namespace can be shared across
    several 2GP packages, though each package binds to one namespace that cannot change
    after creation.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Explicit dependencies.&lt;/strong&gt; Package dependencies are declared in
    &lt;code&gt;sfdx-project.json&lt;/code&gt;, not discovered at install time.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Version control and CI friendly.&lt;/strong&gt; The whole flow runs through the
    Salesforce CLI, so it drops into a pipeline.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Managed or unlocked: which 2GP do you need?&lt;/h2&gt;
&lt;p&gt;
  Both are second-generation packages built the same way. The choice is about audience:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Managed 2GP&lt;/strong&gt; - for ISVs distributing on AppExchange. Code is
    IP-protected and the package carries a registered namespace.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Unlocked packages&lt;/strong&gt; - for internal teams organizing an org&apos;s own
    metadata into deployable, versioned units. Code stays readable.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How do you create a 2GP package? (step by step)&lt;/h2&gt;
&lt;p&gt;
  You need a Dev Hub org with
  &lt;em&gt;Unlocked Packages and Second-Generation Managed Packages&lt;/em&gt; enabled, and the
  &lt;em&gt;Create and Update Second-Generation Packages&lt;/em&gt; permission. Then:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Create the package definition.&lt;/strong&gt;
    &lt;code
      &gt;sf package create --name MyApp --package-type Managed --path force-app
      --target-dev-hub DevHub&lt;/code
    &gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Create a version&lt;/strong&gt; from your source, with an installation key and
    code coverage.
    &lt;code
      &gt;sf package version create --package MyApp --installation-key test1234
      --code-coverage --wait 10 --target-dev-hub DevHub&lt;/code
    &gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Test the install&lt;/strong&gt; in a scratch or sandbox org.
    &lt;code&gt;sf package install --package 04t... --wait 10&lt;/code&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Promote to released&lt;/strong&gt; once it passes. Promotion requires meeting code
    coverage.
    &lt;code
      &gt;sf package version promote --package MyApp@1.0.0-1 --target-dev-hub DevHub&lt;/code
    &gt;
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  A promoted managed version is the one you submit to AppExchange security review before
  customers can install it.
&lt;/p&gt;
&lt;h2&gt;What are the common 2GP gotchas?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Namespace is permanent.&lt;/strong&gt; Pick it deliberately; a 2GP package cannot
    switch namespaces later.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Code coverage gates promotion.&lt;/strong&gt; You cannot promote a version to
    released without meeting Apex coverage requirements.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Dependencies must be explicit.&lt;/strong&gt; Undeclared dependencies fail at
    install, not at build.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Not every 1GP metadata type is supported.&lt;/strong&gt; Check coverage before
    migrating an old package.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Because the whole flow is CLI-first, it slots into a DevOps pipeline - the same place
  tools like Copado, Gearset, Salto, AutoRABIT, Flosum, Blue Canvas or Serpent orchestrate version control and testing. Serpent covers the full package cycle for ISVs, from scratch orgs through versioning and release. For more build-and-release playbooks, see our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Is 2GP replacing 1GP?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Salesforce recommends 2GP for all new managed packages, though existing 1GP packages
  still work and can be migrated.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I need a Dev Hub for 2GP?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Enable Dev Hub and second-generation packaging, and grant the create/update
  packages permission before you start.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can two 2GP packages share a namespace?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Several managed 2GP packages can use one namespace, but each package binds to a
  single namespace that cannot change after creation.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is the difference between managed and unlocked packages?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Managed 2GP is for AppExchange distribution with IP protection; unlocked packages
  organize your own org&apos;s metadata into versioned, deployable units.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Branching Strategies for Salesforce Teams: A Practical Guide]]></title>
            <description><![CDATA[Start with a feature-branch model, map long-lived branches to sandboxes, and choose by release cadence, not org chart. A practical Salesforce guide.]]></description>
            <link>https://serpent.cloud/resources/Git-Branching-Strategies-for-Salesforce-Teams%3A-A-Practical-Guide</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Git-Branching-Strategies-for-Salesforce-Teams%3A-A-Practical-Guide</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; most Salesforce teams should start with a
  feature-branch model, where &lt;code&gt;main&lt;/code&gt; always mirrors production and every
  change lives on its own short-lived branch. Add environment or release branches only
  when packaging, parallel release trains, or a large team force the issue. The
  Salesforce-specific part is not the Git graph, it is mapping each long-lived branch to
  a sandbox and handling metadata merge conflicts.
&lt;/p&gt;
&lt;p&gt;
  Branching strategy is where most Salesforce DevOps setups either click into place or
  collapse under their own weight. Copy a complex model you do not need and every
  developer pays a daily tax; pick one that fits your release rhythm and Git gets out of
  the way.
&lt;/p&gt;
&lt;h2&gt;What is a Git branching strategy, and why is Salesforce different?&lt;/h2&gt;
&lt;p&gt;
  A branching strategy is the set of rules for how your team creates, merges and
  promotes branches. On Salesforce it carries extra weight for three reasons: your
  source of truth is declarative metadata (XML) as well as Apex, your environments are
  orgs and sandboxes rather than servers, and you cannot compile the whole project
  locally, so validation happens against an org. That makes two questions unavoidable
  that other stacks can defer: which branch represents which sandbox, and how you
  resolve conflicts in files like profiles and flows that many people touch. Salesforce
  DevOps Center, now generally available, leans on this by treating GitHub or Bitbucket
  as the single source of truth.
&lt;/p&gt;
&lt;h2&gt;Which Git branching strategies do Salesforce teams actually use?&lt;/h2&gt;
&lt;p&gt;Four patterns cover almost every team:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Feature branch (GitHub Flow).&lt;/strong&gt; &lt;code&gt;main&lt;/code&gt; is always
    releasable; each change branches off &lt;code&gt;main&lt;/code&gt; and merges back through a
    pull request. Simplest to run, and the best default for most teams.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Branch per environment.&lt;/strong&gt; A long-lived branch per org
    (&lt;code&gt;dev&lt;/code&gt;, &lt;code&gt;uat&lt;/code&gt;, &lt;code&gt;main&lt;/code&gt;), promoted by merging
    upstream. Intuitive and easy to visualize, but prone to drift when a hotfix skips a
    stage.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Release branch.&lt;/strong&gt; A short-lived &lt;code&gt;release/x&lt;/code&gt; cut from
    &lt;code&gt;main&lt;/code&gt; to stabilize a version while new work continues. Useful when you
    batch changes into scheduled releases.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Gitflow.&lt;/strong&gt; Feature, develop, release and hotfix branches together.
    Powerful for parallel versions and ISV packaging, heavy for a single-production
    team.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How do you map branches to Salesforce sandboxes?&lt;/h2&gt;
&lt;p&gt;
  Pair each long-lived branch with a sandbox that matches its job, and let refresh
  limits guide the shape. Salesforce
  &lt;a
    href=&quot;https://www.salesforce.com/platform/sandboxes-environments/salesforce-sandbox-guide/&quot;
    &gt;refreshes Developer and Developer Pro sandboxes daily, Partial Copy every 5 days
    and Full every 29 days&lt;/a
  &gt;, so a Full sandbox used for final UAT cannot be your fast integration target. A
  common, low-friction mapping:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;code&gt;feature/*&lt;/code&gt; branches to Developer or Developer Pro sandboxes for
    building.
  &lt;/li&gt;
  &lt;li&gt;An integration branch to a Partial Copy sandbox for combined testing.&lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;main&lt;/code&gt; validated against a Full sandbox before it reaches production.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  The full mechanics are in
  &lt;a href=&quot;/resources/How-to-Map-Git-Branches-to-Salesforce-Sandboxes&quot;
    &gt;how to map Git branches to Salesforce sandboxes&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;How do you handle metadata merge conflicts?&lt;/h2&gt;
&lt;p&gt;
  This is where Salesforce branching actually hurts. Profiles, permission sets and flows
  are large XML files that many changes touch, so naive merges corrupt them. Keep
  branches short-lived so they diverge less, split profiles into permission sets, and
  use a Salesforce-aware merge driver that understands the XML instead of merging it
  line by line. We walk through that in
  &lt;a href=&quot;/resources/How-to-Set-Up-a-Salesforce-Aware-Git-Merge-Driver&quot;
    &gt;how to set up a Salesforce-aware Git merge driver&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;Which branching strategy should your team choose?&lt;/h2&gt;
&lt;p&gt;Match the model to your release cadence, not to an org chart:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;One production org, frequent releases:&lt;/strong&gt; feature branch off
    &lt;code&gt;main&lt;/code&gt;. Do not add more.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Scheduled releases with a freeze:&lt;/strong&gt; feature branches plus a release
    branch.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;ISV or multiple supported versions:&lt;/strong&gt; Gitflow, or a
    package-per-branch model.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  When two options look equally valid, pick the simpler one; you can always graduate
  later. Our
  &lt;a href=&quot;/resources/Git-branching-strategies-for-Salesforce-teams%3A-a-decision-rule&quot;
    &gt;decision rule for Git branching strategies&lt;/a
  &gt;
  turns this into a single question you can answer in a meeting. And because any model
  will eventually ship a bad change, pair it with a plan for
  &lt;a href=&quot;/resources/Rollback-Strategies-for-Failed-Salesforce-Deployments&quot;
    &gt;rolling back failed Salesforce deployments&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;Where does tooling fit in?&lt;/h2&gt;
&lt;p&gt;
  The strategy is Git; the tool automates the promotion along it. Platforms such as
  Copado, Gearset, AutoRABIT and Serpent each assume a branching model, so choosing your model
  first keeps you from being boxed into someone else&apos;s. If you are moving an existing
  branching setup onto a new pipeline, our &lt;a href=&quot;/migrate&quot;&gt;migration guide&lt;/a&gt; covers
  how to carry your branches across without a rewrite. For more Salesforce DevOps
  how-tos, browse our &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;What is the best Git branching strategy for Salesforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  For most teams, a feature-branch model with an always-releasable main branch. It is
  the simplest to run and scales until packaging or parallel releases force something
  more complex.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should each Salesforce sandbox have its own branch?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only long-lived branches should map to sandboxes. Short-lived feature branches share
  Developer sandboxes; reserve Partial Copy and Full sandboxes for integration and final
  validation.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is Gitflow a good fit for Salesforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Gitflow suits ISVs and teams maintaining several versions at once. For a single
  production org it usually adds more branches than the release cadence needs.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do I avoid profile merge conflicts?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Keep branches short-lived, prefer permission sets over profiles, and use a
  Salesforce-aware merge driver so XML merges by structure rather than by line.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Resolve Salesforce Metadata Conflicts During a Merge]]></title>
            <description><![CDATA[A step-by-step guide to resolving Salesforce metadata merge conflicts in profiles, permission sets, and XML, without losing anyone's work.]]></description>
            <link>https://serpent.cloud/resources/How-to-Resolve-Salesforce-Metadata-Conflicts-During-a-Merge</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Resolve-Salesforce-Metadata-Conflicts-During-a-Merge</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  To resolve a Salesforce metadata conflict during a merge, treat the file as XML nodes
  rather than lines: open the conflicted file, keep both sides&apos; independent changes,
  drop only the truly clashing edit, then validate the XML and deploy to a scratch org
  or sandbox before committing. Most Salesforce conflicts are false positives caused by
  XML ordering, not real disagreements, so the goal is to reconcile, not to pick a
  winner. Here is how to do it cleanly.
&lt;/p&gt;
&lt;h2&gt;What is a Salesforce metadata merge conflict?&lt;/h2&gt;
&lt;p&gt;
  A merge conflict happens when two Git branches change the same file and Git cannot
  decide which version wins, so it stops and hands the file back to you with conflict
  markers. On Salesforce that file is almost always declarative metadata stored as XML,
  a profile, permission set, flow, or layout. Git compares text line by line, and XML
  does not play nicely with that model.
&lt;/p&gt;
&lt;h2&gt;Why do Salesforce metadata conflicts happen so often?&lt;/h2&gt;
&lt;p&gt;
  Three properties of Salesforce metadata make conflicts far more frequent than in
  ordinary code:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;XML ordering is non-deterministic.&lt;/strong&gt; The Metadata API can return the
    same elements in a different order between retrievals, so Git flags a difference
    where nothing actually changed.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Big single files.&lt;/strong&gt; Profiles, permission sets, and layouts pack
    hundreds of unrelated settings into one file, so two people editing different
    objects still collide on adjacent lines.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Git sees lines, not keys.&lt;/strong&gt; It cannot tell that two edits target
    different XML nodes; it only sees overlapping text and raises a conflict.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  We go deeper on the root causes in
  &lt;a
    href=&quot;/blog/Metadata-Conflicts-in-Salesforce%3A-Why-They-Happen-and-How-to-Stop-Them&quot;
    &gt;why metadata conflicts happen and how to stop them&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;How do you resolve a metadata conflict during a merge, step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Read the markers.&lt;/strong&gt; Open the conflicted file and find
    &lt;code&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/code&gt;, &lt;code&gt;=======&lt;/code&gt;, and
    &lt;code&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/code&gt;. Everything above the divider is your
    branch; everything below is the incoming branch.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Identify the metadata type.&lt;/strong&gt; For a profile or permission set, work
    at the XML node level: each &lt;code&gt;&amp;lt;fieldPermissions&amp;gt;&lt;/code&gt; or
    &lt;code&gt;&amp;lt;objectPermissions&amp;gt;&lt;/code&gt; block is a unit, not the lines around it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep both independent changes.&lt;/strong&gt; If one side added a field permission
    and the other changed a different object, keep both nodes. Whoever merged first
    should not silently &quot;win&quot; the line, that is how real edits get lost.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Drop only the genuine clash.&lt;/strong&gt; When both sides edited the exact same
    node differently, that is the one human decision the tool cannot make. Choose the
    correct value deliberately.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate the XML.&lt;/strong&gt; Confirm the file is well-formed and that node
    keys are not duplicated, then remove every conflict marker.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploy and test before committing.&lt;/strong&gt; Push the resolved metadata to a
    scratch org or sandbox, run your tests, and only then commit and complete the merge.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  For the discipline of never losing a teammate&apos;s change, see
  &lt;a
    href=&quot;/resources/How-to-resolve-Salesforce-metadata-merge-conflicts-without-losing-anyone&apos;s-work&quot;
    &gt;how to resolve conflicts without losing anyone&apos;s work&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;How do you stop resolving the same conflicts by hand?&lt;/h2&gt;
&lt;p&gt;
  Manual line-by-line merges do not scale. The durable fix is a metadata-aware merge
  that understands XML structure. A Salesforce-aware Git merge driver compares files
  node by node, auto-merging anything that changed on only one side and flagging only
  the genuine clashes; we walk through the setup in
  &lt;a href=&quot;/resources/How-to-Set-Up-a-Salesforce-Aware-Git-Merge-Driver&quot;
    &gt;how to set up a Salesforce-aware Git merge driver&lt;/a
  &gt;. DevOps platforms take the same idea further: Gearset, Copado, Flosum, and Blue
  Canvas all ship semantic or smart-merge features that ignore non-functional XML
  ordering and surface only real conflicts. Serpent applies the same principle inside
  GitHub-native pipelines, so your team reviews decisions, not noise. Its AI conflict resolver reconciles the routine cases and escalates only what needs a human decision. Good source
  hygiene helps too, and
  &lt;a href=&quot;/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    &gt;managing Salesforce metadata&lt;/a
  &gt;
  covers the habits that prevent conflicts in the first place: short-lived branches,
  frequent merges, keeping environments in sync, and giving shared components like
  profiles a single owner. Browse the full
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt; for more, and compare tooling options on
  our &lt;a href=&quot;/pricing&quot;&gt;pricing&lt;/a&gt; page.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Why does Git flag conflicts when nothing really changed?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Because the Metadata API returns XML elements in non-deterministic order, so Git sees
  reordered lines as differences even when the actual settings are identical.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I just pick one side of the conflict?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only when both sides edited the exact same node. If the changes touch different nodes,
  picking one side silently deletes a teammate&apos;s real work.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should I resolve profile conflicts in the profile file?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Where possible, move object and field permissions into permission sets instead of
  profiles. Smaller, focused files collide far less often.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I need a special tool, or is plain Git enough?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Plain Git works for small teams, but a metadata-aware merge driver or a DevOps
  platform with semantic merge removes most manual work once more than a couple of
  developers share metadata.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Click Deploy Rollback: How to Undo a Salesforce Deployment]]></title>
            <description><![CDATA[Salesforce has no native undo for a click deploy. How rollback works, the step-by-step fix, and which tools snapshot your org before you deploy.]]></description>
            <link>https://serpent.cloud/resources/Click-Deploy-Rollback%3A-How-to-Undo-a-Salesforce-Deployment</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Click-Deploy-Rollback%3A-How-to-Undo-a-Salesforce-Deployment</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; A Salesforce click deploy has no native undo button. The
  Metadata API rolls back a deployment that fails, but once one succeeds, going back
  means redeploying the previous version, deleting what was added and restoring any data
  by hand. Take a snapshot before you click, or use a tool that takes one for you.
&lt;/p&gt;
&lt;h2&gt;What is a click deploy in Salesforce?&lt;/h2&gt;
&lt;p&gt;
  A click deploy moves metadata between orgs through a UI: you compare a source and a
  target, tick the changed components, validate and deploy, with no change set and no
  command line. The term comes from ClickDeploy, which Copado now sells as Copado
  Essentials; we cover the tool and its pricing in
  &lt;a
    href=&quot;/resources/Click-Deploy-in-Salesforce%3A-How-ClickDeploy-Works-and-What-It-Costs&quot;
    &gt;how ClickDeploy works and what it costs&lt;/a
  &gt;. Most guides stop at the deploy. This one covers what happens when you need to take
  it back.
&lt;/p&gt;
&lt;h2&gt;What happens when a click deploy fails?&lt;/h2&gt;
&lt;p&gt;
  In production, nothing changes. Salesforce only accepts all-or-none deployments there
  (the &lt;code&gt;rollbackOnError&lt;/code&gt; option must be true), so the Metadata API rolls the
  whole transaction back on error and the org stays as it was. The Salesforce CLI rolls
  back by default and lets you override that with &lt;code&gt;--ignore-errors&lt;/code&gt;, but its
  &lt;a
    href=&quot;https://github.com/salesforcecli/plugin-deploy-retrieve/blob/main/messages/deploy.metadata.md&quot;
    &gt;own reference&lt;/a
  &gt;
  says never to use it against production, because components with errors are skipped
  and the org can end up inconsistent. If a deploy fails, fix the cause and rerun it;
  our guide to
  &lt;a
    href=&quot;/resources/Click-Deploy-Errors%3A-Why-Salesforce-Deployments-Fail-and-How-to-Fix-Them&quot;
    &gt;click deploy errors&lt;/a
  &gt;
  walks through the usual culprits.
&lt;/p&gt;
&lt;h2&gt;Can you undo a successful click deploy?&lt;/h2&gt;
&lt;p&gt;
  Not natively. As
  &lt;a
    href=&quot;https://gearset.com/blog/rolling-back-unwanted-changes-in-a-salesforce-deployment/&quot;
    &gt;Gearset puts it&lt;/a
  &gt;, change sets cannot reverse a deployment and neither can DevOps Center, and change
  sets cannot make destructive changes either. A successful deploy is simply the new
  state of the org. To go back, you run a second deployment that restores the old state,
  and that only works if you kept a copy of it.
&lt;/p&gt;
&lt;p&gt;
  That makes the backup, not the rollback, the step that matters. If nobody captured the
  target components before the click, you are rebuilding them from memory.
&lt;/p&gt;
&lt;h2&gt;How do you roll back a click deploy, step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Decide: roll back or fix forward.&lt;/strong&gt; If the cause is obvious and the
    fix is small, shipping the fix keeps the rest of the release. Roll back when
    diagnosis will take too long or the change is actively causing harm.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Find the pre-deploy version.&lt;/strong&gt; Use the snapshot your tool took, or
    the last commit in Git that matches production. Without either, retrieve what you
    can from a sandbox that has not been refreshed since.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Build the rollback package.&lt;/strong&gt; Components the deploy
    &lt;em&gt;modified&lt;/em&gt; go back in at their previous version. Components the deploy
    &lt;em&gt;added&lt;/em&gt; go into a &lt;code&gt;destructiveChangesPost.xml&lt;/code&gt; manifest so they
    are deleted after the restore succeeds.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate first.&lt;/strong&gt; Run it as a check-only deployment (&lt;code
      &gt;--dry-run&lt;/code
    &gt;
    in the CLI) with the same Apex test level you would use for any production release.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploy and verify.&lt;/strong&gt; Deploy, then smoke-test the affected pages,
    flows and integrations. Record what was reverted and why.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Check the data.&lt;/strong&gt; A metadata rollback does not restore records.
    Handle data separately, as covered below.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Steps 2 and 3 are where most rollbacks go wrong, which is why the
  &lt;a
    href=&quot;/resources/Click-Deploy-Checklist%3A-How-to-Run-a-Safe-Point-and-Click-Salesforce-Deployment&quot;
    &gt;click deploy checklist&lt;/a
  &gt;
  makes a backup part of the pre-flight, not an afterthought.
&lt;/p&gt;
&lt;h2&gt;Which click deploy tools include rollback?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Copado Essentials:&lt;/strong&gt; choose &lt;em&gt;Deploy with backup&lt;/em&gt; and a
    Rollback button appears on the deployment record, per its
    &lt;a
      href=&quot;http://docs.essentials.copado.com/en/articles/6069300-rollback-and-backup-options-with-copado-essentials&quot;
      &gt;help center&lt;/a
    &gt;. CI job rollbacks require a Git repository as the source.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Gearset:&lt;/strong&gt; saves a snapshot of the target org&apos;s metadata before every
    deployment and supports full or partial rollback, according to its
    &lt;a
      href=&quot;https://docs.gearset.com/en/articles/618671-rolling-back-a-deployment-made-with-compare-and-deploy&quot;
      &gt;documentation&lt;/a
    &gt;.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  For AutoRABIT, Salto, Flosum, Blue Canvas and any other tool on your shortlist, ask the same two
  questions: is the backup automatic or opt-in, and can you roll back one component
  without reverting the whole release?
&lt;/p&gt;
&lt;h2&gt;What can a rollback not undo?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Data.&lt;/strong&gt; Deployment rollbacks are metadata only. Records changed by a
    new flow or trigger stay changed.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deleted fields, cleanly.&lt;/strong&gt; Salesforce keeps a deleted custom field
    for 15 days, but
    &lt;a href=&quot;https://www.salesforceben.com/how-to-restore-deleted-salesforce-fields/&quot;
      &gt;Salesforce Ben&lt;/a
    &gt;
    lists what undelete leaves for you to redo, such as required and unique settings and
    field history tracking.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;A purge.&lt;/strong&gt; Deleting with &lt;code&gt;--purge-on-delete&lt;/code&gt; skips the
    Recycle Bin, so there is nothing to restore.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The more reliable fix is a history you can replay. Deploying from a branch means every
  release was committed before it shipped, as shown in
  &lt;a
    href=&quot;/resources/Click-Deploy-from-Git%3A-How-to-Deploy-Salesforce-Changes-from-a-Branch&quot;
    &gt;click deploy from Git&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;How does Tekunda handle rollback?&lt;/h2&gt;
&lt;p&gt;
  Tekunda is the Salesforce consulting and product company behind Serpent, the DevOps
  platform it also runs on its own client delivery. Serpent keeps the click-to-select
  workflow while Git and pull requests run underneath, so every release has a version to
  return to. Rollback is one click, for a single component or a full release, and, on every paid plan, Backup &amp; Restore covers the data side. Teams on
  Copado can follow our &lt;a href=&quot;/migrate&quot;&gt;migration path&lt;/a&gt;, plans are on the
  &lt;a href=&quot;/pricing&quot;&gt;pricing page&lt;/a&gt;, and more guides live in the
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Does Salesforce have a rollback button for deployments?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Change sets and DevOps Center cannot reverse a deployment. You redeploy the
  previous version or use a tool that snapshots the org first.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does a failed click deploy change anything?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not in production, where Salesforce requires all-or-none deployments. The Salesforce
  CLI also rolls back on error unless you pass &lt;code&gt;--ignore-errors&lt;/code&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I roll back data with a deployment rollback?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not with Salesforce&apos;s own tools. A metadata rollback restores metadata only, so records need a separate data backup and restore, which Serpent&apos;s Backup &amp; Restore (Scale and above) covers.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How long can I restore a deleted custom field?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  For 15 days, unless it was erased or purged. Some attributes must then be restored by
  hand.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Write a Sandbox Refresh Runbook Your Team Will Follow]]></title>
            <description><![CDATA[Write a Salesforce sandbox refresh runbook people actually use: an owner, a timing and a done-check per step, plus what to automate first.]]></description>
            <link>https://serpent.cloud/resources/How-to-Write-a-Sandbox-Refresh-Runbook-Your-Team-Will-Follow</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Write-a-Sandbox-Refresh-Runbook-Your-Team-Will-Follow</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong
    &gt;A sandbox refresh runbook your team will follow is short, lives next to your code,
    and gives every step an owner, a time estimate and a check that proves it is
    done.&lt;/strong
  &gt;
  Most refresh docs fail because they are long wiki pages nobody owns. Write yours as a
  four-phase checklist, automate the steps people skip, and rehearse it once before you
  rely on it.
&lt;/p&gt;
&lt;h2&gt;What is a sandbox refresh runbook?&lt;/h2&gt;
&lt;p&gt;
  A sandbox refresh runbook is the step-by-step procedure your team runs every time a
  Salesforce sandbox is refreshed from production: what to save before, what to restore
  after, who does each step and how you know it worked. It is not your sandbox strategy,
  which decides which sandboxes exist and why. The runbook is the part people execute on
  refresh morning.
&lt;/p&gt;
&lt;h2&gt;Why do teams ignore refresh runbooks?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;No owner per step.&lt;/strong&gt; When the team restores the integrations, nobody
    does.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No definition of done.&lt;/strong&gt; Reconfigure integrations cannot be checked.
    A test callout through the named credential returns 200 can.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;It lives in the wrong place.&lt;/strong&gt; A wiki page drifts away from the org.
    A Markdown file in the repo gets reviewed when the org changes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Too many manual steps.&lt;/strong&gt; Every manual step is one someone will skip
    under time pressure.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How often can you refresh each sandbox type?&lt;/h2&gt;
&lt;p&gt;
  Salesforce caps your cadence, so put the limits at the top of the runbook. According
  to
  &lt;a href=&quot;https://www.salesforceben.com/salesforce-sandbox/&quot;
    &gt;Salesforce Ben&apos;s sandbox guide&lt;/a
  &gt;:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Developer and Developer Pro:&lt;/strong&gt; once per day, metadata only.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Partial Copy:&lt;/strong&gt; every five days, metadata plus a portion of your
    data.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Full:&lt;/strong&gt; every 29 days, all production metadata and data.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  A botched Full refresh can cost you a month, so that runbook deserves the most rigor.
&lt;/p&gt;
&lt;h2&gt;What goes in each phase of the runbook?&lt;/h2&gt;
&lt;p&gt;
  Write every step in the same format:
  &lt;code&gt;step | owner | automated? | minutes | done when&lt;/code&gt;. Then group the steps
  into four phases.
&lt;/p&gt;
&lt;h3&gt;1. Before the refresh&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    Announce the window to developers, QA and business testers, and get an
    acknowledgement.
  &lt;/li&gt;
  &lt;li&gt;
    Commit or deploy every in-flight change to version control. A refresh overwrites the
    sandbox, and anything not in Git is gone.
  &lt;/li&gt;
  &lt;li&gt;
    Export configuration stored as data, such as the settings records some AppExchange
    packages keep outside metadata.
  &lt;/li&gt;
  &lt;li&gt;
    List the integration endpoints, named credentials and connected apps you will need
    to repoint.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;2. During the refresh&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Confirm production is stable, not halfway through a release.&lt;/li&gt;
  &lt;li&gt;
    Specify your post-copy Apex class when you start the refresh, so automation runs
    without anyone remembering it.
  &lt;/li&gt;
  &lt;li&gt;Record the start time and who triggered it.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;3. After the refresh&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    Keep email deliverability on System email only, the default for new and refreshed
    sandboxes according to
    &lt;a
      href=&quot;https://www.apexhours.com/understanding-email-deliverability-settings-in-salesforce/&quot;
      &gt;Apex Hours&lt;/a
    &gt;, until data is masked.
  &lt;/li&gt;
  &lt;li&gt;
    Remove the &lt;code&gt;.invalid&lt;/code&gt; suffix only for users who need sandbox email.
    Salesforce appends it to user email addresses on every refresh or clone, as its
    &lt;a
      href=&quot;https://help.salesforce.com/s/articleView?id=000386507&amp;amp;language=en_US&amp;amp;type=1&quot;
      &gt;help article&lt;/a
    &gt;
    explains.
  &lt;/li&gt;
  &lt;li&gt;Mask or delete personal data before you widen access.&lt;/li&gt;
  &lt;li&gt;Repoint integrations to their sandbox endpoints and re-authenticate.&lt;/li&gt;
  &lt;li&gt;
    Redeploy work that is ahead of production from version control, then reload test
    data.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;4. Validate and hand over&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    Run a smoke test: log in as a tester, run one key flow, make one test callout.
  &lt;/li&gt;
  &lt;li&gt;Run your Apex tests, or at least the subset that covers your integrations.&lt;/li&gt;
  &lt;li&gt;
    Post a sandbox-ready message with known issues, and fix anything that broke in the
    runbook itself.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Which refresh steps should you automate first?&lt;/h2&gt;
&lt;p&gt;
  Automate the steps that are frequent, error-prone and boring. Salesforce&apos;s
  &lt;code&gt;SandboxPostCopy&lt;/code&gt; interface lets you write an Apex class that runs
  automatically when the sandbox is created, and
  &lt;a
    href=&quot;https://www.salto.io/blog-posts/best-practices-to-refresh-your-salesforce-sandbox&quot;
    &gt;Salto&apos;s refresh best practices&lt;/a
  &gt;
  list masking email addresses and updating custom settings and custom metadata as
  typical uses. Good first candidates:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Masking personal data on contacts and leads.&lt;/li&gt;
  &lt;li&gt;Resetting custom settings and endpoint configuration to sandbox values.&lt;/li&gt;
  &lt;li&gt;Restoring email for the small group of users who need it.&lt;/li&gt;
  &lt;li&gt;
    Reloading baseline test data. Our guide on
    &lt;a href=&quot;/resources/How-to-seed-a-Salesforce-sandbox-with-realistic-data&quot;
      &gt;how to seed a Salesforce sandbox with realistic data&lt;/a
    &gt;
    covers the options.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Keep the class idempotent and log what it changed, so a failed run can be repeated
  safely.
&lt;/p&gt;
&lt;h2&gt;How does the runbook fit into your release pipeline?&lt;/h2&gt;
&lt;p&gt;
  A refresh resets a sandbox to production, so anything between that sandbox and
  production disappears unless your pipeline puts it back. Two habits stop the loss.
  First, treat Git as the source of truth, so work in progress is redeployed, not
  rebuilt. Second, set up
  &lt;a href=&quot;/resources/How-to-Set-Up-Back-Promotion-in-a-Salesforce-DevOps-Pipeline&quot;
    &gt;back-promotion in your Salesforce DevOps pipeline&lt;/a
  &gt;
  so production hotfixes flow down to lower environments between refreshes. After the
  refresh, run the same checks you run on every pull request. Our guide to
  &lt;a
    href=&quot;/resources/Salesforce-test-automation-in-CI%3A-what-to-run-on-every-pull-request%2C-and-what-to-run-nightly&quot;
    &gt;Salesforce test automation in CI&lt;/a
  &gt;
  splits what to run per pull request from what to run nightly.
&lt;/p&gt;
&lt;p&gt;
  If redeploying after every refresh is still a manual afternoon, a DevOps platform
  takes most of it off your plate. Serpent&apos;s free Essentials plan includes delta
  deployments and one-click rollback; compare plans on
  &lt;a href=&quot;/pricing&quot;&gt;Serpent pricing&lt;/a&gt;. Serpent also seeds data as a pipeline step and can mask it.
&lt;/p&gt;
&lt;h2&gt;How do you get the team to actually follow it?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Keep each phase to one screen and link out for detail.&lt;/li&gt;
  &lt;li&gt;Store the runbook in the repo and review changes to it like code.&lt;/li&gt;
  &lt;li&gt;
    Rehearse on a Developer sandbox, which you can refresh daily, before the next Full
    refresh.
  &lt;/li&gt;
  &lt;li&gt;
    Update it the same day something breaks. A runbook that is wrong once gets ignored
    for good.
  &lt;/li&gt;
  &lt;li&gt;Name a backup owner for every step.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  For more practical guides like this one, browse the
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How long should a sandbox refresh runbook be?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Short enough to fit one screen per phase. Keep the runbook as the checklist and put
  the detail in linked docs.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is SandboxPostCopy used for?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  It is an Apex interface for a class that runs automatically when a sandbox is created,
  typically to mask data and reset settings.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why do user emails end in .invalid after a refresh?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Salesforce appends .invalid so production users do not get email from the sandbox.
  Remove it only for users who need sandbox email.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How often can you refresh a Full sandbox?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Once every 29 days. Partial Copy sandboxes can be refreshed every five days and
  Developer sandboxes daily.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Salesforce DevOps: Tools, Examples, and Best Practices]]></title>
            <description><![CDATA[Master the Salesforce DevOps process with top tools and best practices. Explore CI/CD, version control, and automation for faster, reliable releases.]]></description>
            <link>https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices</guid>
            <dc:creator><![CDATA[Tekunda Team]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;div
  id=&quot;blog-details&quot;
  class=&quot;blog-details latest-blog-area wow fadeIn&quot;
  data-wow-duration=&quot;2s&quot;
  data-wow-delay=&quot;0.2s&quot;
&gt;
  &lt;div class=&quot;container&quot;&gt;
    &lt;div class=&quot;row&quot;&gt;
      &lt;div class=&quot;col-md-10&quot;&gt;
        &lt;div
          class=&quot;single-blog-box wow fadeInUp&quot;
          data-wow-duration=&quot;2s&quot;
          data-wow-delay=&quot;.50s&quot;
        &gt;
          &lt;div id=&quot;post-body&quot; class=&quot;blog-box-content&quot;&gt;
            &lt;section
              style=&quot;
                border: 2px solid #0ea5e9;
                border-radius: 12px;
                padding: 20px;
                margin: 28px 0;
                background: #e0f2fe;
              &quot;
              aria-label=&quot;State of Salesforce DevOps&quot;
            &gt;
              &lt;h3 style=&quot;margin-top: 0&quot;&gt;State of Salesforce DevOps&lt;/h3&gt;
              &lt;div
                style=&quot;
                  display: flex;
                  gap: 24px;
                  flex-wrap: wrap;
                  justify-content: center;
                  text-align: center;
                &quot;
              &gt;
                &lt;div style=&quot;min-width: 140px&quot;&gt;
                  &lt;div style=&quot;font-size: 32px; font-weight: 700; color: #1b9c9e&quot;&gt;
                    42%
                  &lt;/div&gt;
                  &lt;div&gt;of admins still deploy with change sets&lt;/div&gt;
                &lt;/div&gt;
                &lt;div style=&quot;min-width: 140px&quot;&gt;
                  &lt;div style=&quot;font-size: 32px; font-weight: 700; color: #1b9c9e&quot;&gt;
                    19%
                  &lt;/div&gt;
                  &lt;div&gt;of developers still deploy with change sets&lt;/div&gt;
                &lt;/div&gt;
                &lt;div style=&quot;min-width: 140px&quot;&gt;
                  &lt;div style=&quot;font-size: 32px; font-weight: 700; color: #1b9c9e&quot;&gt;
                    80%
                  &lt;/div&gt;
                  &lt;div&gt;of teams report low confidence in their deployments&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
              &lt;p style=&quot;margin-bottom: 0; font-size: 14px; text-align: center&quot;&gt;
                Source:
                &lt;a href=&quot;https://www.salesforceben.com&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
                  &gt;Salesforce Ben&lt;/a
                &gt;
              &lt;/p&gt;
            &lt;/section&gt;
            &lt;h2 id=&quot;section_1&quot;&gt;What Is DevOps?&lt;/h2&gt;
            &lt;p&gt;
              DevOps enables organisations to develop and enhance their products more
              rapidly compared to other software development methodologies. Continuous
              Integration (CI) is a key practice in DevOps software development. It
              includes the building and unit testing phases of releasing software. Each
              committed revision initiates an automatic build and test, allowing for
              early identification and resolution of issues before releasing updates to
              customers.
            &lt;/p&gt;
            &lt;h2 id=&quot;section_2&quot;&gt;What Is Salesforce DevOps?&lt;/h2&gt;
            &lt;p&gt;
              Salesforce DevOps is the same as actual DevOps while focusing on
              Salesforce at scale. This approach helps development teams detect
              problems, identify bugs, and fix them before releasing changes to their
              customers. DevOps = automated, more regular releases.
            &lt;/p&gt;
            &lt;p&gt;
              Salesforce has several tools for deploying applications. These include
              &lt;a
                href=&quot;/resources/From-Change-Sets-to-Source-Control%3A-The-Shift-You-Can%E2%80%99t-Ignore-Anymore&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;change sets&lt;/a
              &gt;, Workbench, SalesforceDX, DevOps Center, and Force.com migration tool,
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;CI/CD Pipeline&lt;/a
              &gt;, and 3rd part AppExchange tools. Learn about Salesforce
              &lt;a
                href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;Development and Deployment Process&lt;/a
              &gt;.
            &lt;/p&gt;
            &lt;h2 id=&quot;section_2_1&quot;&gt;&lt;strong&gt;Benefit of DevOps tools&lt;/strong&gt;&lt;/h2&gt;
            &lt;p&gt;
              Here are some benefits of
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;DevOps tools&lt;/a
              &gt;.
            &lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;Shorter Development Cycles, Faster Innovation&lt;/li&gt;
              &lt;li&gt;Reduced Deployment Failures, Rollbacks, and Time to Recover&lt;/li&gt;
              &lt;li&gt;Improved Communication and Collaboration&lt;/li&gt;
              &lt;li&gt;Increased Efficiencies&lt;/li&gt;
            &lt;/ul&gt;
            &lt;h2 id=&quot;section_3&quot;&gt;
              &lt;a
                href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
                &gt;Pillars of a Successful Salesforce DevOps&lt;/a
              &gt;
            &lt;/h2&gt;
            &lt;p&gt;
              &lt;strong&gt;DevOps is a journey&lt;/strong&gt; that starts with small steps. Make
              sure the whole team is on onboard and up to speed. Layer on complexity
              when your team and process is ready. There are pillars of a successful
              DevOps process.
            &lt;/p&gt;
            &lt;h4 id=&quot;section_3_1&quot;&gt;
              1.&amp;nbsp;&lt;strong
                &gt;&lt;a
                  href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
                  target=&quot;_blank&quot;
                  rel=&quot;noopener&quot;
                  &gt;Version Control&lt;/a
                &gt;&lt;/strong
              &gt;
            &lt;/h4&gt;
            &lt;p&gt;
              &lt;a
                href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;Version control &lt;/a
              &gt;is the new&amp;nbsp;&lt;strong
                &gt;single source of truth. &amp;nbsp;Version Control Systems (VCS) help you
                track changes. They also create strong security for your important code
                and data.&lt;/strong
              &gt;
            &lt;/p&gt;
            &lt;h4 id=&quot;section_3_2&quot;&gt;
              2.&amp;nbsp;&lt;strong
                &gt;&lt;a
                  href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                  target=&quot;_blank&quot;
                  rel=&quot;noopener&quot;
                  &gt;CI/CD Pipeline&lt;/a
                &gt;&lt;/strong
              &gt;
            &lt;/h4&gt;
            &lt;p&gt;
              CI/CD is&amp;nbsp;&lt;strong&gt;not&lt;/strong&gt; just for deploying changes. It&apos;s more
              than that; it allows you to validate the build, run
              &lt;a
                href=&quot;https://serpent.cloud/blog/The-Future-of-DevOps-in-Salesforce%3A-Trends-to-Watch-in-2024&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;automation testing&lt;/a
              &gt;, and help you in code backup. CI/CD ensures reliable and smoother
              deployments and a lower code coverage failure rate.
            &lt;/p&gt;
            &lt;h4 id=&quot;section_3_3&quot;&gt;
              3.&amp;nbsp;&lt;strong
                &gt;&lt;a
                  href=&quot;https://serpent.cloud/blog/The-Future-of-DevOps-in-Salesforce%3A-Trends-to-Watch-in-2024&quot;
                  target=&quot;_blank&quot;
                  rel=&quot;noopener&quot;
                  &gt;Automation Testing&lt;/a
                &gt;&lt;/strong
              &gt;
            &lt;/h4&gt;
            &lt;p&gt;
              A good DevOps tool runs automation tests on every pull request and before
              each release. This helps ensure you never merge or release changes that
              are buggy or not tested.
            &lt;/p&gt;
            &lt;h4 id=&quot;section_3_4&quot;&gt;4.&amp;nbsp;&lt;strong&gt;Backup&lt;/strong&gt;&lt;/h4&gt;
            &lt;p&gt;
              Protect yourself from malicious attacks, Salesforce bugs, accidental
              deletions, etc. Having the peace of mind that you can always roll back.
            &lt;/p&gt;
            &lt;h4 id=&quot;section_3_5&quot;&gt;5.&amp;nbsp;&lt;strong&gt;Code Scanning&lt;/strong&gt;&lt;/h4&gt;
            &lt;p&gt;
              Code scanning tools help automate parts of the manual process of&amp;nbsp;code
              review&amp;nbsp;in Salesforce. You can use Static Code Analyser tools to
              achieve the same results.
            &lt;/p&gt;
            &lt;p&gt;
              &lt;a
                href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;&lt;u&gt;Learn more about DevOps&apos; 5 pillars.&lt;/u&gt;&lt;/a
              &gt;
            &lt;/p&gt;
            &lt;p&gt;
              &lt;img
                src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/salesforce-devops-salesforce-devops-body.webp?width=453&amp;amp;height=373&quot;
                alt=&quot;Salesforce Dev Ops Tools&quot;
              /&gt;
            &lt;/p&gt;
            &lt;h2 id=&quot;section_4&quot;&gt;&lt;strong&gt;Let&amp;rsquo;s Understand The CI/CD&lt;/strong&gt;&lt;/h2&gt;
            &lt;p&gt;Let&amp;rsquo;s understand the difference term of CI/CD&lt;/p&gt;
            &lt;h4 id=&quot;section_4_1&quot;&gt;1.&amp;nbsp;&lt;strong&gt;Continuous Integration&lt;/strong&gt;&lt;/h4&gt;
            &lt;p&gt;
              Using continuous integration, a product includes and combines every code
              change with each commit from all developers. An automated build then
              verifies each check-in, letting teams detect issues early.
            &lt;/p&gt;
            &lt;h4 id=&quot;section_4_2&quot;&gt;2.&amp;nbsp;&lt;strong&gt;Continuous Delivery&lt;/strong&gt;&lt;/h4&gt;
            &lt;p&gt;
              Continuous delivery makes sure that code is quickly and safely deployed to
              production. This is done by manually pushing each change to a similar
              environment. When a new release candidate is created all modifications are
              automatically delivered to a staging environment. After extensive testing
              and when the time is right, you can deploy the application to production
              with a push of a button.
            &lt;/p&gt;
            &lt;h4 id=&quot;section_4_3&quot;&gt;3.&amp;nbsp;&lt;strong&gt;Continuous Deployment&lt;/strong&gt;&lt;/h4&gt;
            &lt;p&gt;
              Continuous deployment is the next step of continuous delivery. Using
              continuous deployment, each modification that passes the automated tests
              is deployed to production automatically. Most firms that aren&amp;rsquo;t
              bound by regulatory or other constraints should have a goal of continuous
              deployment
            &lt;/p&gt;
            &lt;h2 id=&quot;section_5&quot;&gt;
              &lt;img
                src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/salesforce-devops-salesforce-devops-body-2.webp?width=668&amp;amp;height=290&quot;
                alt=&quot;Salesforce Dev Ops Ci CD&quot;
              /&gt;
            &lt;/h2&gt;
            &lt;h2 id=&quot;section_6&quot;&gt;
              Salesforce
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;DevOps Tools&lt;/a
              &gt;
            &lt;/h2&gt;
            &lt;p&gt;
              There are different
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;DevOps Tools&lt;/a
              &gt;
              are available. Which can be divided into the below category.
            &lt;/p&gt;
            &lt;h4 id=&quot;section_6_1&quot;&gt;&lt;strong&gt;1.&amp;nbsp;Custom Build&lt;/strong&gt;&lt;/h4&gt;
            &lt;p&gt;
              You can build your own tool using different CI/CD platforms. Like below:
            &lt;/p&gt;
            &lt;ol&gt;
              &lt;li&gt;
                &lt;strong&gt;Jenkins&lt;/strong&gt;: Jenkins is an open-source continuous
                integration software. It is written using the Java programming language.
                It facilitates real-time testing and reporting on isolated changes in a
                more massive codebase.
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;CumulusCI&lt;/strong&gt;: CumulusCI makes it easy for developers,
                admins, and testers to do their work and collaborate in
                &lt;a
                  href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
                  target=&quot;_blank&quot;
                  rel=&quot;noopener&quot;
                  &gt;version control.&lt;/a
                &gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Azure DevOps&lt;/strong&gt;:&amp;nbsp;Azure DevOps is a fully integrated
                set of services that provide you with all the tools necessary for
                building and maintaining a backlog, hosting your source code
                repositories, implementing continuous integration, along with delivery
                and testing workflows for your products before releasing them
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;GitHub Actions:&amp;nbsp;&lt;/strong&gt;GitHub Actions makes it easy to
                automate all your software workflows, now with world-class CI/CD. Build,
                test, and deploy your code right from GitHub. See our
                &lt;a
                  href=&quot;/resources/how-to-build-a-salesforce-ci-cd-pipeline-using-github-actions&quot;
                  target=&quot;_blank&quot;
                  rel=&quot;noopener&quot;
                  &gt;step-by-step guide to building a Salesforce CI/CD pipeline with
                  GitHub Actions&lt;/a
                &gt;.
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;GitLab pipelines&lt;/strong&gt;: Similar to GitHub Actions, if you
                prefer GitLab over GitHub. It&amp;rsquo;s a no-brainer that you&amp;rsquo;ll be
                more comfortable with the platform&amp;rsquo;s interface and familiar with
                its features and workflows.
              &lt;/li&gt;
            &lt;/ol&gt;
            &lt;h4 id=&quot;section_6_2&quot;&gt;&lt;strong&gt;2.&amp;nbsp;Automated Platforms&lt;/strong&gt;&lt;/h4&gt;
            &lt;p&gt;
              Those
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;DevOps tools&lt;/a
              &gt;
              are well integrated with Salesforce.
            &lt;/p&gt;
            &lt;ol&gt;
              &lt;li&gt;
                &lt;span class=&quot;s1&quot;
                  &gt;&lt;strong
                    &gt;&lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
                      &gt;Serpent&lt;/a
                    &gt;:&lt;/strong
                  &gt;&lt;/span
                &gt;&amp;nbsp;the only Salesforce DevOps platform built around
                &lt;em&gt;your&lt;/em&gt; development workflow - giving your team everything they
                need to build, test, and ship in one place. &lt;br /&gt;No change sets. No
                CLI. No Git required. Just effortless deployments, smart automation, and
                full visibility from sandbox to production. Data moves between orgs with PII
                masking built in.&amp;nbsp;&lt;span
                  style=&quot;text-decoration: underline&quot;
                  &gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span
                &gt;&lt;strong
                  &gt;&lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
                    &gt;Try the free demo workspace today and experience how simple
                    Salesforce DevOps can be.&lt;/a
                  &gt;&lt;/strong
                &gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Gearset:&amp;nbsp;&lt;/strong&gt;is a significant improvement from using
                Salesforce change sets. Due to the many limitations with deploying
                specific metadata types between sandbox testing environments and
                production, prices start around $200 per user.
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Copado:&amp;nbsp;&lt;/strong&gt;A solid deployment tool. The query option
                for deployments is very helpful when moving Salesforce Data, prices
                start at 250$ per developer.
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;AutoRabit:&amp;nbsp;&lt;/strong&gt;Release automation aimed at regulated
                enterprises, bundling static code analysis and org backup into the same
                suite. See how
                &lt;a href=&quot;/compare/autorabit&quot;&gt;Serpent compares to AutoRabit&lt;/a&gt;.
              &lt;/li&gt;
            &lt;/ol&gt;
            &lt;p&gt;&amp;nbsp;&lt;/p&gt;
            &lt;h2&gt;Use Case: ISV Team Releasing a 2GP Managed Package&lt;/h2&gt;
            &lt;h3&gt;🚨 The Problem&lt;/h3&gt;
            &lt;p&gt;
              Releasing a managed package is a high-stakes, multi-step process. Even
              small changes require careful metadata handling, scratch org validation,
              Git coordination, and version promotion. You&amp;rsquo;re dealing with:
            &lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;Multiple contributors&lt;/li&gt;
              &lt;li&gt;
                Complex
                &lt;a
                  href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                  target=&quot;_blank&quot;
                  rel=&quot;noopener&quot;
                  &gt;CI/CD pipelines&lt;/a
                &gt;
              &lt;/li&gt;
              &lt;li&gt;Packaging orgs&lt;/li&gt;
              &lt;li&gt;Sandboxes for pre-release testing&lt;/li&gt;
              &lt;li&gt;And zero margin for error in production&lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;
              Most
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;DevOps tools&lt;/a
              &gt;
              assume deep CLI knowledge, force you into YAML scripts, or break down when
              metadata gets tricky - leaving developers firefighting and non-technical
              team members completely out of the loop.
            &lt;/p&gt;
            &lt;h3&gt;&amp;lt;\&amp;gt; Standard CLI Workflow&lt;/h3&gt;
            &lt;p&gt;To release a new version of your managed package via CLI:&lt;/p&gt;
            &lt;ol&gt;
              &lt;li&gt;
                Pull your feature branch
                &lt;pre&gt;&lt;code&gt;git checkout feature/new-feature&lt;/code&gt;&lt;/pre&gt;
              &lt;/li&gt;
              &lt;li&gt;
                Create scratch org
                &lt;pre&gt;&lt;code&gt;sfdx force:org:create -s -f config/project-scratch-def.json -a feature-org&lt;/code&gt;&lt;/pre&gt;
              &lt;/li&gt;
              &lt;li&gt;
                Push source to org
                &lt;pre&gt;&lt;code&gt;sfdx force:source:push -u feature-org&lt;/code&gt;&lt;/pre&gt;
              &lt;/li&gt;
              &lt;li&gt;
                Run tests
                &lt;pre&gt;&lt;code&gt;sfdx force:apex:test:run -u feature-org --wait 10&lt;/code&gt;&lt;/pre&gt;
              &lt;/li&gt;
              &lt;li&gt;
                Merge into packaging branch and create version
                &lt;pre&gt;&lt;code&gt;sfdx force:package:version:create -p MyPackage -d force-app -k test1234 -v PackagingOrg&lt;/code&gt;&lt;/pre&gt;
              &lt;/li&gt;
              &lt;li&gt;
                Promote version
                &lt;pre&gt;&lt;code&gt;sfdx force:package:version:promote -p 04tXXXX&lt;/code&gt;&lt;/pre&gt;
              &lt;/li&gt;
              &lt;li&gt;
                Deploy to a sandbox
                &lt;pre&gt;&lt;code&gt;sfdx force:package:install -p 04tXXXX -u Sandbox --wait 10&lt;/code&gt;&lt;/pre&gt;
              &lt;/li&gt;
              &lt;li&gt;
                Deploy to production
                &lt;pre&gt;&lt;code&gt;sfdx force:package:install -p 04tXXXX -u Production --wait 10&lt;/code&gt;&lt;/pre&gt;
              &lt;/li&gt;
            &lt;/ol&gt;
            &lt;h3&gt;😵 Pain Points&lt;/h3&gt;
            &lt;ul&gt;
              &lt;li&gt;Everything depends on CLI and Git fluency&lt;/li&gt;
              &lt;li&gt;Each step is manual and error- -prone&lt;/li&gt;
              &lt;li&gt;Scratch orgs must be created, linked, and tested by hand&lt;/li&gt;
              &lt;li&gt;CI scripts often break with edge-case metadata&lt;/li&gt;
              &lt;li&gt;Testers and product owners are left out of the process&lt;/li&gt;
              &lt;li&gt;Hard to track what&amp;rsquo;s been deployed, tested, or approved&lt;/li&gt;
              &lt;li&gt;No visual timeline or rollback safety net&lt;/li&gt;
              &lt;li&gt;Zero consistency across projects and team members&lt;/li&gt;
            &lt;/ul&gt;
            &lt;h3&gt;
              ✅ How
              &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;
              Solves This
            &lt;/h3&gt;
            &lt;h4&gt;1. One-Click Packaging&lt;/h4&gt;
            &lt;ul&gt;
              &lt;li&gt;
                Click &amp;ldquo;Create Release&amp;rdquo; &amp;rarr;
                &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
                  &gt;Serpent&lt;/a
                &gt;
                handles Git merge, metadata validation, and CLI packaging commands
                behind the scenes
              &lt;/li&gt;
              &lt;li&gt;
                The newly created version is installed on an easily accessible scratch
                org so it can be tested immediately
              &lt;/li&gt;
              &lt;li&gt;
                Click &amp;ldquo;Promote&amp;rdquo; &amp;rarr;
                &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
                  &gt;Serpent&lt;/a
                &gt;
                promotes the new package version
              &lt;/li&gt;
              &lt;li&gt;Everything logged, tracked, and auditable&lt;/li&gt;
            &lt;/ul&gt;
            &lt;h4&gt;2. Install Anywhere, Instantly&lt;/h4&gt;
            &lt;ul&gt;
              &lt;li&gt;
                Select install on the target org (scratch, sandbox, or production)
              &lt;/li&gt;
              &lt;li&gt;
                &lt;a href=&quot;https://serpent.cloud&quot;&gt;Serpent&lt;/a&gt; installs the version and
                records the deployment logs
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;h4&gt;3. Collaboration for All&lt;/h4&gt;
            &lt;ul&gt;
              &lt;li&gt;
                Admins, PMs, and testers can test in linked scratch orgs, or sandbox
              &lt;/li&gt;
              &lt;li&gt;Review progress visually&lt;/li&gt;
              &lt;li&gt;Trigger deployments or approvals without touching Git or CLI&lt;/li&gt;
            &lt;/ul&gt;
            &lt;h3&gt;🎯 Result&lt;/h3&gt;
            &lt;p&gt;
              What used to take 8-10 manual steps - and only worked if everything
              aligned - is now reduced to a simple 3-click flow:
            &lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;Create version&lt;/li&gt;
              &lt;li&gt;Promote&lt;/li&gt;
              &lt;li&gt;Install&lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;All while offering safety, visibility, and full team alignment.&lt;/p&gt;
            &lt;div class=&quot;table-wrapper&quot;&gt;
              &lt;table class=&quot;simple-table&quot;&gt;
                &lt;thead class=&quot;simple-table-header&quot;&gt;
                  &lt;tr&gt;
                    &lt;th&gt;&lt;strong&gt;Tool&lt;/strong&gt;&lt;/th&gt;
                    &lt;th&gt;&lt;strong&gt;Task-Oriented Workflow&lt;/strong&gt;&lt;/th&gt;
                    &lt;th&gt;&lt;strong&gt;Automation Pipelines&lt;/strong&gt;&lt;/th&gt;
                    &lt;th&gt;&lt;strong&gt;Backup &amp;amp; Rollback&lt;/strong&gt;&lt;/th&gt;
                    &lt;th&gt;&lt;strong&gt;VS Code Extension&lt;/strong&gt;&lt;/th&gt;
                    &lt;th&gt;&lt;strong&gt;Pricing&lt;/strong&gt;&lt;/th&gt;
                    &lt;th&gt;&lt;strong&gt;Ideal For&lt;/strong&gt;&lt;/th&gt;
                  &lt;/tr&gt;
                &lt;/thead&gt;
                &lt;tbody&gt;
                  &lt;tr&gt;
                    &lt;td&gt;DevOps Center&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;Free&lt;/td&gt;
                    &lt;td&gt;Teams starting with DevOps practices&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;td&gt;
                      &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
                        &gt;Serpent&lt;/a
                      &gt;
                    &lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;✅&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;✅&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;✅&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;✅&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;
                      Free-$699/team&lt;br /&gt;/month
                    &lt;/td&gt;
                    &lt;td&gt;Teams of all sizes seeking simplicity and speed&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;td&gt;Gearset&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;Partial&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;✅&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;$200/user&lt;br /&gt;/month&lt;/td&gt;
                    &lt;td&gt;Mid-sized to Enterprise teams&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;td&gt;Copado&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;Partial&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;✅&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;$250/user&lt;br /&gt;/month&lt;/td&gt;
                    &lt;td&gt;Enterprises requiring compliance&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;td&gt;Flosum&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;Partial&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;✅&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;❌&lt;/td&gt;
                    &lt;td style=&quot;text-align: center&quot;&gt;$300/user&lt;br /&gt;/month&lt;/td&gt;
                    &lt;td&gt;Teams preferring native Salesforce&lt;/td&gt;
                  &lt;/tr&gt;
                &lt;/tbody&gt;
              &lt;/table&gt;
            &lt;/div&gt;
            &lt;p&gt;&amp;nbsp;&lt;/p&gt;
            &lt;p&gt;
              Based on your company&apos;s needs and budget, and considering all the above
              tools, you can decide if you need to build a DevOps process or buy one.
            &lt;/p&gt;
            &lt;h2 id=&quot;section_7&quot;&gt;
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                &gt;Salesforce DevOps Best Practices&lt;/a
              &gt;
            &lt;/h2&gt;
            &lt;p&gt;
              So far we understand what DevOps is and which all are important parts of
              successful DevOps. Let&apos;s see some DevOps best practices.
            &lt;/p&gt;
            &lt;p&gt;&lt;strong&gt;1. Environment Planning:&lt;/strong&gt;&lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;strong&gt;Developer Sandboxes and Scratch Orgs:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Each developer uses a Developer or Developer Pro sandbox for
                    long-term projects.
                  &lt;/li&gt;
                  &lt;li&gt;
                    Developers also use scratch orgs for short-term, feature-specific
                    development and testing.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Integration Sandbox:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    A shared sandbox (partial copy) for integrating individual
                    contributions from developers.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;UAT (User Acceptance Testing) Sandbox:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    A full copy sandbox for business users to test new features before
                    they are moved to production.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Staging Sandbox:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Another full copy sandbox that mimics the production environment for
                    final pre-production testing.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Production Environment:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    The live environment where end-users interact with the application.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;&lt;strong&gt;2. Environment Management:&lt;/strong&gt;&lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;strong&gt;Sandbox and Scratch Org Management:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Regularly refresh Developer and Integration sandboxes to reflect the
                    latest production data and configurations.
                  &lt;/li&gt;
                  &lt;li&gt;
                    Use Salesforce DX for creating and managing scratch orgs. Set up
                    scripts to automate the creation and teardown of scratch orgs.
                  &lt;/li&gt;
                  &lt;li&gt;
                    Schedule UAT and Staging sandbox refreshes around major releases to
                    align with testing cycles.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Backup Strategy:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Implement automated backups for sandboxes and production data to
                    avoid data loss.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;
              &lt;strong&gt;3. &lt;/strong
              &gt;&lt;strong
                &gt;&lt;a
                  href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
                  target=&quot;_blank&quot;
                  rel=&quot;noopener&quot;
                  &gt;Version Control&lt;/a
                &gt;:&lt;/strong
              &gt;
            &lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;strong&gt;Commit Strategy:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;Commit changes frequently with clear, descriptive messages.&lt;/li&gt;
                  &lt;li&gt;
                    Use pull requests for code reviews before merging to main branches.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Change Tracking:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Track metadata changes and keep configurations in sync across
                    environments using tools like
                    &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
                      &gt;Serpent&lt;/a
                    &gt;, Gearset, or Copado.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;&lt;strong&gt;4. Environment Configuration:&lt;/strong&gt;&lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;strong&gt;Org-Specific Configurations:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Use Salesforce DX scratch orgs for configuration and development.
                  &lt;/li&gt;
                  &lt;li&gt;
                    Use Salesforce CLI and sfdx commands to manage and deploy changes.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Environment Variables:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Securely manage sensitive information using Salesforce Shield or
                    encrypted custom settings.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;&lt;strong&gt;5. Automated Deployment:&lt;/strong&gt;&lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;strong
                  &gt;&lt;a
                    href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
                    target=&quot;_blank&quot;
                    rel=&quot;noopener&quot;
                    &gt;Version Control&lt;/a
                  &gt;:&lt;/strong
                &gt;
                &lt;ul&gt;
                  &lt;li&gt;Use Git as the source of truth for all metadata and code.&lt;/li&gt;
                  &lt;li&gt;
                    Implement branching strategies (e.g., feature branches, develop
                    branch, master branch) to manage changes.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong
                  &gt;&lt;a
                    href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                    target=&quot;_blank&quot;
                    rel=&quot;noopener&quot;
                    &gt;CI/CD Pipeline&lt;/a
                  &gt;:&lt;/strong
                &gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Use Salesforce DX, Jenkins, and GitHub Actions to automate
                    deployment processes.
                  &lt;/li&gt;
                  &lt;li&gt;
                    &lt;a
                      href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                      target=&quot;_blank&quot;
                      rel=&quot;noopener&quot;
                      &gt;CI/CD pipeline&lt;/a
                    &gt;
                    stages include:
                    &lt;ol&gt;
                      &lt;li&gt;
                        &lt;strong&gt;Build:&lt;/strong&gt; Retrieve code from
                        &lt;a
                          href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
                          target=&quot;_blank&quot;
                          rel=&quot;noopener&quot;
                          &gt;version control&lt;/a
                        &gt;.
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;strong&gt;Test:&lt;/strong&gt; Run automated tests using Apex Test
                        Execution.
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;strong&gt;Deploy:&lt;/strong&gt; Deploy changes to Integration sandbox,
                        followed by UAT, Staging, and Production.
                      &lt;/li&gt;
                      &lt;li&gt;
                        &lt;strong&gt;Scratch Org Validation:&lt;/strong&gt; Create scratch orgs in
                        the
                        &lt;a
                          href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                          target=&quot;_blank&quot;
                          rel=&quot;noopener&quot;
                          &gt;CI/CD pipeline&lt;/a
                        &gt;
                        to validate changes in an isolated environment.
                      &lt;/li&gt;
                    &lt;/ol&gt;
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;&lt;strong&gt;6. Data Management:&lt;/strong&gt;&lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;strong&gt;Test Data:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Use anonymised or synthetic data in Developer and integration
                    sandboxes to comply with data protection regulations.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Data Migration:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Use Serpent&apos;s Migrate Data screen for data migration between
                    environments with PII masking, or tools like Salesforce Data Loader
                    or Talend. See our
                    &lt;a
                      href=&quot;/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
                      target=&quot;_blank&quot;
                      rel=&quot;noopener&quot;
                      &gt;tips for managing Salesforce metadata&lt;/a
                    &gt;
                    for more on keeping environments in sync.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Scratch Org Data:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Use Salesforce DX to seed scratch orgs with relevant data for
                    development and testing purposes.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;&lt;strong&gt;7. Monitoring and Logging:&lt;/strong&gt;&lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;strong&gt;Logging:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Implement logging using Salesforce Debug Logs and set up alerts for
                    critical errors.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Monitoring:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Use AppExchange tools like New Relic or Datadog for performance
                    monitoring and health checks.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;&lt;strong&gt;8. Compliance and Security:&lt;/strong&gt;&lt;/p&gt;
            &lt;ul&gt;
              &lt;li&gt;
                &lt;strong&gt;Security Reviews:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Regularly perform security reviews and penetration testing in
                    staging and production environments.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;Access Controls:&lt;/strong&gt;
                &lt;ul&gt;
                  &lt;li&gt;
                    Implement role-based access controls (RBAC) to limit access to
                    sensitive environments and data.
                  &lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
            &lt;p&gt;
              For a current, side-by-side view of the platforms, read our &lt;a href=&quot;/resources/guide-best-salesforce-devops-platforms-and-tools-for-2026&quot;&gt;2026 guide to Salesforce DevOps tools&lt;/a&gt;, which compares ten options on pricing and fit.
            &lt;/p&gt;
            &lt;h2 id=&quot;section_8&quot;&gt;FAQ&amp;rsquo;s&lt;/h2&gt;
            &lt;p&gt;
              &lt;strong&gt;What is Salesforce DevOps?&lt;br /&gt;&lt;/strong&gt;Salesforce DevOps is the
              same as actual DevOps, and it focuses on leveraging Salesforce at scale.
              This helps development teams detect problems, identify bugs, and fix them
              before releasing changes to their customers&lt;br /&gt;&lt;strong
                &gt;Is Salesforce DevOps a good career? &lt;br /&gt;&lt;/strong
              &gt;Yes, DevOps engineers have good career option. As now days every project
              is using Salesforce DevOps.&lt;br /&gt;&lt;strong
                &gt;What does a Salesforce DevOps engineer do?&lt;br /&gt;&lt;/strong
              &gt;DevOps Engineer are responsible for implementing continuous delivery,
              optimisation, monitoring, release management. They also support the end to
              end release process.
            &lt;/p&gt;
            &lt;h2 id=&quot;section_9&quot;&gt;Summary&lt;/h2&gt;
            &lt;p&gt;
              Salesforce DevOps is a culture and a set of process that bring development
              and operations teams together to complete software development. I hope
              after looking into all
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;DevOps Tools&lt;/a
              &gt;
              you can decide your deployment strategy and process.
            &lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Switch Salesforce DevOps Tools Without Breaking Your Pipeline]]></title>
            <description><![CDATA[A practical guide to migrating from Copado, Gearset, or Change Sets to a new Salesforce DevOps platform - without downtime, data loss, or team disruption.]]></description>
            <link>https://serpent.cloud/resources/How-to-Switch-Salesforce-DevOps-Tools-Without-Breaking-Your-Pipeline</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Switch-Salesforce-DevOps-Tools-Without-Breaking-Your-Pipeline</guid>
            <dc:creator><![CDATA[Tekunda Team]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;h2&gt;Why Teams Delay Switching (And Why That&apos;s a Mistake)&lt;/h2&gt;
&lt;p&gt;
  Most Salesforce teams know they need a better DevOps tool but delay the switch because
  migration feels risky. The reality: staying on a tool that doesn&apos;t fit your team is
  riskier. Every manual release cycle, every production break from an untested change
  set, every hour spent on work that should be automated - that&apos;s your real cost.
&lt;/p&gt;
&lt;p&gt;
  This guide walks through how to switch Salesforce DevOps tools safely, whether you&apos;re
  moving from Change Sets, Copado, or Gearset.
&lt;/p&gt;

&lt;p&gt;
  Not sure which tool to move to yet? Our &lt;a href=&quot;/resources/guide-best-salesforce-devops-platforms-and-tools-for-2026&quot;&gt;comparison of the best Salesforce DevOps tools&lt;/a&gt; sets ten platforms side by side on price, fit and approach.
&lt;/p&gt;
&lt;h2&gt;Before You Start: The Pre-Migration Checklist&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    ✅ Document your current release process - how many steps, who approves, what runs
    tests
  &lt;/li&gt;
  &lt;li&gt;
    ✅ Identify all connected orgs (sandbox, staging, UAT, production) and their
    relationships
  &lt;/li&gt;
  &lt;li&gt;
    ✅ List all active metadata types being deployed (Flows, Apex, LWC, Permission Sets,
    etc.)
  &lt;/li&gt;
  &lt;li&gt;✅ Note any automated tests currently in place and their run frequency&lt;/li&gt;
  &lt;li&gt;
    ✅ Confirm your Git repository is current (if you&apos;re already on source control)
  &lt;/li&gt;
  &lt;li&gt;✅ Pick a low-traffic migration window - avoid month-end or quarterly closes&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Migrating from Change Sets&lt;/h2&gt;
&lt;p&gt;
  Change sets are the most common starting point. The good news: this migration is the
  cleanest because there&apos;s no prior tool configuration to carry over.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Connect your orgs.&lt;/strong&gt; With Serpent, connect all orgs using OAuth -
    production, sandboxes, and any developer orgs. This takes 10-15 minutes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Initialize source control.&lt;/strong&gt; If you don&apos;t have a Git repo, create
    one. Serpent connects directly to &lt;a href=&quot;/integrations/github&quot;&gt;GitHub&lt;/a&gt;,
    &lt;a href=&quot;/integrations/gitlab&quot;&gt;GitLab&lt;/a&gt;, &lt;a href=&quot;/integrations/bitbucket&quot;&gt;Bitbucket&lt;/a&gt;, or &lt;a href=&quot;/integrations/azure-repos&quot;&gt;Azure DevOps&lt;/a&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run a metadata snapshot.&lt;/strong&gt; Pull your current production metadata into
    source control as a baseline. This is your starting point.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Build your first pipeline.&lt;/strong&gt; Configure a simple deploy from dev
    sandbox → UAT → production. Run it once with a small, safe change to verify the
    setup.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Retire change sets.&lt;/strong&gt; After 2-3 successful automated deploys, stop
    using change sets for new work. Keep existing approved change sets for in-flight
    work until they close.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Time to full migration:&lt;/strong&gt; 1-2 weeks for most teams.&lt;/p&gt;

&lt;h2&gt;Migrating from Gearset&lt;/h2&gt;
&lt;p&gt;
  Gearset teams already understand pipelines and source control - the migration is
  primarily about reconfiguring your pipeline definitions and org connections. Still
  deciding? Our &lt;a href=&quot;/compare/gearset-alternative&quot;&gt;Gearset alternative breakdown&lt;/a&gt;
  covers where the two platforms actually differ.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Export your Gearset pipeline configuration.&lt;/strong&gt; Document which orgs
    connect to which, what metadata filters you use, and what tests are required per
    environment.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Reconnect orgs.&lt;/strong&gt; Use the same OAuth flow to connect all orgs to the
    new platform. Your existing Git repo works as-is.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Recreate pipelines.&lt;/strong&gt; Map each Gearset pipeline to its equivalent in
    Serpent. Most configurations translate directly.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run parallel for one sprint.&lt;/strong&gt; Keep Gearset active for existing
    pipelines while you build and test new ones in Serpent. One sprint of parallel
    running catches any gaps.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cut over.&lt;/strong&gt; After one sprint with no issues in Serpent, disable
    Gearset pipelines and cancel the subscription.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Time to full migration:&lt;/strong&gt; 2-4 weeks including the parallel sprint.&lt;/p&gt;

&lt;h2&gt;Migrating from Copado&lt;/h2&gt;
&lt;p&gt;
  Copado migrations are the most complex because Copado&apos;s user stories and branch
  management are deeply integrated. The key is to migrate the process, not just the
  tooling. For the feature-by-feature case, read our
  &lt;a href=&quot;/compare/copado-alternative&quot;&gt;Copado alternative comparison&lt;/a&gt; first.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Close out in-flight work.&lt;/strong&gt; Complete all active Copado user stories
    before starting migration. Don&apos;t migrate mid-sprint.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Document your branch strategy.&lt;/strong&gt; Copado teams typically have a
    specific branching model - make sure your team aligns on this before switching
    tools.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Migrate org connections.&lt;/strong&gt; Same OAuth process as above.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Rebuild your pipeline stages.&lt;/strong&gt; Map Copado environments to Serpent
    pipeline stages. The concepts are equivalent.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Re-train the team.&lt;/strong&gt; Copado&apos;s UI is deeply familiar to some team
    members. Budget 2-3 hours of team onboarding time.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run parallel for two sprints.&lt;/strong&gt; Given the higher complexity, run two
    full sprints in parallel before cutting over.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  &lt;strong&gt;Time to full migration:&lt;/strong&gt; 4-8 weeks including parallel running and
  retraining.
&lt;/p&gt;

&lt;h2&gt;What Not to Do&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;❌ Don&apos;t migrate during a freeze period or before a major release&lt;/li&gt;
  &lt;li&gt;
    ❌ Don&apos;t skip the parallel sprint - it catches the edge cases you didn&apos;t think of
  &lt;/li&gt;
  &lt;li&gt;❌ Don&apos;t migrate all orgs at once - start with one sandbox pipeline first&lt;/li&gt;
  &lt;li&gt;
    ❌ Don&apos;t forget to update your CI/CD webhooks (GitHub Actions, etc.) to point to the
    new platform
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;How Long Does It Actually Take?&lt;/h2&gt;
&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;From&lt;/th&gt;
      &lt;th&gt;Realistic timeline&lt;/th&gt;
      &lt;th&gt;Main complexity&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Change Sets&lt;/td&gt;
      &lt;td&gt;1-2 weeks&lt;/td&gt;
      &lt;td&gt;Building the first pipeline from scratch&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Gearset&lt;/td&gt;
      &lt;td&gt;2-4 weeks&lt;/td&gt;
      &lt;td&gt;Recreating pipeline configs&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Copado&lt;/td&gt;
      &lt;td&gt;4-8 weeks&lt;/td&gt;
      &lt;td&gt;Process alignment and team retraining&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How do you switch DevOps tools without breaking your pipeline?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Migrate one pipeline at a time and run the old and new tools in parallel for at least
  a sprint before cutting over. Start with a single sandbox pipeline rather than every
  org at once, and repoint your CI/CD webhooks when you do.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How long does a Salesforce DevOps tool migration take?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Plan roughly one to two weeks coming from change sets, two to four weeks from Gearset,
  and four to eight weeks from Copado. Copado takes longest because the process and the
  team&apos;s habits move with the tooling, not just the configuration.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can you migrate mid-sprint?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Better not to. Close out in-flight work first, and avoid freeze periods, month-end and
  quarterly close. Picking a low-traffic window means a surprise does not land on top of
  a release.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What should you prepare before switching DevOps tools?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Document your current release process and who approves what, list every connected org
  and how they relate, note the metadata types you deploy and the tests you already run,
  and confirm your Git repository is up to date.
&lt;/p&gt;
&lt;h2&gt;Ready to Start?&lt;/h2&gt;
&lt;p&gt;
  Serpent&apos;s migration team can run a free migration assessment - we&apos;ll map your current
  setup to a Serpent configuration and give you a realistic timeline before you commit
  to anything. &lt;a href=&quot;https://serpent.cloud/migrate&quot;&gt;Start your migration here&lt;/a&gt;.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to seed a Salesforce sandbox with realistic data]]></title>
            <description><![CDATA[A repeatable way to seed Salesforce sandboxes: relationship-aware extracts, load order, deterministic masking and seed sets that survive schema change.]]></description>
            <link>https://serpent.cloud/resources/How-to-seed-a-Salesforce-sandbox-with-realistic-data</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-seed-a-Salesforce-sandbox-with-realistic-data</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 03 Nov 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; seeding a Salesforce sandbox well is three jobs, not
  one. Pull a relationship-aware slice of production rather than a record count, load it
  parents-first with stable external IDs so the same set can be reloaded, and anonymise
  deterministically so the data still behaves like real data. Then version the seed
  definition next to your metadata, because the thing that kills seed sets is not the
  first load, it is the schema change three sprints later.
&lt;/p&gt;

&lt;h2&gt;What is sandbox seeding?&lt;/h2&gt;
&lt;p&gt;
  Sandbox seeding is copying a subset of production records into a lower environment so
  the org has realistic data to develop and test against, with sensitive values masked
  before they land. It is a data problem, not a metadata problem: a sandbox refresh
  brings the configuration, and in most cases leaves you with an empty or unusable org.
&lt;/p&gt;

&lt;h2&gt;Which sandboxes actually need seeding?&lt;/h2&gt;
&lt;p&gt;
  The ones that do not copy data for you. Per
  &lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=platform.data_sandbox_environments.htm&amp;language=en_US&amp;type=5&quot;
    &gt;Salesforce&apos;s sandbox licences and storage limits&lt;/a
  &gt;: &lt;strong&gt;Developer&lt;/strong&gt; (200 MB) and &lt;strong&gt;Developer Pro&lt;/strong&gt; (1 GB) copy
  metadata only and refresh daily, so those are the ones you seed.
  &lt;strong&gt;Partial Copy&lt;/strong&gt; (5 GB, refresh every 5 days) brings a template-selected
  sample and you fill the gaps. &lt;strong&gt;Full&lt;/strong&gt; (production-sized, refresh every
  29 days) brings everything, which is exactly why masking matters more there, not less.
  Scratch orgs always start empty, so seeding is mandatory if you develop on them.
&lt;/p&gt;

&lt;h2&gt;How do you pick a relationship-aware slice?&lt;/h2&gt;
&lt;p&gt;
  The common failure is selecting by volume: take 500 Accounts, take 500 Contacts, hope
  they connect. They do not, and testers spend their week building the records they were
  promised.
&lt;/p&gt;
&lt;p&gt;Select by &lt;em&gt;graph&lt;/em&gt; instead, starting from a small set of root records:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Pick the roots deliberately.&lt;/strong&gt; Twenty to fifty Accounts that between
    them cover your record types, currencies, countries, territories and edge cases. One
    giant customer, one brand-new one, one with a broken address.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Walk down the children.&lt;/strong&gt; Contacts, Opportunities, line items, Cases,
    custom objects, and the junction objects between them.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Walk back up the lookups.&lt;/strong&gt; If an Opportunity points at a Pricebook,
    a Campaign or a custom Contract, those parents come too, or the insert fails.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Add the reference data separately.&lt;/strong&gt; Products, price book entries and
    configuration records are a full copy of a small table, not a slice of a graph.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  A few hundred well-connected records beat a hundred thousand disconnected ones for
  every purpose except performance testing.
&lt;/p&gt;

&lt;h2&gt;In what order do the records have to load?&lt;/h2&gt;
&lt;p&gt;
  Strict dependency order, parents before children, and every object keyed on something
  stable.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Never carry Salesforce IDs across orgs.&lt;/strong&gt; They do not survive. Put a
    text external ID field on each seeded object, populate it from the source record,
    and &lt;code&gt;upsert&lt;/code&gt; on it. Now the load is idempotent: run it twice and you
    update rather than duplicate.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Two-pass the circular references.&lt;/strong&gt; Self-lookups such as
    &lt;code&gt;Account.ParentId&lt;/code&gt;, and pairs where each object points at the other,
    cannot be satisfied in one insert. Load the records with the lookup blank, then run
    a second pass that only sets the lookup.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Map ownership.&lt;/strong&gt; Owner and any User lookup will not resolve: sandbox
    usernames are suffixed and your production users may not exist there. Remap them
    before load.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Junctions last.&lt;/strong&gt; Load a junction object only after both of its
    masters exist.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Bypass automation, do not deactivate it.&lt;/strong&gt; Triggers, flows,
    validation and duplicate rules all fire on a seed load. A bypass switch your
    automation checks beats deploying deactivations into an org.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;How do you anonymise without making the data useless?&lt;/h2&gt;
&lt;p&gt;
  Masking that produces noise is as bad as no masking, because nobody trusts a test that
  failed on garbage. Match the technique to the field:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Deterministic pseudonyms&lt;/strong&gt; for anything used in joins, matching or
    deduplication. The same input must always produce the same output, so one customer
    is one customer across every object.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Shuffle within the column&lt;/strong&gt; where distribution matters more than the
    value, such as revenue bands or close dates you report on.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Redact outright&lt;/strong&gt; for fields no test touches. Free-text notes,
    description fields and attachments are where PII actually hides.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Neutralise anything routable.&lt;/strong&gt; Emails, phone numbers and external
    ids used by integrations should be rewritten to values that cannot reach a real
    person, and the sandbox&apos;s email deliverability setting checked before the first
    load.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Salesforce ships
  &lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=platform.anonymize_o_get_started.htm&amp;language=en_US&amp;type=5&quot;
    &gt;Anonymize for Salesforce&lt;/a
  &gt;
  natively, and Gearset, Odaseva, Flosum and Serpent all ship seeding tooling with masking built
  in. Whatever you use, the rule set has to be signed off once, in writing, by whoever
  owns data protection.
&lt;/p&gt;

&lt;h2&gt;What happens when the schema changes?&lt;/h2&gt;
&lt;p&gt;
  This is the part almost nobody covers, and it is why most seed sets are dead within a
  quarter. A seed definition is a fixed picture of your schema: field lists, picklist
  values, required fields, validation rules. Ship a new required field and every load
  after it fails.
&lt;/p&gt;
&lt;p&gt;Treat the seed set as source, not as saved config in someone&apos;s tool:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Version the seed definition in the repo&lt;/strong&gt;, next to the metadata it
    depends on, so a schema change and its seed change land in the same pull request.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Derive columns from a describe call&lt;/strong&gt; rather than pinning a manual
    field list, so new fields do not silently drop out.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run the load in CI&lt;/strong&gt; against a scratch org on any pull request that
    touches objects, fields or validation rules. A failed seed load is a legitimate
    build failure: it means you just shipped something that breaks data creation.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Re-derive after every refresh.&lt;/strong&gt; Picklist values get renamed and
    record types get retired; a seed set that was correct in March is a queue of
    validation errors in June.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  In Serpent, a data operation is a first-class pipeline action rather than a manual
  chore, which is what lets the seed run sit in the same pipeline as the deployment it
  supports. Serpent also masks PII during migration: turn it on in Migrate Data and the
  seed arrives masked.
&lt;/p&gt;

&lt;p&gt;
  Finally, tie the cadence to your releases: each iteration for development sandboxes,
  each test cycle for UAT, always after a refresh. Because the load is idempotent and
  version-controlled, that is a pipeline run rather than a project.
  &lt;a href=&quot;/resources&quot;&gt;More Salesforce DevOps guides&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How much data should a seeded sandbox hold?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Enough to cover every record type, path and edge case, usually a few hundred connected
  records. Volume only matters for load testing.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I just use Data Loader?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes, for a small set. You will be responsible for load order, ID remapping and masking
  yourself, and for repeating all three by hand on every refresh.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does a sandbox refresh keep my seeded data?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. A refresh replaces the sandbox, so anything you seeded is gone. Plan to re-run the
  seed as a standard post-refresh step.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Size a Salesforce DevOps Rollout for a 10-Person Team]]></title>
            <description><![CDATA[Size a Salesforce DevOps rollout for 10 people by seats, environments, volume and ownership. A worked example with real limits and costs.]]></description>
            <link>https://serpent.cloud/resources/How-to-Size-a-Salesforce-DevOps-Rollout-for-a-10-Person-Team</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Size-a-Salesforce-DevOps-Rollout-for-a-10-Person-Team</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;The short answer:&lt;/strong&gt; size a Salesforce DevOps rollout for a 10-person
  team by the work, not the headcount. Count who changes metadata, how many changes run
  in parallel and how often you release, then plan one short-lived environment per
  change, one shared UAT sandbox, three part-time owners and a phased rollout. Most
  10-person teams do not need a dedicated DevOps hire.
&lt;/p&gt;
&lt;h2&gt;What does sizing a Salesforce DevOps rollout actually mean?&lt;/h2&gt;
&lt;p&gt;
  Sizing means deciding how much of four things you need before you buy or build
  anything:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Access:&lt;/strong&gt; who needs a seat in the tool.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Environments:&lt;/strong&gt; how many orgs the pipeline runs through.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Volume:&lt;/strong&gt; how many deployments and releases a month.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Ownership:&lt;/strong&gt; who keeps the pipeline healthy.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Most guides jump straight to tool choice. Get these four right first and the shortlist
  mostly picks itself.
&lt;/p&gt;
&lt;h2&gt;How many people on a 10-person team need access?&lt;/h2&gt;
&lt;p&gt;
  Usually all of them, for different reasons. A typical team of ten mixes admins,
  developers, a business analyst and someone who tests or signs off. Admins and
  developers make changes, the analyst ties work to tickets, and approvers need to see
  what is heading to production.
&lt;/p&gt;
&lt;p&gt;
  This is where the pricing model matters. On per-user pricing every seat is a decision.
  For example,
  &lt;a href=&quot;https://gearset.com/pricing/&quot;&gt;Gearset&apos;s published pricing&lt;/a&gt; lists its Teams
  plan at $320 per user per month for core features, with automation priced separately
  per team. That model pushes you to ask who really needs a seat, and anyone left out
  ends up working outside the process. Per-company pricing removes the trade-off.
&lt;/p&gt;
&lt;h2&gt;How many environments does a 10-person team need?&lt;/h2&gt;
&lt;p&gt;Fewer long-lived sandboxes than you think, and more short-lived orgs.&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;One environment per change.&lt;/strong&gt; A scratch org or developer sandbox for
    each work item, so changes do not collide. Salesforce&apos;s
    &lt;a
      href=&quot;https://developer.salesforce.com/docs/platform/sfdx-dev/guide/sfdx-dev-scratch-orgs-editions-and-allocations.html&quot;
      &gt;scratch org allocations&lt;/a
    &gt;
    give an Enterprise Edition Dev Hub 40 active and 80 daily scratch orgs, which is
    plenty for ten people.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;One shared integration or UAT sandbox.&lt;/strong&gt; Where changes meet and
    business users sign off. A Partial Copy works for most teams.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;A Full sandbox, if your contract includes one,&lt;/strong&gt; for final regression
    and performance checks on production-like data.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Production.&lt;/strong&gt; Receives deployments only, never direct edits.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Sandbox allowances depend on your Salesforce edition and contract, so confirm them
  before you design the pipeline. Once you run more than one long-lived sandbox, plan
  how fixes flow back down, as covered in
  &lt;a href=&quot;/resources/How-to-Set-Up-Back-Promotion-in-a-Salesforce-DevOps-Pipeline&quot;
    &gt;how to set up back-promotion in a Salesforce DevOps pipeline&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;Who should own the pipeline on a 10-person team?&lt;/h2&gt;
&lt;p&gt;Name owners instead of hiring a team. Three part-time roles cover it:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Release owner:&lt;/strong&gt; decides what goes out and when.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Reviewer:&lt;/strong&gt; approves changes before they merge. Rotate it so review
    never waits on one person&apos;s calendar.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Pipeline owner:&lt;/strong&gt; keeps environments, permissions and checks working.
    A few hours a week, not a full-time job.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  If only one person can release, that person is your release cadence. Put at least two
  people behind each role.
&lt;/p&gt;
&lt;h2&gt;How much pipeline volume should you plan for?&lt;/h2&gt;
&lt;p&gt;
  Estimate from your backlog, not from a vendor tier. A worked example for a team of
  ten:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    40 tickets a month, each deployed once to its own environment: 40 deployments.
  &lt;/li&gt;
  &lt;li&gt;Weekly releases to production: about 4 releases.&lt;/li&gt;
  &lt;li&gt;AI review on every change.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Translate that into whatever your tool meters. On Serpent&apos;s credit model a feature
  deployment is 1 credit, a production release is 2 and an AI action adds 1, so this
  example lands at roughly 90 credits a month: above the 30 included in the free
  Essentials plan, comfortably inside the 300 on Scale. Run your own numbers on the
  &lt;a href=&quot;/pricing&quot;&gt;pricing page&lt;/a&gt; before you commit.
&lt;/p&gt;
&lt;h2&gt;What does a phased rollout look like?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Baseline.&lt;/strong&gt; Record how long a change takes from approved to live, and
    how many issues reach production.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Connect and pilot.&lt;/strong&gt; Put production and one sandbox under source
    control, and run two or three real tickets through with a small group.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Add the gates.&lt;/strong&gt; Turn on automated tests, static analysis and review
    for every change. The
    &lt;a href=&quot;/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
      &gt;5 pillars of Salesforce DevOps&lt;/a
    &gt;
    work as a checklist for what those gates should cover.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Bring everyone in.&lt;/strong&gt; Move the remaining admins and developers over,
    and retire change sets for anything the pipeline now handles.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Measure and adjust.&lt;/strong&gt; Compare against the baseline after a few
    release cycles before adding environments or tooling.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Which tool fits a 10-person team?&lt;/h2&gt;
&lt;p&gt;
  Size first, then shortlist. Salesforce&apos;s own
  &lt;a
    href=&quot;https://www.salesforce.com/news/stories/salesforce-devops-center-announcement/&quot;
    &gt;DevOps Center&lt;/a
  &gt;
  installs at no additional cost in Professional (with API access), Enterprise and
  Unlimited Edition orgs. Gearset, Copado, AutoRABIT, Flosum, Blue Canvas and Salto each
  fit different team shapes and budgets, and our comparison of the
  &lt;a href=&quot;/resources/guide-best-salesforce-devops-platforms-and-tools-for-2026&quot;
    &gt;best Salesforce DevOps tools for 2026&lt;/a
  &gt;
  goes platform by platform. Judge every option on the four sizing questions: who can
  use it, how it handles environments, what volume costs, and how much ownership it
  demands.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;
  &lt;strong&gt;Does a 10-person Salesforce team need a dedicated DevOps engineer?&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
  Usually not. Named part-time owners for release, review and pipeline health cover most
  teams this size.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How many sandboxes does a 10-person team need?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Typically one shared integration or UAT sandbox plus a short-lived org per change, and
  a Full sandbox for final regression if your contract includes one.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How long should the rollout take?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Long enough to run a pilot and a few release cycles before scaling. Phase it instead
  of moving everyone at once.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should admins be part of the rollout?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Admins make many of the changes on most Salesforce teams, and a pipeline they
  cannot use leaves that work outside it.
&lt;/p&gt;
&lt;p&gt;
  Serpent prices per company with unlimited users, so all ten people can work in the
  pipeline from day one. Start free on Essentials, move to Scale when volume grows, and
  find more step-by-step guides in the &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy Custom Metadata Types Without Breaking Subscribers]]></title>
            <description><![CDATA[Field manageability, protected records and append-only picklists decide whether a custom metadata upgrade breaks subscriber orgs. Here is the safe path.]]></description>
            <link>https://serpent.cloud/resources/How-to-Deploy-Custom-Metadata-Types-Without-Breaking-Subscribers</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Deploy-Custom-Metadata-Types-Without-Breaking-Subscribers</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; Decide who owns each field before the first release,
  because that choice is hard to walk back. Make values customers will tune subscriber
  editable, keep values your code depends on upgradeable, treat picklist values and
  protected record names as permanent, and test every upgrade against an org that
  already holds customer edits.
&lt;/p&gt;
&lt;h2&gt;What does &quot;breaking subscribers&quot; mean for custom metadata?&lt;/h2&gt;
&lt;p&gt;A custom metadata upgrade breaks a subscriber in one of three ways:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;It overwrites a value the customer tuned.&lt;/strong&gt; Their configuration
    silently resets on upgrade.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;It fails to install or upload.&lt;/strong&gt; The platform rejects a change, such
    as a removed picklist value.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;It removes something still in use.&lt;/strong&gt; A record your code or their
    configuration relies on is deprecated or deleted.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  All three trace back to packaging decisions made before the first release, not to the
  deployment command. So the safe path starts with the type definition.
&lt;/p&gt;
&lt;h2&gt;Which field manageability setting should you choose?&lt;/h2&gt;
&lt;p&gt;
  Every field on a packaged custom metadata type carries one of three settings, as
  Salesforce&apos;s
  &lt;a
    href=&quot;https://trailhead.salesforce.com/content/learn/modules/custom_metadata_types_adv/cmt_manageability&quot;
    &gt;Trailhead unit on protecting custom metadata&lt;/a
  &gt;
  explains:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Upgradeable (developer controlled):&lt;/strong&gt; you can change the value
    through package upgrades. Subscribers cannot edit it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Subscriber editable:&lt;/strong&gt; the subscriber can edit the value after
    install, and package upgrades don&apos;t override their changes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Locked:&lt;/strong&gt; neither you nor the subscriber can edit it after release.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Rule of thumb: if a customer will ever want to tune the value, make it subscriber
  editable and accept that you can no longer correct it in their org. If the value
  encodes how your code behaves, keep it upgradeable. Reserve locked for values that
  must never move. Note that subscriber editable fields on protected records are locked
  after release, so plan protection and manageability together.
&lt;/p&gt;
&lt;h2&gt;What is permanent once you release?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Picklist values are append-only.&lt;/strong&gt; Salesforce&apos;s custom metadata
    implementation guide says developers can add values to a packaged picklist field but
    cannot delete or deactivate them, and subscribers cannot change them at all. A
    picklist field with inactive values also blocks package upload until you delete or
    reactivate those values.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Protected record names are fixed.&lt;/strong&gt; Per the
    &lt;a
      href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_custommetadatatypes.htm&quot;
      &gt;Metadata API reference&lt;/a
    &gt;, the developer name of a protected record can&apos;t be changed after release. Name
    records as if they were public API.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Protection only loosens.&lt;/strong&gt; A protected type can become public, but a
    public type can&apos;t be converted back to protected. Protected types can only be
    created in Developer Edition and scratch orgs.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Only you add fields.&lt;/strong&gt; Subscribers can&apos;t add custom fields to a
    managed custom metadata type, so plan the field set before you ship.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;What happens to records you remove from a package?&lt;/h2&gt;
&lt;p&gt;
  In second-generation managed packages, removed custom metadata records are marked as
  deprecated if they are visible to the subscriber org and hard deleted otherwise,
  according to Salesforce&apos;s
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/sfdx_dev_dev2gp_remove_md_components.htm&quot;
    &gt;guide to removing metadata components from 2GP packages&lt;/a
  &gt;. Deprecated components remain until a subscriber admin deletes them, and the Setup
  Audit Trail logs what the upgrade removed. Two consequences:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Don&apos;t assume a removed record is gone.&lt;/strong&gt; A visible record can linger
    as deprecated in the subscriber org, so code should stop referencing it rather than
    rely on its absence.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Never reuse a removed name.&lt;/strong&gt; Salesforce documents an upgrade failing
    because a leftover deprecated component collided with a re-added component of the
    same name.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  If you plan your package model from scratch, our guide to
  &lt;a
    href=&quot;/resources/How-to-Switch-Salesforce-DevOps-Tools-Without-Breaking-Your-Pipeline&quot;
    &gt;switching Salesforce DevOps tools without breaking your pipeline&lt;/a
  &gt;
  covers keeping package history intact through a tooling change.
&lt;/p&gt;
&lt;h2&gt;How do you deploy a custom metadata upgrade safely?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Review the type, not just the records.&lt;/strong&gt; Manageability, protection
    and picklist changes are the ones you can&apos;t undo, so flag them in the pull request.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Package defaults, not customer configuration.&lt;/strong&gt; Ship the records you
    need to own. Leave customer-specific values to subscriber editable fields or to
    records subscribers create themselves.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Build an upgrade test org.&lt;/strong&gt; Install the previous released version,
    edit subscriber editable values and create a few customer records, then install the
    new version on top.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Assert what survived.&lt;/strong&gt; Subscriber edits should be intact,
    upgradeable values should be updated, and removed records should be deprecated and
    unreferenced.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Change records from Apex only through the Metadata API.&lt;/strong&gt; Apex can&apos;t
    use DML on custom metadata records. It deploys them asynchronously with
    &lt;code&gt;Metadata.Operations.enqueueDeployment&lt;/code&gt; and a
    &lt;code&gt;Metadata.DeployCallback&lt;/code&gt; class, and Salesforce limits how many of these
    deployments can be queued at once.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Allow for caching.&lt;/strong&gt; Custom metadata records are cached after the
    first read, and requests already in flight during an update don&apos;t see the new
    values. Post-install checks should not expect an instant change.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  When two branches edit the same &lt;code&gt;.md-meta.xml&lt;/code&gt; record, follow our guide to
  &lt;a
    href=&quot;/resources/How-to-resolve-Salesforce-metadata-merge-conflicts-without-losing-anyone&apos;s-work&quot;
    &gt;resolving Salesforce metadata merge conflicts without losing anyone&apos;s work&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;Does this matter if you don&apos;t ship a managed package?&lt;/h2&gt;
&lt;p&gt;
  Yes, in a smaller way. Internal teams deploy custom metadata records between sandboxes
  and production too, and deploying a record from source overwrites the target&apos;s copy.
  If admins tune records directly in production, the next deploy from Git silently
  reverts them. Either make Git the only place those records change, or keep admin-owned
  records out of the deployment. Our guide to
  &lt;a
    href=&quot;/resources/Salesforce-DevOps-for-Admins%3A-How-to-Deploy-Without-Touching-Git&quot;
    &gt;helping admins deploy without touching Git&lt;/a
  &gt;
  shows how to give them a tracked path instead of direct edits.
&lt;/p&gt;
&lt;h2&gt;Where does Serpent fit?&lt;/h2&gt;
&lt;p&gt;
  Serpent is the Salesforce DevOps platform built by Tekunda. It deploys custom metadata
  through the same reviewed pipeline as the rest of your metadata, with AI code review
  and a human approval before production, so a manageability or picklist change gets a
  second pair of eyes before it ships. &lt;a href=&quot;/pricing&quot;&gt;Compare Serpent plans&lt;/a&gt;, or
  browse more &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt; on packaging and CI/CD.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;
  &lt;strong&gt;Will a package upgrade overwrite subscriber custom metadata values?&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
  Only on upgradeable fields. Package upgrades never override values a subscriber
  changed in a subscriber editable field.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Can I delete a picklist value from a packaged custom metadata type?&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
  No. After release you can add picklist values, but you can&apos;t delete or deactivate
  existing ones.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can Apex update custom metadata records?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes, but not with DML. Use &lt;code&gt;Metadata.Operations.enqueueDeployment&lt;/code&gt;, which
  deploys asynchronously and reports back through a callback class.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Who makes Serpent?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Tekunda builds Serpent, a Salesforce DevOps platform with CI/CD, AI code review and
  human-approved deployments.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Put Salesforce Flows Under Version Control Without Merge Pain]]></title>
            <description><![CDATA[Commit one unversioned file per Flow, give each Flow one owner, stop Git auto-merging Flow XML, and rebuild conflicts in Flow Builder. Step by step.]]></description>
            <link>https://serpent.cloud/resources/How-to-Put-Salesforce-Flows-Under-Version-Control-Without-Merge-Pain</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Put-Salesforce-Flows-Under-Version-Control-Without-Merge-Pain</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; Commit each Flow as one unversioned
  &lt;code&gt;.flow-meta.xml&lt;/code&gt; file, give every Flow a single owner per change, and tell
  Git never to auto-merge Flow XML. When two branches do touch the same Flow, keep one
  side and rebuild the other change in Flow Builder instead of hand-editing XML. Most
  Flow merge pain comes from parallel edits and layout noise, not from Git.
&lt;/p&gt;
&lt;h2&gt;Why are Salesforce Flows hard to version control?&lt;/h2&gt;
&lt;p&gt;
  A Flow is not code you wrote line by line. It is XML generated by Flow Builder, and it
  carries a few traps:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;One file holds everything.&lt;/strong&gt; Elements, connectors, variables and
    formulas all live in a single file, and a large Flow can run past 1,000 lines of
    XML.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Layout is stored as data.&lt;/strong&gt; Every element carries
    &lt;code&gt;locationX&lt;/code&gt; and &lt;code&gt;locationY&lt;/code&gt; coordinates, so dragging a box
    produces a diff with no logic change. Switching a Flow between free-form and
    auto-layout rewrites the positions of every element.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Only the latest version comes back.&lt;/strong&gt; Since Metadata API v44, Flow
    file names no longer carry version numbers and a retrieve returns the latest
    version,
    &lt;a href=&quot;https://gearset.com/blog/flows-and-flow-definitions/&quot;&gt;active or draft&lt;/a&gt;.
    A half-finished draft can land in your repo without anyone noticing.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Version numbers drift between orgs.&lt;/strong&gt; Deploying a Flow creates a new
    version in the target org, so version 7 in your sandbox might be version 3 in
    production.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Versions are capped.&lt;/strong&gt; Salesforce allows
    &lt;a
      href=&quot;https://help.salesforce.com/s/articleView?language=en_US&amp;amp;id=flow_considerations_limit.htm&amp;amp;type=0&quot;
      &gt;50 versions per Flow&lt;/a
    &gt;, so org history is no substitute for Git history.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How do you set up a Flow repository that stays clean?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Use source format.&lt;/strong&gt; One file per Flow under
    &lt;code&gt;force-app/main/default/flows/&lt;/code&gt;, named after the Flow&apos;s API name with no
    version suffix.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Stop committing FlowDefinition.&lt;/strong&gt; Since the v44 change, a
    &lt;code&gt;status&lt;/code&gt; field on the Flow itself controls whether it is active, and
    Salesforce no longer recommends Flow Definitions for activation.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Retrieve by name, from the org where the work happened.&lt;/strong&gt; For example
    &lt;code&gt;sf project retrieve start --metadata Flow:Case_Escalation&lt;/code&gt;. Check the
    &lt;code&gt;status&lt;/code&gt; value before you commit, so a draft never ships by accident.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Tell Git not to auto-merge Flows.&lt;/strong&gt; Add
    &lt;code&gt;force-app/**/flows/*.flow-meta.xml -merge&lt;/code&gt; to
    &lt;code&gt;.gitattributes&lt;/code&gt;. Per the
    &lt;a href=&quot;https://git-scm.com/docs/gitattributes&quot;&gt;gitattributes docs&lt;/a&gt;, an unset
    &lt;code&gt;merge&lt;/code&gt; keeps your branch&apos;s version and declares a conflict. Avoid the
    &lt;code&gt;binary&lt;/code&gt; shortcut here, because it also switches off diffs, and you still
    want to review Flow changes.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  That last step matters most. A line-based merge can produce Flow XML that is perfectly
  valid and logically wrong, for example a connector pointing at an element the other
  branch deleted. A forced conflict is cheaper than a silent one. It also explains why
  our
  &lt;a href=&quot;/resources/How-to-Set-Up-a-Salesforce-Aware-Git-Merge-Driver&quot;
    &gt;guide to a Salesforce-aware Git merge driver&lt;/a
  &gt;
  keeps Flows out of the driver&apos;s patterns: profiles and permission sets merge well by
  node, Flow logic does not.
&lt;/p&gt;
&lt;h2&gt;How do you stop two people editing the same Flow?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;One owner per Flow per change.&lt;/strong&gt; Claim the Flow on the work item
    before anyone opens Flow Builder.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Split big Flows into subflows.&lt;/strong&gt; Parallel work then lands in
    different files instead of one shared file.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep branches short.&lt;/strong&gt; Merge the base branch in often so conflicts
    surface while they are small.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Pick one canvas mode per Flow.&lt;/strong&gt; Switching between free-form and
    auto-layout churns every coordinate in the file.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;What should you do when two branches change the same Flow?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Do not hand-merge the XML.&lt;/strong&gt; Treat the conflict as a decision about
    logic, not text.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep the side with the bigger change&lt;/strong&gt; using
    &lt;code&gt;git checkout --ours&lt;/code&gt; or &lt;code&gt;--theirs&lt;/code&gt; on the Flow file.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploy that version to a sandbox&lt;/strong&gt; and reapply the smaller change in
    Flow Builder.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Check the result with version comparison.&lt;/strong&gt; Flow Builder gained a
    version comparison tool in Winter &apos;26, and Summer &apos;26 added a
    &lt;a
      href=&quot;https://www.salesforceben.com/summer-26-release-salesforce-flow-visual-comparison-tool/&quot;
      &gt;visual mode&lt;/a
    &gt;
    that colour-codes created, updated and deleted elements on the canvas.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Retrieve, commit and let CI validate&lt;/strong&gt; the merged Flow before review.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  For conflicts across other metadata types, see
  &lt;a href=&quot;/resources/How-to-Resolve-Salesforce-Metadata-Conflicts-During-a-Merge&quot;
    &gt;how to resolve Salesforce metadata conflicts during a merge&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;How do you deploy Flows from Git safely?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Expect inactive by default.&lt;/strong&gt; Flows active in a sandbox deploy to
    production as inactive unless you turn on
    &lt;a
      href=&quot;https://help.salesforce.com/s/articleView?id=platform.flow_distribute_deploy_active.htm&amp;amp;language=en_US&amp;amp;type=5&quot;
      &gt;Deploy processes and flows as active&lt;/a
    &gt;
    in Process Automation Settings, which comes with an Apex test coverage requirement
    and covers processes and autolaunched Flows, not screen Flows.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Make activation an explicit release step&lt;/strong&gt;, not something an admin
    remembers afterwards.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run a check-only deployment on every pull request&lt;/strong&gt;, so a Flow that
    references a missing field fails in CI, not in the release window.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Still shipping Flows with change sets? Start with
  &lt;a href=&quot;/resources/How-to-Graduate-From-Change-Sets-to-Source-Control-in-Salesforce&quot;
    &gt;how to graduate from change sets to source control&lt;/a
  &gt;, then apply the steps above.
&lt;/p&gt;
&lt;h2&gt;Where does tooling help?&lt;/h2&gt;
&lt;p&gt;
  DevOps platforms such as Gearset and Flosum add Flow-aware comparison and deployment
  on top of Git, and Salesforce&apos;s Lifecycle Center (formerly DevOps Center) offers AI
  recommendations for conflict resolution through its MCP tools. Serpent resolves
  conflicts on the pull request itself: Serpent AI proposes a resolution and waits for
  your review before applying it, and AI code review runs on every paid plan.
  &lt;a href=&quot;/pricing&quot;&gt;See Serpent plans&lt;/a&gt;, or browse more
  &lt;a href=&quot;/resources&quot;&gt;Salesforce DevOps guides&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Should I commit FlowDefinition files?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Since Metadata API v44, the Flow&apos;s own &lt;code&gt;status&lt;/code&gt; field controls
  activation, and Salesforce no longer recommends Flow Definitions for that job.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can Git merge two versions of the same Flow automatically?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  It can produce a textually clean merge, but Git does not understand Flow logic. Force
  a conflict with &lt;code&gt;-merge&lt;/code&gt; and reapply one change in Flow Builder.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why did a draft Flow end up in my repository?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  A retrieve returns the latest version of the Flow, active or draft. Check the
  &lt;code&gt;status&lt;/code&gt; value before committing.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do locationX and locationY changes matter?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  They change layout only, not behaviour. Review them as noise, and avoid switching
  canvas modes so they stay stable.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Run Apex Tests in Parallel Without Flaky Failures]]></title>
            <description><![CDATA[Why Apex tests fail only in parallel runs, how to tell flakes from real bugs and the steps that make tests safe to run concurrently in CI.]]></description>
            <link>https://serpent.cloud/resources/How-to-Run-Apex-Tests-in-Parallel-Without-Flaky-Failures</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Run-Apex-Tests-in-Parallel-Without-Flaky-Failures</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  To run Apex tests in parallel without flaky failures, make every test create its own
  data, never write to records that exist outside the test, and generate unique values
  for fields like usernames. Then diagnose any remaining flake by rerunning that class
  on its own: if it passes alone and fails in parallel, you have an isolation problem,
  not a bug. Turning off parallel testing org-wide hides the symptom and slows every
  run.
&lt;/p&gt;
&lt;h2&gt;Why do Apex tests fail only when they run in parallel?&lt;/h2&gt;
&lt;p&gt;
  By default, Salesforce runs asynchronous test classes concurrently, so two tests can
  compete for the same resource at the same moment. The failures cluster into three
  causes:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Record lock contention.&lt;/strong&gt; A transaction waiting on a locked record
    gets 10 seconds before Salesforce returns &lt;code&gt;UNABLE_TO_LOCK_ROW&lt;/code&gt;, and that
    limit cannot be changed, as
    &lt;a href=&quot;https://www.xappex.com/blog/unable-to-lock-row-salesforce/&quot;
      &gt;Xappex explains&lt;/a
    &gt;. Parent records are locked silently when master-detail children are updated, when
    roll-up summaries recalculate and during sharing processing.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Org-wide unique values.&lt;/strong&gt; Usernames are unique across Salesforce, so
    two classes inserting &lt;code&gt;testuser1@test.com&lt;/code&gt; at once fail with
    &lt;code&gt;DUPLICATE_USERNAME&lt;/code&gt;, a pattern
    &lt;a
      href=&quot;https://salesforcecentral.com/adding-an-apex-test-class-create-user-data-factory/&quot;
      &gt;Salesforce Central documents&lt;/a
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Shared org data.&lt;/strong&gt; A test using
    &lt;code&gt;@isTest(SeeAllData=true)&lt;/code&gt; reads and writes real records that other tests
    can touch at the same time.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  None of these show up when a class runs alone, which is why the suite looks random.
&lt;/p&gt;
&lt;h2&gt;How do you tell a parallel flake from a real bug?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Read the error.&lt;/strong&gt; &lt;code&gt;UNABLE_TO_LOCK_ROW&lt;/code&gt;,
    &lt;code&gt;DUPLICATE_USERNAME&lt;/code&gt; and other duplicate-value errors on test data point
    to concurrency.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Rerun the class alone.&lt;/strong&gt; The Salesforce CLI
    &lt;code&gt;--synchronous&lt;/code&gt; flag runs the test methods of a single Apex class
    synchronously, per the
    &lt;a href=&quot;https://github.com/salesforcecli/plugin-apex&quot;&gt;plugin-apex documentation&lt;/a
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Compare.&lt;/strong&gt; Passes alone, fails in parallel: isolation problem. Fails
    both ways: a real defect. Fix it, do not retry it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Log it.&lt;/strong&gt; Record the class, error and date. A class that flakes twice
    in a month goes to the top of the fix list.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;How do you make Apex tests safe to run in parallel?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Create all test data inside the test.&lt;/strong&gt; Use
    &lt;code&gt;@TestSetup&lt;/code&gt; or a data factory and drop &lt;code&gt;SeeAllData=true&lt;/code&gt;.
    Tests that build their own data do not contend for org records.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep writes inside the test&apos;s own records.&lt;/strong&gt; Avoid updating shared
    setup records, the running user or anything a sharing recalculation might lock.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Make unique fields unique per class.&lt;/strong&gt; Prefix usernames and other
    unique values with the test class name plus a random number.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Split unit tests from integration tests.&lt;/strong&gt; Logic you can test without
    DML never takes a lock. Keep the heavy, data-bound tests in a smaller set you can
    watch closely.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Mark proven classes.&lt;/strong&gt; Winter &apos;18 added
    &lt;code&gt;@isTest(isParallel=true)&lt;/code&gt; to flag classes that can run in parallel
    without the default concurrency limits, as
    &lt;a href=&quot;http://www.fishofprey.com/2018/06/&quot;&gt;FishOfPrey covers&lt;/a&gt;. Add it only to
    classes that pass repeatedly in parallel runs.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Should you just enable Disable Parallel Apex Testing?&lt;/h2&gt;
&lt;p&gt;
  Only as a stopgap. The setting lives under Setup, Apex Test Execution, Options, and
  runs asynchronous tests one at a time. It removes concurrency flakes, but in orgs with
  many test classes a full run can take far longer. Some tools depend on the same
  switch:
  &lt;a
    href=&quot;https://docs.gearset.com/en/articles/758826-running-tests-synchronously-in-a-test-monitor&quot;
    &gt;Gearset&apos;s documentation&lt;/a
  &gt;
  notes its test monitors use the Tooling API and therefore run tests in parallel unless
  you enable it.
&lt;/p&gt;
&lt;p&gt;
  Treat the checkbox as a debt marker. Turn it on to unblock a release, then fix the
  offending classes and turn it off again.
&lt;/p&gt;
&lt;h2&gt;How do you run parallel Apex tests reliably in CI?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Run asynchronously by default.&lt;/strong&gt;
    &lt;code&gt;sf apex run test --test-level RunLocalTests&lt;/code&gt; gives you the parallel run
    your production deploys will see.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Capture machine-readable results.&lt;/strong&gt; Add
    &lt;code&gt;--result-format junit --output-dir&lt;/code&gt; so your pipeline can track failures
    per class over time, and &lt;code&gt;--code-coverage&lt;/code&gt; to keep coverage visible.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Classify, then retry once.&lt;/strong&gt; Rerun only failures that match a
    concurrency signature, synchronously. If the rerun passes, log a flake; if it fails,
    fail the build.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Watch the flake rate.&lt;/strong&gt; A rising count is a test-design problem, not
    a platform one.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Blind retries are tempting, but they turn real defects into green builds. The same
  discipline applies when you change tooling, as covered in
  &lt;a
    href=&quot;/resources/How-to-Switch-Salesforce-DevOps-Tools-Without-Breaking-Your-Pipeline&quot;
    &gt;how to switch Salesforce DevOps tools without breaking your pipeline&lt;/a
  &gt;
  and our guide to
  &lt;a href=&quot;/resources/Migrating-from-Gearset-to-Serpent-without-downtime&quot;
    &gt;migrating from Gearset to Serpent without downtime&lt;/a
  &gt;.
&lt;/p&gt;
&lt;p&gt;
  Point-and-click releases hit the same failures, because the tests still run on deploy.
  Our
  &lt;a
    href=&quot;/resources/Click-Deploy-Checklist%3A-How-to-Run-a-Safe-Point-and-Click-Salesforce-Deployment&quot;
    &gt;click deploy checklist&lt;/a
  &gt;
  covers what to verify first, and you can browse more how-tos in
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;Who is Tekunda?&lt;/h2&gt;
&lt;p&gt;
  Tekunda is the Salesforce consulting and product company that builds Serpent, a
  Salesforce DevOps platform with GitHub-based source control and automated deployment
  pipelines. If flaky tests are stalling your releases, compare plans on our
  &lt;a href=&quot;/pricing&quot;&gt;pricing page&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Does Salesforce run Apex tests in parallel by default?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes, asynchronous test runs execute classes concurrently unless Disable Parallel Apex
  Testing is enabled in Setup.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What causes UNABLE_TO_LOCK_ROW in Apex tests?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Two transactions want the same record, often a parent locked by a master-detail
  update, roll-up summary or sharing recalculation. The waiting one fails after 10
  seconds.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should I retry flaky Apex tests automatically?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Retry once, synchronously, and only for concurrency errors. Log every flake and fix
  the class rather than relying on retries.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is isParallel=true enough to fix flaky tests?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. It only marks a class as parallel-safe. The test still has to create its own data
  and use unique values.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Click Deploy Validation: How to Run a Check-Only Deployment and Quick Deploy]]></title>
            <description><![CDATA[How to validate a click deploy in Salesforce with a check-only run, pick the right test level and Quick Deploy inside the 10-day window.]]></description>
            <link>https://serpent.cloud/resources/Click-Deploy-Validation%3A-How-to-Run-a-Check-Only-Deployment-and-Quick-Deploy</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Click-Deploy-Validation%3A-How-to-Run-a-Check-Only-Deployment-and-Quick-Deploy</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; A click deploy validation is a check-only deployment:
  Salesforce runs your package and its Apex tests against the target org without saving
  anything. If it passes with tests run, you get a job ID you can Quick Deploy within 10
  days, which skips the test run during your release window. Validate early, then
  release without waiting on tests twice.
&lt;/p&gt;
&lt;h2&gt;What is a click deploy validation?&lt;/h2&gt;
&lt;p&gt;
  Validating a deployment means running it in check-only mode. Salesforce&apos;s
  &lt;a
    href=&quot;https://trailhead.salesforce.com/content/learn/modules/org-development-model/test-and-deploy-changes&quot;
    &gt;Trailhead release module&lt;/a
  &gt;
  describes it as running tests to validate the deployment without saving the components
  in the target org. Nothing changes in the org. You learn whether the package would
  deploy and whether the tests pass. In a point-and-click tool it is usually a Validate
  button next to Deploy.
&lt;/p&gt;
&lt;p&gt;
  Trailhead also defines what success means: all Apex tests passed, and the tests cover
  at least 75% of the code being deployed.
&lt;/p&gt;
&lt;h2&gt;Why validate before you click deploy?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Failures surface early.&lt;/strong&gt; Missing dependencies, compile errors and
    test failures show up as a result to fix, not as a broken release.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The slow part leaves the release window.&lt;/strong&gt; Quick Deploy reuses the
    validation&apos;s test results, so the production step does not re-run Apex tests.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Approvers get evidence.&lt;/strong&gt; A passing validation is something a
    reviewer can check before sign-off, which is the first gate in our
    &lt;a
      href=&quot;/resources/Click-Deploy-Checklist%3A-How-to-Run-a-Safe-Point-and-Click-Salesforce-Deployment&quot;
      &gt;click deploy checklist&lt;/a
    &gt;.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How do you run a validation and Quick Deploy?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Build the package from a source you trust.&lt;/strong&gt; An org comparison works,
    but a branch is easier to review. See
    &lt;a
      href=&quot;/resources/Click-Deploy-from-Git%3A-How-to-Deploy-Salesforce-Changes-from-a-Branch&quot;
      &gt;click deploy from Git&lt;/a
    &gt;
    for that route.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Choose a test level that actually runs tests.&lt;/strong&gt; The next section
    covers which ones qualify.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run Validate.&lt;/strong&gt; From the CLI that is
    &lt;code&gt;sf project deploy validate&lt;/code&gt;. Gearset and Salto both offer validation
    inside their deployment flows, and Salto asks which tests to run as part of it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Read the result and re-validate after every fix.&lt;/strong&gt; A validation only
    vouches for the exact package it checked.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep the job ID.&lt;/strong&gt; Trailhead notes that the validation returns a job
    ID you reference in the quick deploy.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Quick Deploy inside the window.&lt;/strong&gt; Use the Quick Deploy button on the
    Deployment Status page in Setup (it only appears for qualifying validations),
    &lt;code&gt;sf project deploy quick&lt;/code&gt; with the job ID, or the Metadata API call
    &lt;code&gt;deployRecentValidation()&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Have a way back.&lt;/strong&gt; A clean validation lowers the risk but does not
    remove it, so plan your
    &lt;a href=&quot;/resources/Click-Deploy-Rollback%3A-How-to-Undo-a-Salesforce-Deployment&quot;
      &gt;click deploy rollback&lt;/a
    &gt;
    before you release.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Which test level should you validate with?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;RunLocalTests:&lt;/strong&gt; runs the org&apos;s local tests. Trailhead&apos;s release
    example uses it for both the staging and production validations.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;RunSpecifiedTests:&lt;/strong&gt; runs only the classes you name. Faster, but
    those tests must carry the coverage for what you deploy, which
    &lt;a href=&quot;https://apexanvil.com/sf-deploy-start-vs-validate/&quot;&gt;Apex Anvil&lt;/a&gt; notes
    means 75% for each deployed class and trigger.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;RunAllTestsInOrg:&lt;/strong&gt; runs every test in the org, including managed
    package tests. The slowest option.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;NoTestRun:&lt;/strong&gt; not compatible with Quick Deploy, because there are no
    test results to reuse.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;RunRelevantTests:&lt;/strong&gt; introduced as a beta in Spring &apos;26. Salesforce
    selects tests linked to the Apex in the payload, but
    &lt;a
      href=&quot;http://bobbuzzard.blogspot.com/2026/01/run-relevant-tests-in-spring-26.html&quot;
      &gt;Bob Buzzard&lt;/a
    &gt;
    found it only follows direct dependencies, so pilot it outside production first.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;What invalidates a validation?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Age.&lt;/strong&gt; The job ID is valid for 10 days. After that, validate again.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Another deployment.&lt;/strong&gt; Trailhead&apos;s 10-day window holds only if nobody
    deploys to that org or makes major changes to it in between.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Drift you did not see.&lt;/strong&gt;
    &lt;a href=&quot;https://docs.gearset.com/en/articles/625156-validated-packages&quot;
      &gt;Gearset&apos;s documentation&lt;/a
    &gt;
    warns that org changes made after a package was built are not accounted for and
    could be overwritten on deploy.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No tests.&lt;/strong&gt; A validation run with NoTestRun cannot be quick deployed.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The practical rule: validate as close to the release as your test run time allows, and
  freeze other deployments to that org until you ship.
&lt;/p&gt;
&lt;h2&gt;Who is Tekunda, and how does Serpent handle validation?&lt;/h2&gt;
&lt;p&gt;
  Tekunda is a Salesforce consulting and product firm and the company behind Serpent,
  the Salesforce DevOps platform it launched in 2024. In Serpent, validation is a fixed
  step rather than an optional button: the deploy flow runs configure, select files,
  validate and deploy. The validate step is a dry run against the target org. A clean
  result continues automatically and a failure stops there. Serpent also deploys only
  the components a work item changed, which keeps validations small. If you are
  comparing it with
  &lt;a
    href=&quot;/resources/Click-Deploy-in-Salesforce%3A-How-ClickDeploy-Works-and-What-It-Costs&quot;
    &gt;how ClickDeploy works and what it costs&lt;/a
  &gt;, the Scale plan is $699 per company per month with unlimited users; see the
  &lt;a href=&quot;/pricing&quot;&gt;pricing page&lt;/a&gt;. More step-by-step guides live in
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Does a validation change anything in the target org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;No. It is a check-only deployment, so no components are saved.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How long can I wait before using Quick Deploy?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Up to 10 days, provided no other deployment or major change hits that org in between.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I Quick Deploy a validation that ran no tests?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Quick Deploy reuses test results, so the validation must run tests and pass with
  the required coverage.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does Quick Deploy run Apex tests again?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. It relies on the tests from the validation, which is why it finishes faster than a
  standard deploy.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Click Deploy Errors: Why Salesforce Deployments Fail and How to Fix Them]]></title>
            <description><![CDATA[Why click deploys fail in Salesforce: missing dependencies, test coverage, API versions, size limits and flows. Causes, fixes and a troubleshooting order.]]></description>
            <link>https://serpent.cloud/resources/Click-Deploy-Errors%3A-Why-Salesforce-Deployments-Fail-and-How-to-Fix-Them</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Click-Deploy-Errors%3A-Why-Salesforce-Deployments-Fail-and-How-to-Fix-Them</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 29 Sep 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; A click deploy rarely fails because of the button. It fails
  because the Salesforce Metadata API rejects the package, and almost every rejection
  falls into five groups: a missing dependency, too little test coverage, an API version
  the target does not know, a platform size limit, or a change the API cannot make. Read
  the first error, fix the cause in the source, and validate again before you deploy.
&lt;/p&gt;
&lt;h2&gt;What happens when you click deploy in Salesforce?&lt;/h2&gt;
&lt;p&gt;
  Whatever tool you click in, the same thing happens underneath. The tool builds a
  &lt;code&gt;package.xml&lt;/code&gt; manifest and a .zip of the selected metadata, sends it to the
  Metadata API, and Salesforce compiles it, runs Apex tests at the chosen test level,
  and saves the result. If you are new to point-and-click tools, start with
  &lt;a
    href=&quot;/resources/Click-Deploy-in-Salesforce%3A-How-ClickDeploy-Works-and-What-It-Costs&quot;
    &gt;how ClickDeploy works and what it costs&lt;/a
  &gt;.
&lt;/p&gt;
&lt;p&gt;Two platform rules explain most surprises:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;It is all or nothing by default.&lt;/strong&gt; One error rolls back the whole
    deployment. The
    &lt;a
      href=&quot;https://github.com/salesforcecli/plugin-deploy-retrieve/blob/main/messages/deploy.metadata.md&quot;
      &gt;Salesforce CLI reference&lt;/a
    &gt;
    offers a flag to ignore errors and skip the rollback, and says never to use it when
    deploying to production.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Sandboxes and production test differently.&lt;/strong&gt; The default level runs
    no tests in a sandbox, while production deployments that include Apex classes or
    triggers run all local tests. That is why a deploy can pass in UAT and fail in
    production.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Why do click deployments fail?&lt;/h2&gt;
&lt;h3&gt;1. A dependency is missing&lt;/h3&gt;
&lt;p&gt;
  The package references something the target org does not have: a field without its
  object, a Flow without the fields it reads, a child object without its parent. Copado
  Essentials, the tool formerly called ClickDeploy, documents a classic case: deploying
  a detail object alone returns
  &lt;em
    &gt;Cannot set sharingModel to ControlledByParent on a CustomObject without a
    MasterDetail relationship field&lt;/em
  &gt;. Its
  &lt;a
    href=&quot;http://docs.essentials.copado.com/en/articles/4109805-cannot-set-sharingmodel-to-controlledbyparent-on-a-customobject-without-a-masterdetail-relationship-field&quot;
    &gt;fix&lt;/a
  &gt;
  is to add the parent object to the deployment, even if it has not changed.
&lt;/p&gt;
&lt;h3&gt;2. Apex test coverage is too low&lt;/h3&gt;
&lt;p&gt;
  Salesforce
  &lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=000385650&amp;amp;language=en_US&amp;amp;type=1&quot;
    &gt;requires&lt;/a
  &gt;
  at least 75% of your Apex to be covered by unit tests to deploy to production, and
  every trigger needs at least one covered line. If you choose RunSpecifiedTests, the
  bar changes: the tests you name must cover 75% of each class and trigger in the
  package on its own. The fix is better tests, not a different test level.
&lt;/p&gt;
&lt;h3&gt;3. The API version is newer than the target&lt;/h3&gt;
&lt;p&gt;
  An error such as &lt;em&gt;Invalid api version&lt;/em&gt; usually appears around a release window,
  when your sandbox already runs the next Salesforce release and production does not.
  Winter &apos;27 is a live example: sandboxes moved to preview in late August 2026, while
  production instances upgrade over several weekends into October, so check your
  instance on Salesforce Trust. Copado&apos;s
  &lt;a
    href=&quot;http://docs.essentials.copado.com/en/articles/4109802-invalid-api-version-42-0&quot;
    &gt;guidance&lt;/a
  &gt;
  is to set the component&apos;s API version back to one production supports, then redeploy.
&lt;/p&gt;
&lt;h3&gt;4. The package is too big&lt;/h3&gt;
&lt;p&gt;
  Salesforce&apos;s own deploy library,
  &lt;a
    href=&quot;https://github.com/forcedotcom/source-deploy-retrieve/blob/main/src/client/metadataApiDeploy.ts&quot;
    &gt;source-deploy-retrieve&lt;/a
  &gt;, warns as a deployment approaches the Metadata API limits of 10,000 files and about
  39 MB zipped. Wildcard selections and whole-object deploys hit these first. Split the
  release, or ship only what changed with
  &lt;a
    href=&quot;/resources/Delta-Deployments-in-Salesforce%3A-How-to-Deploy-Only-What-Changed&quot;
    &gt;delta deployments&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h3&gt;5. The change is one the API will not make&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Active Flows.&lt;/strong&gt; Copado&apos;s
    &lt;a
      href=&quot;https://docs.essentials.copado.com/en/articles/8450645-deploying-flows-using-essentials&quot;
      &gt;Flow guide&lt;/a
    &gt;
    notes you cannot deploy a Flow version that is active in the target org. Clone it to
    a new version in the source, deploy that, and activate it in the target. It also
    warns that deploying the FlowDefinition component tends to return
    &lt;em&gt;invalid version number&lt;/em&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Picklist conversions.&lt;/strong&gt; A regular picklist cannot be converted to a
    global value set by deployment. Copado&apos;s
    &lt;a
      href=&quot;http://docs.essentials.copado.com/en/articles/4109808-cannot-change-which-global-value-set-this-picklist-uses&quot;
      &gt;workaround&lt;/a
    &gt;
    is to create a new field on the global value set and retire the old one.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How do you troubleshoot a failed click deploy, step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Read the first error, not the last.&lt;/strong&gt; One missing field can cascade
    into dozens of follow-on errors.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Name the group.&lt;/strong&gt; Dependency, coverage, version, size or unsupported
    change. Each has a different fix.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Fix the source, not the target.&lt;/strong&gt; Patching production by hand makes
    the next comparison lie.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate again.&lt;/strong&gt; Run a check-only deployment with the same test
    level production will use.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploy the validated package.&lt;/strong&gt; Our
    &lt;a
      href=&quot;/resources/Click-Deploy-Checklist%3A-How-to-Run-a-Safe-Point-and-Click-Salesforce-Deployment&quot;
      &gt;click deploy checklist&lt;/a
    &gt;
    covers test levels and quick deploy.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;What does a successful click deploy not tell you?&lt;/h2&gt;
&lt;p&gt;
  A green deploy only means Salesforce accepted the package. It does not mean the target
  matches the source:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Disabled profile permissions.&lt;/strong&gt; Copado
    &lt;a
      href=&quot;http://docs.essentials.copado.com/en/articles/12637166-known-issue-disabled-user-permissions-are-not-reflected-in-the-destination-org-during-profile-deployments&quot;
      &gt;documents&lt;/a
    &gt;
    that the Metadata API leaves disabled user permissions out of retrieved profiles, so
    a permission switched off in the source can stay on in the target.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deletions.&lt;/strong&gt; Removals travel separately, as pre- or post-deploy
    destructive changes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Someone else&apos;s work.&lt;/strong&gt; Org-to-org deploys keep no shared history, so
    a second deploy can silently overwrite the first. Deploying
    &lt;a
      href=&quot;/resources/Click-Deploy-from-Git%3A-How-to-Deploy-Salesforce-Changes-from-a-Branch&quot;
      &gt;from a Git branch&lt;/a
    &gt;
    fixes that.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Who is Tekunda, and how does Serpent reduce failed deploys?&lt;/h2&gt;
&lt;p&gt;
  Tekunda is the Salesforce consulting and product company behind Serpent, the DevOps
  platform it runs on its own client delivery. Serpent keeps the click-to-select
  experience, but every change travels through Git, a pull request and a validation with
  Apex tests before it reaches the next org, with AI code review on every paid plan. It installs nothing in your org. Teams on Copado Essentials,
  Gearset, Salto, AutoRABIT, Flosum or Blue Canvas can follow our
  &lt;a href=&quot;/migrate&quot;&gt;migration path&lt;/a&gt;, and more how-tos live in the
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Why does my deployment pass in a sandbox but fail in production?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Sandboxes run no Apex tests by default, while production runs local tests and enforces
  75% coverage. Validate against production with the same test level first.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What does &quot;invalid api version&quot; mean?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Your component uses an API version the target org does not support yet, usually during
  a release window. Lower the component&apos;s version and redeploy.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I ignore errors and deploy anyway?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The Salesforce CLI has an ignore-errors flag that skips the rollback, but its own
  reference says never to use it in production.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How many components can one deployment hold?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The Metadata API caps a deployment at 10,000 files and about 39 MB zipped. Split
  larger releases.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Click Deploy from Git: How to Deploy Salesforce Changes from a Branch]]></title>
            <description><![CDATA[How to click deploy Salesforce metadata from a Git branch: the four source options, a step-by-step flow, deletions, drift and which tools support it.]]></description>
            <link>https://serpent.cloud/resources/Click-Deploy-from-Git%3A-How-to-Deploy-Salesforce-Changes-from-a-Branch</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Click-Deploy-from-Git%3A-How-to-Deploy-Salesforce-Changes-from-a-Branch</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sun, 27 Sep 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; A click deploy from Git uses a repository branch, not a
  sandbox, as the source of a point-and-click Salesforce deployment. Tools typically
  offer four modes: selected components, the whole branch, the differences between two
  branches, or everything committed since the last successful build. For team releases,
  deploy branch differences, validate first, and route deletions through a pull request.
&lt;/p&gt;
&lt;h2&gt;What is a click deploy from Git?&lt;/h2&gt;
&lt;p&gt;
  A classic click deploy compares two orgs and ships the components you tick, as we
  explain in
  &lt;a
    href=&quot;/resources/Click-Deploy-in-Salesforce%3A-How-ClickDeploy-Works-and-What-It-Costs&quot;
    &gt;how ClickDeploy works and what it costs&lt;/a
  &gt;. A Git-based click deploy keeps the same UI but swaps the source: the tool reads
  metadata from a branch in a repository such as GitHub, GitLab, Bitbucket or Azure
  DevOps and deploys it to the target org. You still click. The difference is that every
  change was committed before it shipped.
&lt;/p&gt;
&lt;h2&gt;Why deploy from a branch instead of an org?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;A shared history.&lt;/strong&gt; Org-to-org deploys keep no record of who changed
    what, so a second deploy can silently overwrite the first. A branch keeps every
    change and its author.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Review before release.&lt;/strong&gt; Changes can pass a pull request before they
    reach any org.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;A known source of truth.&lt;/strong&gt; The branch mapped to production shows what
    production should contain, which is what makes a rollback dependable.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Expect some noise.
  &lt;a
    href=&quot;https://docs.gearset.com/en/articles/3931770-why-are-there-differences-between-my-git-branch-and-my-org-after-initialization&quot;
    &gt;Gearset&apos;s documentation&lt;/a
  &gt;
  notes that orgs keep changing through automated jobs, platform upgrades and user
  activity, that the Metadata API reorders XML for some component types, and that
  profile metadata depends on what else is retrieved with it. It recommends tracking
  frequently changed, high-impact metadata types rather than everything.
&lt;/p&gt;
&lt;h2&gt;What are the Git source options for a click deploy?&lt;/h2&gt;
&lt;p&gt;
  Copado Essentials, the tool formerly called ClickDeploy, documents four
  &lt;a
    href=&quot;https://docs.essentials.copado.com/en/articles/4109727-deploy-from-git-to-salesforce-git-source-options&quot;
    &gt;Git source options&lt;/a
  &gt;, and they map well onto other tools:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Selected components from a branch.&lt;/strong&gt; Works like an org-to-org deploy:
    you pick components from the branch by hand. It suits a targeted hotfix.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Everything in a branch.&lt;/strong&gt; Deploys the full branch contents in one go.
    It suits a fresh or rebuilt environment; against production it ships far more than
    the change.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Differences between two branches.&lt;/strong&gt; Compares a source branch with a
    comparison branch and deploys only what differs. Copado advises that the comparison
    branch be the one associated with the target org.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Incremental build.&lt;/strong&gt; A CI job deploys only files committed since the
    last successful build, tracked by a build marker that advances after each successful
    deployment. A successful validate-only CI job does not move the marker.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Option three is the Git-native form of
  &lt;a
    href=&quot;/resources/Delta-Deployments-in-Salesforce%3A-How-to-Deploy-Only-What-Changed&quot;
    &gt;delta deployments&lt;/a
  &gt;, and it is the right default for promoting a feature from one environment branch to
  the next.
&lt;/p&gt;
&lt;h2&gt;How do you click deploy from a Git branch, step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Connect the repository and the target org.&lt;/strong&gt; Authorise both in your
    tool and keep the repository in one metadata format. Gearset notes that Metadata API
    format and DX format repositories are structured differently.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Map branches to environments.&lt;/strong&gt; Decide which branch represents each
    org, for example one for UAT and &lt;code&gt;main&lt;/code&gt; for production. Branch
    comparisons are only as good as this mapping.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Choose the source and comparison branches.&lt;/strong&gt; Pick the feature or
    release branch as the source and the branch mapped to the target org as the
    comparison.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Review the diff.&lt;/strong&gt; Read what the tool plans to deploy. If expected
    metadata is missing, look for a &lt;code&gt;package.xml&lt;/code&gt;: Gearset filters
    comparisons by a valid one by default.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Handle deletions deliberately.&lt;/strong&gt; In Copado Essentials, marking
    components for deletion in a Git flow removes them from the branch first, so you
    commit the change and merge it by pull request before the org changes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate, then deploy.&lt;/strong&gt; Run a check-only validation with a chosen
    Apex test level, then deploy. Our
    &lt;a
      href=&quot;/resources/Click-Deploy-Checklist%3A-How-to-Run-a-Safe-Point-and-Click-Salesforce-Deployment&quot;
      &gt;click deploy checklist&lt;/a
    &gt;
    covers test levels and quick deploy.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Merge back.&lt;/strong&gt; After a successful deploy, merge the source into the
    comparison branch so the branch matches the org again.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Which tools support click deploys from Git, and what do they cost?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Copado Essentials:&lt;/strong&gt; Git integration with GitHub, Bitbucket, GitLab
    and Azure DevOps sits in Essentials Plus, at $249 per user per month billed annually
    or $289 monthly, with a 21-day trial, according to its
    &lt;a href=&quot;https://www.copado.com/pricing&quot;&gt;pricing page&lt;/a&gt;. The Free and Basic
    tiers do not list Git integration.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Gearset:&lt;/strong&gt; its Compare and deploy page accepts a source control
    branch as either the source or the target, per its
    &lt;a href=&quot;https://docs.gearset.com/en/articles/619012-configuring-comparisons&quot;
      &gt;help centre&lt;/a
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;DevOps Center:&lt;/strong&gt; Salesforce&apos;s native, point-and-click and Git-backed
    option.
    &lt;a
      href=&quot;https://www.salesforceben.com/next-generation-salesforce-devops-center-get-hands-on/&quot;
      &gt;Salesforce Ben&lt;/a
    &gt;
    reports that the next-generation version has run natively in production orgs since
    Spring &apos;26, supports GitHub and Bitbucket, and exposes its operations through the
    official Salesforce MCP server.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The CLI route:&lt;/strong&gt; teams comfortable with a terminal use the community
    plugin &lt;a href=&quot;https://github.com/scolladon/sfdx-git-delta&quot;&gt;sfdx-git-delta&lt;/a&gt;,
    whose &lt;code&gt;sf sgd source delta&lt;/code&gt; command builds a &lt;code&gt;package.xml&lt;/code&gt; and
    a &lt;code&gt;destructiveChanges.xml&lt;/code&gt; from two commits. Its maintainers state it is
    not an officially supported Salesforce tool.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Per-user pricing adds up fast once Git enters the picture: five people on Essentials
  Plus come to $1,245 a month on annual billing.
&lt;/p&gt;
&lt;h2&gt;How does Tekunda handle Git-based click deploys?&lt;/h2&gt;
&lt;p&gt;
  Tekunda is the Salesforce consulting and product company behind Serpent, the DevOps
  platform it also runs on its own client delivery. In Serpent, admins keep clicking:
  they pick changes in a UI, attach them to a ticket and promote them through the
  pipeline, while Git commits, pull requests and Apex tests run underneath. We walk
  through that flow in
  &lt;a
    href=&quot;/resources/Salesforce-DevOps-for-Admins%3A-How-to-Deploy-Without-Touching-Git&quot;
    &gt;DevOps for admins without touching Git&lt;/a
  &gt;. Serpent prices per company rather than per user, so compare it with per-seat tools
  on our &lt;a href=&quot;/pricing&quot;&gt;pricing page&lt;/a&gt;, and teams leaving Copado Essentials can
  follow the &lt;a href=&quot;/migrate&quot;&gt;migration path&lt;/a&gt;. More how-tos live in the
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can I click deploy from GitHub to Salesforce without the CLI?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Copado Essentials Plus, Gearset and DevOps Center all deploy from a Git branch
  through a point-and-click UI.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;What is the difference between a branch deploy and a delta deploy?&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
  A branch deploy ships everything in the branch. A delta deploy ships only what differs
  between two branches or commits.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does a Git click deploy delete metadata?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only when you ask it to. Deletions travel as destructive changes, and in Copado
  Essentials they are committed and merged by pull request first.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why does my branch differ from my org right after setup?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Orgs keep changing, and the Metadata API can reorder XML or return different profile
  content, so some drift is normal.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Click Deploy Checklist: How to Run a Safe Point-and-Click Salesforce Deployment]]></title>
            <description><![CDATA[A step-by-step click deploy checklist for Salesforce: compare orgs, add dependencies, pick the right Apex test level, validate, then quick deploy.]]></description>
            <link>https://serpent.cloud/resources/Click-Deploy-Checklist%3A-How-to-Run-a-Safe-Point-and-Click-Salesforce-Deployment</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Click-Deploy-Checklist%3A-How-to-Run-a-Safe-Point-and-Click-Salesforce-Deployment</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; A click deploy moves Salesforce metadata from one org to
  another by selecting components in a UI instead of building a change set or typing CLI
  commands. To run one safely, compare the orgs, add dependencies, validate with a
  deliberate Apex test level, then quick deploy the validated package and verify it. The
  full checklist is below.
&lt;/p&gt;
&lt;h2&gt;What is a click deploy in Salesforce?&lt;/h2&gt;
&lt;p&gt;
  &quot;Click deploy&quot; is shorthand for point-and-click deployment: a tool compares a source
  and a target org, shows what changed, and deploys the components you tick. The name
  comes from ClickDeploy, which Copado acquired in 2020 and now sells as Copado
  Essentials; we cover its history and pricing in
  &lt;a
    href=&quot;/resources/Click-Deploy-in-Salesforce%3A-How-ClickDeploy-Works-and-What-It-Costs&quot;
    &gt;how ClickDeploy works and what it costs&lt;/a
  &gt;. Copado Essentials, Gearset and other click-based tools all hand the final package
  to the Salesforce Metadata API, so the platform&apos;s rules apply whichever tool you click
  in. That is why this checklist works everywhere.
&lt;/p&gt;
&lt;h2&gt;How do you run a safe click deploy, step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Refresh the comparison.&lt;/strong&gt; Compare source and target right before you
    deploy, not the day before. Someone may have changed the target since.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Select the change, then its dependencies.&lt;/strong&gt; A new field needs its
    object, and a Flow may need fields, Apex classes or permission sets. Most tools flag
    missing dependencies; trust the flag, not memory.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep the package small.&lt;/strong&gt; Ship only what changed. Salesforce caps a
    deployment .zip at 39 MB, as
    &lt;a
      href=&quot;https://docs.gearset.com/en/articles/4110937-how-does-gearset-handle-requests-that-exceed-the-download-limit&quot;
      &gt;Gearset&apos;s documentation&lt;/a
    &gt;
    notes, and small packages are easier to debug.
    &lt;a
      href=&quot;/resources/Delta-Deployments-in-Salesforce%3A-How-to-Deploy-Only-What-Changed&quot;
      &gt;Delta deployments&lt;/a
    &gt;
    make this the default.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Plan deletions separately.&lt;/strong&gt; Removals travel in destructive-change
    manifests, which the
    &lt;a
      href=&quot;https://github.com/salesforcecli/plugin-deploy-retrieve/blob/main/messages/deploy.metadata.md&quot;
      &gt;Salesforce CLI&lt;/a
    &gt;
    applies either before or after the deploy. Choose the order based on what still
    references the component.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate first.&lt;/strong&gt; Run a check-only validation. It runs Apex tests and
    reports errors without saving anything to the org.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Pick the test level on purpose.&lt;/strong&gt; The default is not always right;
    see the next section.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Quick deploy the validated package.&lt;/strong&gt; In production, a successful
    validation can be released later without re-running Apex tests. The
    &lt;a
      href=&quot;https://github.com/salesforcecli/plugin-deploy-retrieve/blob/main/messages/deploy.metadata.quick.md&quot;
      &gt;CLI reference&lt;/a
    &gt;
    says the job ID stays valid for 10 days from the start of validation, so you can
    validate in the afternoon and release in a quiet window.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Verify and record.&lt;/strong&gt; Open the changed pages, run a quick smoke test
    and note exactly what shipped, so a rollback has something to roll back to.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Which Apex test level should you choose?&lt;/h2&gt;
&lt;p&gt;
  The Salesforce CLI documents five test levels, and most click tools show the same list
  under friendlier names:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;NoTestRun:&lt;/strong&gt; no tests. Allowed only for development environments such
    as sandboxes, Developer Edition and trial orgs.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;RunSpecifiedTests:&lt;/strong&gt; only the tests you name.
    &lt;a href=&quot;https://docs.gearset.com/en/articles/1376067-setting-apex-test-levels&quot;
      &gt;Gearset&apos;s guide&lt;/a
    &gt;
    notes that each class or trigger in the package then needs 75% coverage on its own.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;RunLocalTests:&lt;/strong&gt; every test except those from installed managed and
    unlocked packages. It is the default for production deployments that include Apex
    classes or triggers.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;RunAllTestsInOrg:&lt;/strong&gt; everything, managed package tests included.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;RunRelevantTests (beta):&lt;/strong&gt; Salesforce picks tests by analysing the
    payload and its dependencies. It needs API version 66 or later.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Be careful with RunRelevantTests in production.
  &lt;a href=&quot;https://bobbuzzard.blogspot.com/2026/01/run-relevant-tests-in-spring-26.html&quot;
    &gt;Bob Buzzard&apos;s Spring &apos;26 testing&lt;/a
  &gt;
  found it picked tests with direct dependencies on the changed code but missed indirect
  chains and dynamically instantiated classes. Mark must-pass tests with
  &lt;code&gt;@IsTest(critical=true)&lt;/code&gt; before you rely on it.
&lt;/p&gt;
&lt;h2&gt;When is a click deploy the wrong tool?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;More than one person ships to the same org.&lt;/strong&gt; Org-to-org deploys keep
    no shared history, so the second deploy can overwrite the first.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;You need a dependable rollback.&lt;/strong&gt; Rolling back is easiest when every
    release was committed before it shipped.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;You ship a managed package.&lt;/strong&gt; ISVs release package versions to
    subscribers, not org diffs; see
    &lt;a href=&quot;/resources/The-Secrets-of-Salesforce-Second-Generation-Managed-Package&quot;
      &gt;second-generation managed packages&lt;/a
    &gt;.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Leaving org-to-org deploys behind does not mean leaving clicks behind. Admins can keep
  selecting changes in a UI while the tool writes the Git commits, as we show in
  &lt;a
    href=&quot;/resources/Salesforce-DevOps-for-Admins%3A-How-to-Deploy-Without-Touching-Git&quot;
    &gt;DevOps for admins without touching Git&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;How does Tekunda handle click-based deployment?&lt;/h2&gt;
&lt;p&gt;
  Tekunda is the Salesforce consulting and product company behind Serpent, the DevOps
  platform it also uses for its own client delivery. Serpent keeps the click-to-select
  experience: you pick changes, attach them to a ticket and promote them through your
  pipeline, while Git, pull requests, validation and Apex tests run underneath, with AI
  code review on every paid plan. It installs nothing in your org and starts free, with flat
  team pricing on our &lt;a href=&quot;/pricing&quot;&gt;pricing page&lt;/a&gt;. More walkthroughs live in the
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Is a click deploy the same as a change set?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Both move metadata between orgs, but a click tool builds the package from an org
  comparison instead of you adding components to a change set one by one.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How long can I wait between validation and quick deploy?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Up to 10 days from when the validation started, according to the Salesforce CLI
  reference.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do sandbox deployments run Apex tests?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not by default. Salesforce&apos;s default level runs no tests in a sandbox, while
  production deployments that include Apex classes or triggers run local tests.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I click deploy for free?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Copado Essentials has a free tier of up to 15 deployments a month for one user,
  and Serpent also offers a free plan.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Click Deploy in Salesforce: How ClickDeploy Works and What It Costs]]></title>
            <description><![CDATA[What click deploy means in Salesforce: ClickDeploy's move to Copado Essentials, the five deploy steps, current pricing and when to switch to Git.]]></description>
            <link>https://serpent.cloud/resources/Click-Deploy-in-Salesforce%3A-How-ClickDeploy-Works-and-What-It-Costs</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Click-Deploy-in-Salesforce%3A-How-ClickDeploy-Works-and-What-It-Costs</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Fri, 25 Sep 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; In Salesforce, &quot;click deploy&quot; usually means ClickDeploy, the
  point-and-click deployment tool Copado acquired in 2020 and now sells as Copado
  Essentials. A click deploy compares two orgs, lets you tick the changed components,
  validates them and deploys, with no change sets and no command line. It is a solid
  first step off change sets, and you outgrow it once several people ship to the same
  org.
&lt;/p&gt;
&lt;h2&gt;What is ClickDeploy in Salesforce?&lt;/h2&gt;
&lt;p&gt;
  ClickDeploy was a release management tool from a Sydney-based AppExchange partner,
  built to move metadata between Salesforce orgs faster than change sets. Copado
  &lt;a
    href=&quot;https://www.prweb.com/releases/copado-acquires-clickdeploy-to-empower-every-salesforce-customer-to-accelerate-time-to-value-with-devops-851050349.html&quot;
    &gt;announced the acquisition&lt;/a
  &gt;
  on 23 September 2020, when ClickDeploy reported hundreds of customers and more than
  100,000 deployments across 30+ countries. Today clickdeploy.io redirects to
  &lt;a href=&quot;https://www.copado.com/pricing&quot;&gt;Copado Essentials&lt;/a&gt;, and the
  &lt;a
    href=&quot;https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EJHcCUAX&quot;
    &gt;AppExchange listing&lt;/a
  &gt;
  reads &quot;Copado Essentials (formerly ClickDeploy)&quot;.
&lt;/p&gt;
&lt;p&gt;
  People also use the phrase generically for any one-click Salesforce deployment. Either
  way the idea is the same: select metadata in a UI and push it to a target org without
  assembling a change set by hand.
&lt;/p&gt;
&lt;h2&gt;How does a click deploy work, step by step?&lt;/h2&gt;
&lt;p&gt;
  Copado&apos;s
  &lt;a
    href=&quot;https://docs.essentials.copado.com/en/articles/11869624-getting-started-with-your-first-successful-deployment-in-copado-essentials&quot;
    &gt;getting-started guide&lt;/a
  &gt;
  describes the quick path in five steps, and most click-based tools follow the same
  shape:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Connect two orgs.&lt;/strong&gt; Authorise a source org and a target org. No
    package install is needed.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Start a deployment.&lt;/strong&gt; Choose which org is the source and which is the
    target.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Pick components.&lt;/strong&gt; The tool compares the orgs and flags new and
    modified metadata; you tick what should ship.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate.&lt;/strong&gt; Run a check-only deployment so errors and test failures
    surface before anything changes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploy.&lt;/strong&gt; Once validation passes, deploy and watch the progress in
    real time.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Underneath, these tools call Salesforce&apos;s Metadata API, so the platform rules still
  apply. One is worth knowing: after a successful validation against production, a quick
  deploy can release the same package without re-running Apex tests, and the
  &lt;a
    href=&quot;https://github.com/salesforcecli/plugin-deploy-retrieve/blob/main/messages/deploy.metadata.quick.md&quot;
    &gt;Salesforce CLI reference&lt;/a
  &gt;
  says that validation job ID stays valid for 10 days. To keep each package small, pair
  the clicks with
  &lt;a
    href=&quot;/resources/Delta-Deployments-in-Salesforce%3A-How-to-Deploy-Only-What-Changed&quot;
    &gt;delta deployments&lt;/a
  &gt;
  that ship only what changed.
&lt;/p&gt;
&lt;h2&gt;What does Copado Essentials cost?&lt;/h2&gt;
&lt;p&gt;
  Copado&apos;s &lt;a href=&quot;https://www.copado.com/pricing&quot;&gt;Essentials page&lt;/a&gt; lists three
  levels:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Free:&lt;/strong&gt; up to 15 deployments a month for a single user, with no
    credit card.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Essentials Basic:&lt;/strong&gt; $99 per user per month billed annually, or $119
    monthly, with unlimited deployments.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Essentials Plus:&lt;/strong&gt; $249 per user per month billed annually, or $289
    monthly, adding CI jobs, release pipelines, work items and Git integration.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Per-user pricing works for one admin and adds up quickly for a team. Five people on
  Essentials Plus come to $1,245 a month on annual billing. Serpent prices per company
  instead, with unlimited users on its Scale plan at $699 a month; the full breakdown is
  on our &lt;a href=&quot;/pricing&quot;&gt;pricing page&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;When should you move beyond click deployments?&lt;/h2&gt;
&lt;p&gt;
  Org-to-org clicking works while one person owns releases. These signals say it is time
  for a Git-backed pipeline:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Two people deploy to the same org.&lt;/strong&gt; Without a shared history,
    whoever deploys second silently overwrites the first.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;You need a dependable undo.&lt;/strong&gt; Rollback is most reliable when every
    release was committed before it shipped.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Tests should gate every change.&lt;/strong&gt; Running Apex tests on each pull
    request, not just at the last hop, is covered in
    &lt;a
      href=&quot;/resources/Salesforce-test-automation-in-CI%3A-what-to-run-on-every-pull-request%2C-and-what-to-run-nightly&quot;
      &gt;what to run on every pull request and what to run nightly&lt;/a
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;You ship a managed package.&lt;/strong&gt; ISVs release package versions, not
    org-to-org diffs; see
    &lt;a href=&quot;/resources/The-Secrets-of-Salesforce-Second-Generation-Managed-Package&quot;
      &gt;second-generation managed packages&lt;/a
    &gt;.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Moving to Git does not mean admins have to learn it. A ticket-based tool keeps the
  click-to-select experience and writes the commits for you, as we show in
  &lt;a
    href=&quot;/resources/Salesforce-DevOps-for-Admins%3A-How-to-Deploy-Without-Touching-Git&quot;
    &gt;DevOps for admins without touching Git&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;How does Tekunda approach point-and-click deployment?&lt;/h2&gt;
&lt;p&gt;
  Tekunda is the Salesforce consulting and product company behind Serpent, the DevOps
  platform it also uses for its own client delivery. Serpent keeps the click workflow
  admins like: you pick changes in a UI, attach them to a ticket and promote them
  through your pipeline, while Git, pull requests and Apex tests run underneath. It
  installs nothing in your org and includes AI code review on every paid plan. Teams already on Copado can follow our
  &lt;a href=&quot;/migrate&quot;&gt;migration path&lt;/a&gt;, and more walkthroughs live in the
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Is ClickDeploy still free?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes, as Copado Essentials. The free tier covers up to 15 deployments a month for one
  user, with no credit card.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is ClickDeploy the same as Copado Essentials?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Copado acquired ClickDeploy in 2020 and renamed it, and the AppExchange listing
  still says &quot;formerly ClickDeploy&quot;.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I click deploy without Git?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Org-to-org deployments work without a repository, but you give up the shared
  history that team review and audits depend on.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is a quick deploy in Salesforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  It releases a recently validated deployment to production without re-running Apex
  tests. The validation job ID is valid for 10 days.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Source-driven development in Salesforce, explained]]></title>
            <description><![CDATA[The repo is the source of truth, not the org. What that changes, how source tracking and source format work, and what to do when the two disagree.]]></description>
            <link>https://serpent.cloud/resources/Source-driven-development-in-Salesforce%2C-explained</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Source-driven-development-in-Salesforce%2C-explained</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Definition first:&lt;/strong&gt; source-driven development is the model where your
  Git repository, not any org, is the source of truth for your Salesforce configuration
  and code. Orgs become disposable environments you deploy &lt;em&gt;from&lt;/em&gt; the repo,
  rather than places you copy changes &lt;em&gt;between&lt;/em&gt;. Everything else in this guide
  follows from that one sentence.
&lt;/p&gt;

&lt;h2&gt;What is source-driven development in Salesforce?&lt;/h2&gt;
&lt;p&gt;
  In source-driven development, every change lands in version control first and reaches
  an org second. The repository holds the intended state of the org. A deployment is the
  act of making an org match that intent.
&lt;/p&gt;
&lt;p&gt;Three practical properties come with it:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;History.&lt;/strong&gt; Every change has an author, a timestamp and a reason
    attached to it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Reversibility.&lt;/strong&gt; Rolling back is deploying a previous known-good
    state, not reconstructing one from memory.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Parallelism.&lt;/strong&gt; Two people can work on the same object without one
    silently overwriting the other, because the merge is explicit.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;How is it different from org-to-org deployment?&lt;/h2&gt;
&lt;p&gt;
  Org-to-org deployment, whether by change sets or by direct comparison of two orgs,
  treats a live org as the reference. That is the actual distinction, and it has
  consequences.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Where truth lives.&lt;/strong&gt; Org-to-org: the source org. Source-driven: the
    branch.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;What a release is.&lt;/strong&gt; Org-to-org: a list of components assembled by a
    person. Source-driven: a diff between two commits.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;What history you get.&lt;/strong&gt; Org-to-org: whatever the deployment log kept.
    Source-driven: the full change history, forever.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;How you roll back.&lt;/strong&gt; Org-to-org: rebuild the previous state manually.
    Source-driven: deploy the previous commit.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Who can audit it.&lt;/strong&gt; Org-to-org: whoever has admin access.
    Source-driven: anyone who can read the repo, including auditors who should never
    touch production.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Note what is &lt;em&gt;not&lt;/em&gt; on that list: speed. Source-driven development is not
  automatically faster. It is repeatable, which is a different and more durable
  property.
&lt;/p&gt;

&lt;h2&gt;What is source tracking, and where does it work?&lt;/h2&gt;
&lt;p&gt;
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_source_tracking.htm&quot;
    &gt;Source tracking&lt;/a
  &gt;
  is the platform feature that records which components changed in an org or in your
  local project since the last sync, so you can pull only what actually moved instead of
  retrieving everything and reading a diff.
&lt;/p&gt;
&lt;p&gt;
  The constraint people hit is coverage. Source tracking is available in scratch orgs
  and in
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_setup_enable_source_tracking_sandboxes.htm&quot;
    &gt;Developer and Developer Pro sandboxes&lt;/a
  &gt;. It is not available everywhere, which means a source-driven model has to answer for
  the environments that cannot track changes for you: full sandboxes, partial copies and
  production. Those are exactly the orgs where undocumented changes happen.
&lt;/p&gt;

&lt;h2&gt;Source format or metadata format: which do you commit?&lt;/h2&gt;
&lt;p&gt;Commit source format. The two formats describe the same metadata differently:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Metadata format&lt;/strong&gt; is the Metadata API shape: broad files per object
    plus a &lt;code&gt;package.xml&lt;/code&gt; manifest. One field edit rewrites a large file, so
    the diff carries the whole object and reviews get noisy.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong
      &gt;&lt;a
        href=&quot;https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_source_file_format.htm&quot;
        &gt;Source format&lt;/a
      &gt;&lt;/strong
    &gt;
    decomposes that structure: each field, validation rule and list view gets its own
    file in a folder tree, with package directories declared in
    &lt;code&gt;sfdx-project.json&lt;/code&gt;.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The practical effect is on review and merge, not on function. Small files produce
  readable diffs and far fewer conflicts when two people touch the same object, which is
  precisely the situation source-driven development exists to survive.
&lt;/p&gt;

&lt;p&gt;
  Source format does not decompose everything, though. Profiles, permission sets and
  sharing rules still land in large shared files, so two people editing the same profile
  can still collide. Decide who owns those files before you migrate. Source tracking
  does not cover every metadata type either: check the Metadata Coverage Report before
  you assume a type is tracked.
&lt;/p&gt;

&lt;h2&gt;What happens when the org and the repo disagree?&lt;/h2&gt;
&lt;p&gt;
  This is the question most explainers skip, and it is the one that decides whether the
  model survives contact with a real Salesforce team. Someone will always change
  something in production. A hotfix at midnight, an admin adding a picklist value, a
  managed package upgrade rewriting metadata you had committed.
&lt;/p&gt;
&lt;p&gt;Decide these three things before you migrate, not after:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Who wins.&lt;/strong&gt; The repo wins by policy. That means an out-of-band change
    is not &quot;lost&quot;, it is reconciled: retrieved, committed with an explanation and then
    re-deployed from the branch.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;How you find out.&lt;/strong&gt; Run drift detection against production on a
    schedule. Discovering divergence at release time is discovering it too late.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;What is deliberately out of scope.&lt;/strong&gt; Some metadata is genuinely
    environment-specific or owned by an installed package. Write that exclusion list
    down. An honest exclusion list beats a repo everyone quietly distrusts.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;How do you adopt this without a Git-fluent team?&lt;/h2&gt;
&lt;p&gt;
  Most Salesforce teams are admins and consultants, not CLI users, and this is where
  source-driven migrations usually stall. Sequence it so that nobody has to learn Git to
  keep working:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Pick one package boundary to start.&lt;/strong&gt; One team, one set of metadata.
    Do not try to commit the whole org in week one.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Retrieve into source format&lt;/strong&gt; and get a clean deploy of that scope
    into a sandbox before anyone changes their habits.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Put a gate in front of production.&lt;/strong&gt; Even a manual approval on a
    branch counts. Truth without a gate drifts back within a month.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep the everyday interface familiar.&lt;/strong&gt; Admins should still work in a
    ticket or a work item; the commit, branch and merge should happen underneath them.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Add drift detection last.&lt;/strong&gt; Once the pipeline is trusted, it tells
    you where the model is leaking.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
  Still on change sets? Start with
  &lt;a href=&quot;/resources/How-to-Graduate-From-Change-Sets-to-Source-Control-in-Salesforce&quot;
    &gt;how to graduate from change sets to source control&lt;/a
  &gt;, then automate delivery with
  &lt;a href=&quot;/resources/how-to-build-a-salesforce-ci-cd-pipeline-using-github-actions&quot;
    &gt;a Salesforce CI/CD pipeline on GitHub Actions&lt;/a
  &gt;. Or let us &lt;a href=&quot;/migrate&quot;&gt;run the migration with you&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Does source-driven development require every admin to learn Git?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. It requires the repository to be authoritative. Which humans interact with Git
  directly is a tooling choice, not a property of the model.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I have to convert my org to source format all at once?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Convert by package boundary or by team. A partial repository that is genuinely
  authoritative for its scope beats a complete one nobody trusts.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is source-driven development the same as CI/CD?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Source-driven development decides where truth lives. CI/CD automates moving that
  truth into orgs. You can have the first without the second, but not usefully the
  reverse.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What about metadata that cannot be source controlled?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Some settings and package-owned components will not round-trip cleanly. Document them
  as excluded and control them by procedure instead of pretending the repo covers them.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is source-driven development the same as Salesforce DX?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Salesforce DX is the tooling and the file format; source-driven development is the
  practice of making the repository, not the org, the source of truth.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I need scratch orgs for source-driven development?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Scratch orgs help, but sandboxes with source tracking support the model too, so
  you can adopt it without a full scratch-org workflow.
&lt;/p&gt;

&lt;p&gt;
  Serpent is built for exactly the team this guide describes: the repository stays the
  source of truth while admins and consultants work in tickets, with delta deployments,
  drift detection and one-click rollback on top. More reference guides are in
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Graduate From Change Sets to Source Control in Salesforce]]></title>
            <description><![CDATA[A step-by-step playbook to move Salesforce deployments from change sets to Git-based source control without freezing your delivery.]]></description>
            <link>https://serpent.cloud/resources/How-to-Graduate-From-Change-Sets-to-Source-Control-in-Salesforce</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Graduate-From-Change-Sets-to-Source-Control-in-Salesforce</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Thu, 24 Sep 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; To graduate from change sets to source control, put your org&apos;s
  metadata in a Git repository, adopt a source-tracked development environment, and
  deploy through a pipeline instead of hand-picking components. Do it incrementally:
  enable source tracking, pilot one team on Git and a validate-only pipeline, then
  retire change sets scope by scope.
&lt;/p&gt;
&lt;p&gt;
  Salesforce itself now recommends customers graduate from the org-to-org release model,
  and most guides tell you why change sets fall short. Fewer give you the actual
  migration path. This guide is that path: a repeatable playbook you can run without
  freezing delivery.
&lt;/p&gt;
&lt;h2&gt;What does it mean to graduate from change sets to source control?&lt;/h2&gt;
&lt;p&gt;
  It means moving the source of truth for your metadata out of the org and into a
  version control system, usually Git. Change sets copy components org to org and leave
  no history. Source control stores every layout, flow, permission set, and Apex class
  as versioned files, so you can branch, review, deploy, and roll back. The org becomes
  a deployment target instead of the master record.
&lt;/p&gt;
&lt;h2&gt;Why move off change sets?&lt;/h2&gt;
&lt;p&gt;
  Change sets are a fine starting point and stay useful for tiny teams. They hit a wall
  as you grow:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;No version control and no history of who changed what.&lt;/li&gt;
  &lt;li&gt;No automated rollback if a deployment goes wrong.&lt;/li&gt;
  &lt;li&gt;No code review before changes land.&lt;/li&gt;
  &lt;li&gt;Manual selection of every component, which is slow and error-prone.&lt;/li&gt;
  &lt;li&gt;Unsupported metadata types and immutable, non-editable uploads.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;When is it time to make the switch?&lt;/h2&gt;
&lt;p&gt;Consider moving as soon as any of these are true:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;More than one person makes changes in parallel.&lt;/li&gt;
  &lt;li&gt;You run three or more environments.&lt;/li&gt;
  &lt;li&gt;You ship frequent or emergency releases.&lt;/li&gt;
  &lt;li&gt;You have compliance needs: approvals, separation of duties, audit trails.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If two or more apply, change sets are already costing you more than they save.&lt;/p&gt;
&lt;h2&gt;How do you migrate from change sets to source control?&lt;/h2&gt;
&lt;p&gt;
  Run these steps in order. The goal is a working pipeline for one scope before you
  expand.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Create the repository.&lt;/strong&gt; Stand up a Git repo and agree a branching
    model your team understands.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Enable source tracking in production.&lt;/strong&gt; New Developer and Developer
    Pro sandboxes then inherit it, which is what makes automatic change capture
    possible.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Establish a baseline.&lt;/strong&gt; Retrieve your existing org metadata with the
    Salesforce CLI and commit it as the first snapshot of truth.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Convert to source format.&lt;/strong&gt; Use the CLI to break large metadata files
    into smaller, mergeable source files that reduce conflicts.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Pilot one team.&lt;/strong&gt; Move a single team or project to feature branches
    and a validate-only deployment while everyone else keeps using change sets.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Add continuous integration.&lt;/strong&gt; Wire a pipeline that validates each
    pull request and deploys merged source to the next environment.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Retire change sets by scope.&lt;/strong&gt; Once the first pipeline is trusted,
    switch that scope off change sets and repeat for the next team.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Change sets vs source control: what actually changes?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Source of truth:&lt;/strong&gt; the org becomes a deployment target; the
    repository holds the record.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Change capture:&lt;/strong&gt; manual ticking becomes automatic source tracking.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Review:&lt;/strong&gt; no review becomes pull requests.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Deploy:&lt;/strong&gt; manual clicks become a repeatable pipeline.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Recovery:&lt;/strong&gt; no rollback becomes revert-and-redeploy from history.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Which tools should you use?&lt;/h2&gt;
&lt;p&gt;
  The free baseline is Salesforce&apos;s own: the Salesforce CLI, Salesforce DX, and
  &lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=platform.next_generation_devops_center.htm&amp;amp;language=en_US&amp;amp;type=5&quot;
    &gt;DevOps Center&lt;/a
  &gt;, which replaces change sets with a Git-backed UI and integrates with GitHub and
  Bitbucket. When you need managed pipelines, backups, metadata-aware diffs, and quality
  gates, platforms such as Serpent, Copado, Gearset, AutoRABIT, Flosum, Salto, and Blue
  Canvas build on the same Git foundation. Start free, then adopt a platform when
  process, not tooling, is your bottleneck. We walk through this specific upgrade path
  on &lt;a href=&quot;/compare/change-sets&quot;&gt;change sets versus Serpent&lt;/a&gt;. For more Salesforce
  DevOps how-tos, see the &lt;a href=&quot;/resources&quot;&gt;Serpent guides&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
  For the mindset shift behind the move, read
  &lt;a
    href=&quot;/resources/From-Change-Sets-to-Source-Control%3A-The-Shift-You-Can%E2%80%99t-Ignore-Anymore&quot;
    &gt;the shift you can&apos;t ignore anymore&lt;/a
  &gt;, and when you are ready to build a repeatable release flow, our
  &lt;a href=&quot;/resources/From-Change-Sets-to-Continuous-Delivery%3A-SF-DevOps-Playbook&quot;
    &gt;change sets to continuous delivery playbook&lt;/a
  &gt;
  takes it further.
&lt;/p&gt;
&lt;h2&gt;How do you avoid common migration mistakes?&lt;/h2&gt;
&lt;p&gt;
  Do not try a big-bang cutover. Migrate one scope at a time and keep change sets
  running in parallel until each pipeline is proven. Enable source tracking before you
  build, not after, or your first sandboxes will not capture changes. And baseline the
  whole org before anyone starts a feature branch, so your repository reflects
  production from day one rather than drifting from it.
&lt;/p&gt;
&lt;p&gt;
  Plan profiles and permission sets deliberately, since they are the hardest metadata to
  version cleanly. Keep the parallel run short, because two sources of truth for long
  defeats the purpose. And bring admins along from the start: the switch fails on
  culture more often than on tooling.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Do I have to stop using change sets immediately?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Migrate scope by scope and keep change sets for teams that have not moved yet, so
  delivery never freezes.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What environments support source tracking?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Scratch orgs and Developer and Developer Pro sandboxes support source tracking;
  Partial Copy and Full sandboxes do not.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is DevOps Center enough, or do I need a paid tool?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  DevOps Center is a free, Git-backed starting point. Add a commercial platform when you
  need managed pipelines, backups, or advanced quality gates.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do I baseline an existing org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Retrieve the org&apos;s metadata with the Salesforce CLI, convert it to source format, and
  commit it as the first version in your repository.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I move from change sets to Git without writing code?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Serpent gives admins point-and-click source control on Git, and our team seeds
  the repository with you, as we show in
  &lt;a href=&quot;/compare/change-sets&quot;&gt;change sets versus Serpent&lt;/a&gt;.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic DevOps for Salesforce: How to Pilot AI Agents in Your Pipeline Safely]]></title>
            <description><![CDATA[A practical guide to agentic DevOps for Salesforce: what Agentia and AgentOps change, and how to pilot AI agents in your pipeline without losing control.]]></description>
            <link>https://serpent.cloud/resources/Agentic-DevOps-for-Salesforce%3A-How-to-Pilot-AI-Agents-in-Your-Pipeline-Safely</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Agentic-DevOps-for-Salesforce%3A-How-to-Pilot-AI-Agents-in-Your-Pipeline-Safely</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; Agentic DevOps puts AI agents inside the Salesforce delivery
  lifecycle so they can plan, build, test and release changes rather than only suggest
  them. Copado&apos;s Agentia is the highest-profile example, and in September 2026 it added
  a headless mode that runs in the IDE and terminal. This guide explains what agentic
  DevOps changes in practice, and how to pilot it on your own pipeline without handing
  production to a black box.
&lt;/p&gt;
&lt;h2&gt;What is Agentia, and what does agentic DevOps mean for Salesforce?&lt;/h2&gt;
&lt;p&gt;
  &lt;strong&gt;Agentia&lt;/strong&gt; is Copado&apos;s agentic AI delivery platform for Salesforce,
  launched in April 2026 (&lt;a href=&quot;https://www.copado.com/agentia&quot;&gt;Copado&lt;/a&gt;). It
  embeds context-aware agents directly in the delivery lifecycle, coordinated through a
  context hub that reads your org metadata and environments. Copado groups them by job:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Plan&lt;/strong&gt; agents that turn requirements into user stories.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Build&lt;/strong&gt; agents for code and configuration.&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Test&lt;/strong&gt; agents for regression coverage.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Release&lt;/strong&gt; and &lt;strong&gt;Operate&lt;/strong&gt; agents for deployment and
    hotfixes.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The umbrella term, agentic DevOps or AgentOps, describes any workflow where AI agents
  take multi-step delivery actions under governance, not just answer questions in a chat
  box. Salesforce&apos;s own Agentforce push has made the vocabulary mainstream.
&lt;/p&gt;
&lt;h2&gt;How is agentic DevOps different from AI-assisted DevOps?&lt;/h2&gt;
&lt;p&gt;
  The line is simple: an assistant suggests, an agent acts. An AI assistant drafts a
  class or explains a failed test and waits for you. An agent executes a chain of steps,
  generating metadata, running tests and opening a deployment, then reports back. The
  productivity upside is real, and so is the blast radius. That is why the useful
  question is never can the agent do it, but can you see and reverse what it did.
&lt;/p&gt;
&lt;h2&gt;How do you pilot agentic AI in a Salesforce pipeline safely?&lt;/h2&gt;
&lt;p&gt;Treat it like any powerful automation: narrow scope first, widen on evidence.&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Start with a low-risk change type.&lt;/strong&gt; Point the agent at well-covered
    configuration or metadata, not your billing logic.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Gate every change on automated tests.&lt;/strong&gt; Decide up front what runs on
    each pull request and what runs nightly, which we cover in
    &lt;a
      href=&quot;/resources/Salesforce-test-automation-in-CI%3A-what-to-run-on-every-pull-request%2C-and-what-to-run-nightly&quot;
      &gt;Salesforce test automation in CI&lt;/a
    &gt;. An agent without a test gate is just faster failure.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Require a rollback you can trigger.&lt;/strong&gt; Before an agent deploys
    anything, know how you undo it, per
    &lt;a href=&quot;/resources/Rollback-Strategies-for-Failed-Salesforce-Deployments&quot;
      &gt;rollback strategies for failed deployments&lt;/a
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep environments honest with back-promotion.&lt;/strong&gt; Agent-made hotfixes
    must flow back down your pipeline or your sandboxes drift, which is why
    &lt;a href=&quot;/resources/How-to-Set-Up-Back-Promotion-in-a-Salesforce-DevOps-Pipeline&quot;
      &gt;back-promotion&lt;/a
    &gt;
    matters more, not less, once agents are involved.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Log every action for audit.&lt;/strong&gt; A production change with no
    human-readable trail is a governance gap, agent or not.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Widen scope only after clean runs.&lt;/strong&gt; Move to riskier change types
    once the agent has a track record you can point to.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;What guardrails does an agent need before it touches production?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Reviewable actions.&lt;/strong&gt; Every step readable and reversible by a release
    manager.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;A real test gate,&lt;/strong&gt; not just the agent&apos;s own confidence score.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Least-privilege org access,&lt;/strong&gt; scoped credentials rather than a
    god-mode integration user.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Human approval for production,&lt;/strong&gt; even when everything below it is
    automated.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;An immutable audit log&lt;/strong&gt; of what changed, when, and on whose
    authority.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;How do you evaluate an agentic DevOps tool?&lt;/h2&gt;
&lt;p&gt;
  Score any option, Agentia, Gearset, Copado or Serpent, against the same questions
  rather than the demo:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Can a human read, question and reverse every agent action?&lt;/li&gt;
  &lt;li&gt;Does it gate on your existing tests, or only its own?&lt;/li&gt;
  &lt;li&gt;
    Does it install a managed package in the org, which means approval on the way in and
    an uninstall on the way out?
  &lt;/li&gt;
  &lt;li&gt;How is org access scoped, and is it least-privilege?&lt;/li&gt;
  &lt;li&gt;Does the price move with seats or connected orgs as you scale?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Tekunda takes a deliberately narrow line with &lt;strong&gt;Serpent AI&lt;/strong&gt;: it turns
  plain-English intent into reviewable release actions and applies AI hardest to merge
  conflicts, where the payoff is clear and a human can still audit the result. If you
  are weighing tools, put the numbers side by side on our
  &lt;a href=&quot;/pricing&quot;&gt;pricing&lt;/a&gt; page, and browse more implementation guides in our
  &lt;a href=&quot;/resources&quot;&gt;resources&lt;/a&gt; library.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Is agentic DevOps the same as Agentforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Agentforce is Salesforce&apos;s platform for building AI agents inside applications.
  Agentic DevOps applies the same idea to the delivery pipeline, the tooling that
  builds, tests and ships Salesforce changes.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;When did Copado launch Agentia?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Copado introduced Agentia in April 2026 and extended it with a headless mode, running
  in the IDE and terminal, in September 2026.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I need agentic tooling to modernize my Salesforce pipeline?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Solid automated testing, reliable rollback and clean back-promotion deliver most
  of the benefit. Agents accelerate a pipeline that is already disciplined; they do not
  fix an undisciplined one.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is the biggest risk with AI agents in releases?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Speed outrunning control. An agent that ships faster than you can review or reverse
  turns a small mistake into a fast one. Keep the guardrails ahead of the autonomy.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a Salesforce CI/CD Pipeline Using GitHub Actions]]></title>
            <description><![CDATA[Learn how Salesforce CI/CD works with GitHub Actions, from Git and package versions to JWT authentication, testing, and release promotion.]]></description>
            <link>https://serpent.cloud/resources/how-to-build-a-salesforce-ci-cd-pipeline-using-github-actions</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/how-to-build-a-salesforce-ci-cd-pipeline-using-github-actions</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 22:28:42 GMT</pubDate>
            <content:encoded>&lt;p class=&quot;p1&quot;&gt;
  Salesforce development has come a long way from the days of manually pushing changes
  through Change Sets. As teams scale and releases become more frequent, manual
  deployments quickly turn into bottlenecks.
&lt;/p&gt;
&lt;p class=&quot;p4&quot;&gt;
  That&amp;rsquo;s where
  &lt;strong&gt;CI/CD (Continuous Integration and Continuous Delivery)&lt;/strong&gt; comes in.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  A proper pipeline automates the process of validating, testing, and promoting changes
  across environments, from development all the way to production. While many teams use
  commercial DevOps platforms, it is still useful to understand how the underlying
  automation works.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  In this guide, we will walk through how Salesforce CI/CD pipelines work today, how to
  build one using GitHub Actions, and which approaches work best depending on your team
  size, release cadence, and organisational complexity.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  We will also look at where DIY pipelines start to struggle and why many teams
  eventually move to a dedicated Salesforce DevOps platform once their process matures.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  New to the discipline? Our
  &lt;a
    href=&quot;/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;guide to mastering Salesforce DevOps&lt;/a
  &gt;
  covers the fundamentals this pipeline builds on.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Why CI/CD Matters for Salesforce&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  Salesforce development is different from traditional application development.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Instead of shipping compiled applications, Salesforce teams deploy
  &lt;strong&gt;metadata and configuration&lt;/strong&gt; such as:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Apex classes and triggers&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Lightning Web Components&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Flows and automation&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Profiles and permission sets&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Objects, fields, layouts, and schema&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;Without automation, deployments quickly become fragile.&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Typical issues include:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Configuration drift between environments&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Broken deployments due to missing dependencies&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Manual deployment mistakes&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Limited visibility into what actually changed&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Poor traceability between work items and release content&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;CI/CD pipelines address these issues by:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;validating changes automatically&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;running tests before deployment&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;keeping Git as the source of truth&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;promoting only approved changes&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;keeping environments consistent over time&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;strong&gt;What You Need Before You Start&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  This guide assumes a repository and a set of orgs that are already shaped for
  automation. Where one of these is missing, close that gap first, because a pipeline
  built over it only automates the gap.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;strong&gt;Metadata already versioned, in source format.&lt;/strong&gt; Everything you
      intend to deploy lives under &lt;code&gt;force-app&lt;/code&gt; and has a commit history. The
      pipeline promotes commits, not orgs, so anything that exists only in a sandbox is
      invisible to it.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;strong&gt;Salesforce CLI v2 (&lt;code&gt;sf&lt;/code&gt;) on the runner.&lt;/strong&gt; Every command
      in this guide is the v2 form, installed in the workflow with
      &lt;code&gt;npm install @salesforce/cli --global&lt;/code&gt;. The legacy &lt;code&gt;sfdx&lt;/code&gt;
      CLI is deprecated.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;strong&gt;One org per stage, with a known owner.&lt;/strong&gt; At minimum a sandbox to
      validate against and the org you release into. The branching strategy later in
      this guide maps branches onto those orgs one to one.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;strong&gt;A Connected App and an integration user&lt;/strong&gt; in every target org, with
      digital signatures enabled and the user pre-authorized. The
      &lt;a href=&quot;#connected-app-and-jwt-authentication-walkthrough&quot;
        &gt;Connected App and JWT authentication walkthrough&lt;/a
      &gt;
      later in this guide covers the setup end to end.
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;strong&gt;Salesforce Development Models&lt;/strong&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;1. Org-Based Development&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;This is still the most common model.&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Developers make changes directly in sandboxes and move those changes through
  environments such as:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Developer Sandbox
      &amp;darr;
QA
      &amp;darr;
UAT / Staging
      &amp;darr;
Production&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  Metadata is retrieved from the org and committed to Git. CI/CD pipelines validate and
  promote that metadata across environments.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Many enterprise teams still operate this way, even when they start introducing
  unlocked packages later in the release flow.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;2. Package-Based Development&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  Package-based development uses modular packages instead of promoting the entire org
  metadata tree as a single unit.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Each package represents a logical feature set or domain. This approach is common for:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;ISVs&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;AppExchange partners&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;large enterprise teams with multiple parallel workstreams&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  The reality is that many teams start in an org-based model and gradually adopt
  packages for release versioning and cleaner promotion.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Recommended CI/CD Patterns by Team Size&lt;/strong&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;Smaller Teams&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  For very small teams, for example two or three contributors, too many environments can
  create more overhead than value. In that case a leaner process is usually better.
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Developer Sandbox
      &amp;darr;
Retrieve to Git
      &amp;darr;
Pull Request validation
      &amp;darr;
Build unlocked package version
      &amp;darr;
Install in Staging / QA Sandbox
      &amp;darr;
Regression / signoff
      &amp;darr;
Install same package version in Production&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;This works well when:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;the team is small and closely coordinated&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;release frequency is high&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      one shared staging or QA environment is enough for final validation
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;the team wants discipline without too much process overhead&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  The key point is that even a small team still needs a clean release process. It just
  should not be heavier than the team itself.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Growing and Larger Teams&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  As teams grow, a dedicated QA environment becomes useful for validating integrated
  source changes before a release candidate is built.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent-resources/body/how-to-build-a-salesforce-ci-cd-pipeline-using-github-actions-how-to-build-a-salesforc.jpg?width=1536&amp;amp;height=611&quot;
    alt=&quot;Qa Devops&quot;
    loading=&quot;lazy&quot;
  /&gt;
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Developer Sandbox
      &amp;darr;
Retrieve to Git
      &amp;darr;
Feature branch
      &amp;darr;
Pull Request validation
      &amp;darr;
Merge to develop
      &amp;darr;
Deploy source to QA
      &amp;darr;
Create release branch
      &amp;darr;
Build unlocked package version
      &amp;darr;
Install package in UAT
      &amp;darr;
Regression / business signoff
      &amp;darr;
Install same package version in Production&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  This model is stronger for larger teams because QA and UAT serve different purposes:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;strong&gt;QA&lt;/strong&gt; validates integrated source changes from multiple contributors
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;&lt;strong&gt;UAT&lt;/strong&gt; validates the actual release artifact&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;strong&gt;Production&lt;/strong&gt; receives the same package version that passed UAT
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  That gives better release traceability, cleaner rollback options, and fewer surprises
  in production.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;ISVs&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  ISVs often follow similar principles, but their workflows are more package-led from
  the beginning.
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Scratch Org / Dev Org
      &amp;darr;
Source tracked to Git
      &amp;darr;
Pull Request validation
      &amp;darr;
Package version build
      &amp;darr;
Install in internal test org
      &amp;darr;
Install in staging / UAT
      &amp;darr;
Promote release artifact&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  The same ideas still apply: Git as the source of truth, clear promotion steps, and
  versioned release artifacts.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Advanced Teams and Modular Packages&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  As the Salesforce org becomes larger and more domain-heavy, a single unlocked package
  can become too broad. At that point, modular unlocked packages usually make more
  sense.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Examples might include:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;sales pipeline and opportunity management package&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;service operations package&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;customer onboarding package&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;core automation package&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  This is especially useful in large companies where multiple teams are working on
  different domains in parallel. As the team grows or the org becomes more complex, the
  DevOps process has to grow with it to preserve speed, quality, visibility, and
  traceability.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Branching Strategy for Salesforce CI/CD&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  Before building the pipeline, decide how work will move through Git. The two most
  common strategies are &lt;strong&gt;GitFlow&lt;/strong&gt; and
  &lt;strong&gt;trunk-based development&lt;/strong&gt;.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;GitFlow&lt;/strong&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;main      &amp;rarr; production history
develop   &amp;rarr; integration branch
feature/* &amp;rarr; work item branches
release/* &amp;rarr; release candidate branches
hotfix/*  &amp;rarr; urgent production fixes&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;GitFlow works well when:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;multiple people are working in parallel&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;QA and UAT need stable branches&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;releases happen weekly, fortnightly, or on a schedule&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;the team wants explicit release candidate branches&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;The downside is more branch management and more merge coordination.&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Trunk-Based Development&lt;/strong&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;main       &amp;rarr; always releasable
feature/*  &amp;rarr; short-lived branches merged quickly&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;This works well when:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;the team is small&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;deployments are frequent&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;validation and testing are strong&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;the team wants fewer long-lived branches&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  The downside is that weak test discipline can destabilise the shared branch quickly.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Which One Do We Recommend?&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  For many org-based Salesforce teams, GitFlow is easier to adopt because it mirrors the
  familiar Dev &amp;rarr; QA &amp;rarr; UAT &amp;rarr; Prod release model. Trunk-based development
  can work well for small, mature teams with strong automation.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  The important thing is not that one model is always better. The important thing is to
  choose one model deliberately and make your environments, approvals, and pipeline
  logic consistent with it.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Pipeline Architecture: What We Recommend&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;For most growing Salesforce teams, the recommended flow is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Developer Sandbox
      &amp;darr;
Retrieve metadata to Git
      &amp;darr;
Feature branch
      &amp;darr;
Pull Request validation
      &amp;darr;
Merge to develop
      &amp;darr;
Deploy source to QA
      &amp;darr;
Create release branch
      &amp;darr;
Build unlocked package version
      &amp;darr;
Install package in UAT
      &amp;darr;
Regression testing and signoff
      &amp;darr;
Install same package version in Production&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;Why do we recommend this model?&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;source deploy to QA is flexible and fast for integration testing&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;the package version becomes a stable release artifact&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;UAT validates the exact artifact intended for production&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;production receives the same tested package version&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  This creates a process that is both practical and controlled. It also works well with
  source tracking during development while giving you better release traceability later
  in the flow.
&lt;/p&gt;
&lt;h2&gt;
  &lt;strong&gt;P&lt;/strong&gt;&lt;strong&gt;ackage.xml vs&amp;nbsp;&lt;/strong
  &gt;&lt;strong&gt;Source Tracking vs &lt;/strong&gt;&lt;strong&gt;Serpent Workflow&lt;/strong&gt;
&lt;/h2&gt;
&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Category&lt;/th&gt;
      &lt;th&gt;Package.xml&lt;/th&gt;
      &lt;th&gt;Source Tracking + Unlocked Packages&lt;/th&gt;
      &lt;th&gt;Serpent Workflow&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Primary model&lt;/td&gt;
      &lt;td&gt;Manifest-driven deployment&lt;/td&gt;
      &lt;td&gt;Git-driven development with package-based release promotion&lt;/td&gt;
      &lt;td&gt;
        Task-driven workflow built around Git, environments, and release visibility
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Best for&lt;/td&gt;
      &lt;td&gt;Hotfixes, targeted deploys, legacy teams&lt;/td&gt;
      &lt;td&gt;Modern teams wanting versioned releases&lt;/td&gt;
      &lt;td&gt;Teams of any size wanting speed, visibility, and easier operations&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Metadata selection&lt;/td&gt;
      &lt;td&gt;Manual&lt;/td&gt;
      &lt;td&gt;Source tracking plus Git selection&lt;/td&gt;
      &lt;td&gt;Guided, task-based, and dependency-aware selection&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Dependency handling&lt;/td&gt;
      &lt;td&gt;Manual and error-prone&lt;/td&gt;
      &lt;td&gt;Better, but still requires discipline&lt;/td&gt;
      &lt;td&gt;Assisted by metadata analysis and workflow logic&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Production traceability&lt;/td&gt;
      &lt;td&gt;Limited&lt;/td&gt;
      &lt;td&gt;Good when using package versions&lt;/td&gt;
      &lt;td&gt;Strong visibility across work items, releases, and orgs&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Rollback clarity&lt;/td&gt;
      &lt;td&gt;Harder, especially with destructive changes&lt;/td&gt;
      &lt;td&gt;Better with versioned packages&lt;/td&gt;
      &lt;td&gt;
        Clearer through release artefacts, workflow history, and package promotion
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Hotfix / back-promotion&lt;/td&gt;
      &lt;td&gt;Useful and often necessary&lt;/td&gt;
      &lt;td&gt;Still sometimes needs package.xml for production recovery&lt;/td&gt;
      &lt;td&gt;Supported as part of the release workflow and visibility model&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Operational overhead&lt;/td&gt;
      &lt;td&gt;Low at first, high later&lt;/td&gt;
      &lt;td&gt;Moderate&lt;/td&gt;
      &lt;td&gt;Lower ongoing overhead because more of the workflow is native and visible&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Collaboration&lt;/td&gt;
      &lt;td&gt;Mostly manual&lt;/td&gt;
      &lt;td&gt;Git-centric, developer-friendly&lt;/td&gt;
      &lt;td&gt;Developer, admin, tester, and release-manager friendly&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;When we recommend it&lt;/td&gt;
      &lt;td&gt;Specific edge cases and legacy processes&lt;/td&gt;
      &lt;td&gt;Recommended default for most modern teams&lt;/td&gt;
      &lt;td&gt;
        Recommended when you want the same DevOps principles with much less friction
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;&lt;strong&gt;Using package.xml vs Source Tracking&lt;/strong&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;Using package.xml&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  &lt;strong&gt;package.xml&lt;/strong&gt; is the traditional manifest file listing the metadata
  types and members you want to retrieve or deploy.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
&amp;lt;Package xmlns=&quot;http://soap.sforce.com/2006/04/metadata&quot;&amp;gt;
  &amp;lt;types&amp;gt;
    &amp;lt;members&amp;gt;AccountService&amp;lt;/members&amp;gt;
    &amp;lt;name&amp;gt;ApexClass&amp;lt;/name&amp;gt;
  &amp;lt;/types&amp;gt;
  &amp;lt;types&amp;gt;
    &amp;lt;members&amp;gt;AccountTrigger&amp;lt;/members&amp;gt;
    &amp;lt;name&amp;gt;ApexTrigger&amp;lt;/name&amp;gt;
  &amp;lt;/types&amp;gt;
  &amp;lt;version&amp;gt;61.0&amp;lt;/version&amp;gt;
&amp;lt;/Package&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;Pros:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;explicit control over what gets deployed&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;works in all org types including production&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;useful for hotfixes and targeted deploys&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;Cons:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;manual to maintain&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;easy to miss dependencies&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;does not automatically reflect what changed in the org&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;harder to manage as release scope grows&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  A lot of teams still use package.xml, and that makes sense historically. For a long
  time it was the most practical option, especially when source tracking was still
  immature.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Using Source Tracking&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  Source tracking lets Salesforce CLI compare what changed in an org relative to local
  source. It is especially useful in scratch orgs and has become much more practical in
  modern sandbox-based workflows as the platform has matured.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  This area improved a lot after the migration from the old SFDX CLI to the modern
  &lt;strong&gt;sf CLI&lt;/strong&gt;, and it has continued improving over the last two years.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Typical commands include:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sf project retrieve start
sf project deploy start&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;Pros:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;faster feedback during development&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;reduces manual manifest maintenance&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;better developer ergonomics&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;works well when combined with Git-driven promotion&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;Cons:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;production does not support source tracking in the same way&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;teams still need a strategy for release versioning&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      partial feature selection can still be awkward without the right tooling
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;strong&gt;Why We Recommend Source Tracking + Unlocked Packages&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  For most modern teams, we recommend using source tracking during development and
  unlocked packages for release promotion.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Why?&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      source tracking is a better day-to-day development experience than manual
      manifests
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      unlocked packages give you proper release versioning later in the flow
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      production traceability becomes much clearer through package versions
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      rollback and destructive-change handling are easier to reason about
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  That said, package.xml still matters in edge cases, so the real goal is not purity.
  The real goal is using the right tool for the right step.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;What About Production?&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  Production is where source tracking limitations become important. You cannot treat
  production like a scratch org and ask Salesforce to tell you cleanly what changed
  there over time.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;That means production deployments generally depend on:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;package.xml manifests&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;source directories built from Git&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;unlocked package versions&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  This is one of the main reasons versioned package promotion is so valuable. It gives
  production a clearer release identity than source tracking alone can provide there.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  We should be careful not to overstate intent here. The practical point is simple:
  production does not behave like a source-tracked dev org, so teams need another way to
  make release state explicit. Unlocked packages are one of the best ways to do that.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Selecting Only the Changes You Want&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  A common pain point with source tracking is this: your developer sandbox contains
  several unrelated changes, but you only want to move one feature forward.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;The manual process usually looks like this:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;retrieve everything from the sandbox&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;review the changed files in Git&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;select only the metadata relevant to the feature&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;commit just that feature branch scope&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p class=&quot;p1&quot;&gt;Example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sf project retrieve start
git status
git add force-app/main/default/classes/PricingService.cls
git add force-app/main/default/triggers/OpportunityTrigger.trigger
git add force-app/main/default/flows/Discount_Approval.flow-meta.xml
git commit -m &quot;Feature: pricing approval flow&quot;&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  The challenge is that dependencies are not always obvious. A Flow may reference a
  field, a field may depend on a permission set, and a permission set change may be
  needed to make the feature usable.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  This is where teams often either miss metadata or over-deploy extra metadata just to
  be safe.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  With &lt;a href=&quot;https://serpent.cloud&quot;&gt;Serpent&lt;/a&gt;, this becomes easier because the
  workflow is built around work items and metadata selection. Serpent can help identify
  which components belong to a feature, and its Salesforce-trained AI can assist with
  logical metadata selection and dependency analysis based on the feature description
  itself.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Delta Deployments vs Full Branch Deployments&lt;/strong&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;strong&gt;When Delta Deployments Make Sense&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  Delta deployments push only the metadata that changed. They are useful when:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;validating pull requests quickly&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;promoting small, isolated features&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;reducing validation time in very large orgs&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;Example using &lt;strong&gt;sfdx-git-delta&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sf sgd source delta \
  --to HEAD \
  --from origin/develop \
  --output-dir delta \
  --generate-delta&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;Then validate or deploy the delta:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sf project deploy validate --source-dir delta --test-level RunLocalTests
sf project deploy start --source-dir delta&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  Open-source CLI suites wrap these same commands behind a guided menu, which is a
  reasonable middle ground between raw scripts and a platform. See how
  &lt;a href=&quot;/compare/sfdx-hardis&quot;&gt;Serpent compares to sfdx-hardis&lt;/a&gt; if that is the path
  you are weighing.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;When Full Deployments Make More Sense&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  Full branch deployments push the whole metadata tree or a full branch state. They are
  better when:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;handling deletions or destructive changes&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;reverting commits&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;making sure an environment matches a known branch state&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;resetting drift in a shared environment&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      promoting profiles or permission sets, where the whole file has to land as one
      unit rather than as a computed diff
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;Example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sf project deploy start --source-dir force-app&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  This is important because delta deployments are great when you are mostly adding or
  modifying metadata. They are less reliable when the branch intent includes deletions,
  revert commits, or broader consistency resets. The same applies to types that still
  live in large shared files, profiles and permission sets above all, which do not diff
  cleanly and can be partly missed or overwritten by a delta.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;In practice, a strong process uses both:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;delta deploys for speed&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;full deploys for certainty when the change type requires it&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  Both of those move code upward. The reverse direction matters just as much: once a
  hotfix goes straight to production, every lower environment is behind until you
  &lt;a href=&quot;/resources/How-to-Set-Up-Back-Promotion-in-a-Salesforce-DevOps-Pipeline&quot;
    &gt;set up back-promotion in the pipeline&lt;/a
  &gt;, which is the step most hand-rolled workflows skip.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Serpent helps here as well by making the deployment flow less brittle. Instead of
  every team re-creating this logic in GitHub Actions by hand, the workflow can guide
  when targeted movement is appropriate and when a broader promotion is safer.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Unlocked Packages for Release Versioning&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  Even in org-based development, &lt;strong&gt;unlocked packages&lt;/strong&gt; can improve release
  management significantly.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Instead of deploying a loose set of metadata directly into every higher environment,
  teams can package a logical set of changes into a versioned release artefact.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;That means:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;clear version numbers for releases&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;easier promotion from UAT to Production&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;better visibility into what is deployed where&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;cleaner dependency handling&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;more predictable rollback planning&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;&lt;strong&gt;Recommended Unlocked Package Flow&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;For a larger org-based team, the release flow usually looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Developer Sandbox
      &amp;darr;
Retrieve to Git
      &amp;darr;
Pull Request validation
      &amp;darr;
Deploy source to QA
      &amp;darr;
Create release branch
      &amp;darr;
Build unlocked package version
      &amp;darr;
Install in UAT
      &amp;darr;
Regression and approval
      &amp;darr;
Install same package version in Production&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;For a very small team, it can be simpler:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Developer Sandbox
      &amp;darr;
Retrieve to Git
      &amp;darr;
Pull Request validation
      &amp;darr;
Build unlocked package version
      &amp;darr;
Install in Staging
      &amp;darr;
Promote same package version to Production&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;&lt;strong&gt;Example Commands&lt;/strong&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;sf package create --name SalesApp --package-type Unlocked --path force-app
sf package version create --package SalesApp --wait 20 --installation-key-bypass
sf package install --package 04tXXXXXXXXXXXX --target-org myUATOrg --wait 20
sf package install --package 04tXXXXXXXXXXXX --target-org myProdOrg --wait 20&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;&lt;strong&gt;Why Rollback Is Easier to Reason About&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  Unlocked packages do not magically solve every rollback problem, especially when data
  changes are involved. But compared with raw source deployment or package.xml-only
  promotion, they make rollback easier to understand because:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;the release is a versioned artefact&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;you know exactly which package version introduced the change&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;you can compare what changed between versions more clearly&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      destructive changes are easier to track in the context of release history
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  This matters even more in production, where source tracking cannot give you the same
  visibility it can in development environments.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;How to Build This in GitHub Actions&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  GitHub Actions is a good option for teams who want to understand the mechanics and
  build their own CI/CD foundation. It integrates directly with your repository, and
  workflows are defined in YAML files stored alongside the code.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Suggested Branch-to-Environment Mapping&lt;/strong&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;feature/*   &amp;rarr; developer work item branches
develop     &amp;rarr; source-integrated branch deployed to QA
release/*   &amp;rarr; release candidate branches used for package version build
main        &amp;rarr; production history
hotfix/*    &amp;rarr; urgent production fixes&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;&lt;strong&gt;Full End-to-End GitHub Actions Pipeline Example&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;The example below shows a practical end-to-end setup using:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;PR validation into &lt;strong&gt;develop&lt;/strong&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;automatic source deploy to QA on merge to &lt;strong&gt;develop&lt;/strong&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;package version build on &lt;strong&gt;release/*&lt;/strong&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;package install to UAT&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;manual promotion of the same package version to Production&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;name: Salesforce End-to-End CI/CD

on:
  pull_request:
    branches:
      - develop
  push:
    branches:
      - develop
      - &apos;release/*&apos;
  workflow_dispatch:
    inputs:
      package_version_id:
        description: &apos;Unlocked package version id to promote to Production&apos;
        required: false
        type: string

env:
  PROJECT_DIR: force-app
  DELTA_DIR: delta
  QA_ALIAS: qa
  UAT_ALIAS: uat
  PROD_ALIAS: prod
  PACKAGE_NAME: SalesApp

jobs:
  pr-validate:
    if: github.event_name == &apos;pull_request&apos;
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install Salesforce CLI
        run: npm install @salesforce/cli --global

      - name: Install plugins
        run: |
          sf plugins install sfdx-git-delta
          sf plugins install @salesforce/plugin-packaging

      - name: Create JWT key file
        run: echo &quot;${{ secrets.SF_JWT_KEY_QA }}&quot; &amp;gt; server.key

      - name: Authenticate to QA validation org
        run: |
          sf org login jwt \
            --client-id ${{ secrets.SF_CLIENT_ID_QA }} \
            --jwt-key-file server.key \
            --username ${{ secrets.SF_USERNAME_QA }} \
            --instance-url ${{ secrets.SF_INSTANCE_URL_QA }} \
            --alias $QA_ALIAS

      - name: Generate delta package
        run: |
          sf sgd source delta \
            --to HEAD \
            --from origin/develop \
            --output-dir $DELTA_DIR \
            --generate-delta

      - name: Show generated delta
        run: |
          echo &quot;Delta contents:&quot;
          find $DELTA_DIR || true

      - name: Run PMD scan
        run: |
          pmd -d $PROJECT_DIR -R category/apex/design.xml -f text || true

      - name: Run ESLint
        run: |
          if [ -f package.json ]; then
            npm ci
            npm run lint || true
          fi

      - name: Validate delta deployment against QA
        run: |
          if [ -d &quot;$DELTA_DIR&quot; ]; then
            sf project deploy validate \
              --source-dir $DELTA_DIR \
              --target-org $QA_ALIAS \
              --test-level RunLocalTests
          else
            echo &quot;No delta generated, validating full source instead.&quot;
            sf project deploy validate \
              --source-dir $PROJECT_DIR \
              --target-org $QA_ALIAS \
              --test-level RunLocalTests
          fi

  deploy-to-qa:
    if: github.event_name == &apos;push&apos; &amp;amp;&amp;amp; github.ref == &apos;refs/heads/develop&apos;
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install Salesforce CLI
        run: npm install @salesforce/cli --global

      - name: Install plugins
        run: |
          sf plugins install sfdx-git-delta

      - name: Create JWT key file
        run: echo &quot;${{ secrets.SF_JWT_KEY_QA }}&quot; &amp;gt; server.key

      - name: Authenticate to QA
        run: |
          sf org login jwt \
            --client-id ${{ secrets.SF_CLIENT_ID_QA }} \
            --jwt-key-file server.key \
            --username ${{ secrets.SF_USERNAME_QA }} \
            --instance-url ${{ secrets.SF_INSTANCE_URL_QA }} \
            --alias $QA_ALIAS

      - name: Generate delta for QA deploy
        run: |
          sf sgd source delta \
            --to HEAD \
            --from HEAD^ \
            --output-dir $DELTA_DIR \
            --generate-delta || true

      - name: Deploy to QA
        run: |
          if [ -d &quot;$DELTA_DIR&quot; ] &amp;amp;&amp;amp; [ &quot;$(find $DELTA_DIR -type f | wc -l)&quot; -gt 0 ]; then
            sf project deploy start \
              --source-dir $DELTA_DIR \
              --target-org $QA_ALIAS \
              --test-level RunLocalTests
          else
            echo &quot;Falling back to full branch deploy&quot;
            sf project deploy start \
              --source-dir $PROJECT_DIR \
              --target-org $QA_ALIAS \
              --test-level RunLocalTests
          fi

  build-package-and-install-uat:
    if: github.event_name == &apos;push&apos; &amp;amp;&amp;amp; startsWith(github.ref, &apos;refs/heads/release/&apos;)
    runs-on: ubuntu-latest
    outputs:
      package_version_id: ${{ steps.capture_version.outputs.package_version_id }}

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install Salesforce CLI
        run: npm install @salesforce/cli --global

      - name: Install packaging plugin
        run: sf plugins install @salesforce/plugin-packaging

      - name: Create Dev Hub JWT key file
        run: echo &quot;${{ secrets.SF_JWT_KEY_DEVHUB }}&quot; &amp;gt; server.key

      - name: Authenticate to Dev Hub
        run: |
          sf org login jwt \
            --client-id ${{ secrets.SF_CLIENT_ID_DEVHUB }} \
            --jwt-key-file server.key \
            --username ${{ secrets.SF_USERNAME_DEVHUB }} \
            --instance-url ${{ secrets.SF_INSTANCE_URL_DEVHUB }} \
            --alias devhub

      - name: Create package version
        run: |
          sf package version create \
            --package $PACKAGE_NAME \
            --target-dev-hub devhub \
            --wait 30 \
            --installation-key-bypass \
            --code-coverage

      - name: Capture latest package version id
        id: capture_version
        run: |
          VERSION_ID=$(sf package version list --packages $PACKAGE_NAME --target-dev-hub devhub --json | jq -r &apos;.result[0].SubscriberPackageVersionId&apos;)
          echo &quot;package_version_id=$VERSION_ID&quot; &amp;gt;&amp;gt; $GITHUB_OUTPUT
          echo &quot;Latest package version id: $VERSION_ID&quot;

      - name: Create UAT JWT key file
        run: echo &quot;${{ secrets.SF_JWT_KEY_UAT }}&quot; &amp;gt; server.key

      - name: Authenticate to UAT
        run: |
          sf org login jwt \
            --client-id ${{ secrets.SF_CLIENT_ID_UAT }} \
            --jwt-key-file server.key \
            --username ${{ secrets.SF_USERNAME_UAT }} \
            --instance-url ${{ secrets.SF_INSTANCE_URL_UAT }} \
            --alias $UAT_ALIAS

      - name: Install package in UAT
        run: |
          sf package install \
            --package ${{ steps.capture_version.outputs.package_version_id }} \
            --target-org $UAT_ALIAS \
            --wait 30 \
            --publish-wait 10 \
            --no-prompt

  promote-to-production:
    if: github.event_name == &apos;workflow_dispatch&apos; &amp;amp;&amp;amp; github.event.inputs.package_version_id != &apos;&apos;
    runs-on: ubuntu-latest
    environment: production

    steps:
      - name: Install Salesforce CLI
        run: npm install @salesforce/cli --global

      - name: Create Production JWT key file
        run: echo &quot;${{ secrets.SF_JWT_KEY_PROD }}&quot; &amp;gt; server.key

      - name: Authenticate to Production
        run: |
          sf org login jwt \
            --client-id ${{ secrets.SF_CLIENT_ID_PROD }} \
            --jwt-key-file server.key \
            --username ${{ secrets.SF_USERNAME_PROD }} \
            --instance-url ${{ secrets.SF_INSTANCE_URL_PROD }} \
            --alias $PROD_ALIAS

      - name: Install approved package in Production
        run: |
          sf package install \
            --package ${{ github.event.inputs.package_version_id }} \
            --target-org $PROD_ALIAS \
            --wait 30 \
            --publish-wait 10 \
            --no-prompt&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  This is not the only valid GitHub Actions design, but it captures the recommended
  split between source-based validation in lower environments and package-based
  promotion into UAT and Production.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Additional Pipeline Practices and Operational Guidance&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  A CI/CD pipeline is only part of a working Salesforce DevOps process. What often
  determines success or failure is how teams handle the operational details around
  development, testing, promotion, and release coordination.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Managing Feature-Level Changes Safely&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  One challenge in Salesforce development is that sandboxes frequently accumulate
  multiple changes at once. A developer may be working on two or three features, but
  only one is ready for promotion.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  If you simply retrieve all metadata and deploy it forward, you risk promoting
  unfinished work.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;The safer pattern is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Developer Sandbox
      &amp;darr;
Retrieve all metadata locally
      &amp;darr;
Select only the components belonging to the feature
      &amp;darr;
Commit those components to a feature branch
      &amp;darr;
Submit a pull request for validation&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;Example workflow:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sf project retrieve start

git checkout -b feature/pricing-update

git add force-app/main/default/classes/PricingService.cls
git add force-app/main/default/triggers/PricingTrigger.trigger
git add force-app/main/default/lwc/pricingWidget

git commit -m &quot;Feature: pricing update&quot;&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  This ensures the repository reflects a single logical feature rather than a mix of
  unrelated changes.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  The difficulty is that Salesforce metadata is often interconnected. A Flow might
  depend on:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;custom fields&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Apex classes&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;permission sets&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;record types&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;Missing one of those dependencies can break deployment validation.&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Many teams solve this through experience and manual checks. Platforms like
  &lt;a href=&quot;https://serpent.cloud&quot;&gt;Serpent&lt;/a&gt; help by analysing metadata relationships
  and identifying dependencies automatically so the correct set of components moves
  together.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;AI-Assisted Metadata Selection&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  Recent improvements in developer tooling have introduced AI assistance for dependency
  analysis.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;In practice this means:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;a feature description can be analysed&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;related metadata components can be detected&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;dependency graphs can be evaluated&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;the most likely metadata scope can be suggested&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  &lt;a href=&quot;https://serpent.cloud&quot;&gt;Serpent&lt;/a&gt; includes AI agents trained on Salesforce
  metadata patterns that helps determine the logical set of components required for a
  feature, reducing the risk of incomplete deployments.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  This does not remove developer control. It simply makes the selection process faster
  and safer.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Handling Sandbox Drift&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  Another common issue in Salesforce environments is &lt;strong&gt;sandbox drift&lt;/strong&gt;.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  This happens when someone makes a change directly in a shared environment such as QA
  or UAT that never reaches the Git repository.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Over time the environment diverges from source control.&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;To detect drift, teams often perform periodic retrieval comparisons:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sf project retrieve start
git diff&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  If unexpected differences appear, they should be reconciled immediately by committing
  them to Git or removing them.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Allowing drift to accumulate makes later deployments unpredictable.&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Environment Strategy&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;Each environment should have a clear purpose.&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Environment&lt;/th&gt;
      &lt;th&gt;Purpose&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Developer Sandbox&lt;/td&gt;
      &lt;td&gt;Feature development and early testing&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;QA&lt;/td&gt;
      &lt;td&gt;Integrated testing across multiple features&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;UAT&lt;/td&gt;
      &lt;td&gt;Business validation of release candidates&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Production&lt;/td&gt;
      &lt;td&gt;Live system&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p class=&quot;p1&quot;&gt;
  Problems often arise when environments lose their purpose. If QA becomes another
  development sandbox, it stops functioning as a reliable integration checkpoint.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Testing Strategy&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;A robust CI/CD process includes automated tests at multiple levels.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;unit tests for Apex&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;component tests for LWC&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;integration tests for cross-feature workflows&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  PR validation pipelines often run targeted tests for speed, while release pipelines
  run broader test suites.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Example PR validation:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sf project deploy validate \
  --source-dir delta \
  --test-level RunSpecifiedTests&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;Example release validation:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sf project deploy validate \
  --source-dir force-app \
  --test-level RunLocalTests&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  The goal is to catch issues early without slowing down developer feedback cycles
  unnecessarily. Deciding which suite runs at which gate, and where UI coverage fits, is
  a topic of its own:
  &lt;a href=&quot;/resources/How-to-Build-a-Salesforce-Test-Automation-Pipeline-in-CI&quot;
    &gt;how to build a Salesforce test automation pipeline in CI&lt;/a
  &gt;
  walks through the layers in order.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Release Visibility&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  One of the most underestimated DevOps challenges is simply knowing what is in a
  release.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;Questions teams frequently ask include:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Which features are included in the next release?&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Which components were deployed to QA yesterday?&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Which package version is currently installed in production?&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  Without a structured workflow, answering those questions often requires searching
  across Git history, pipeline logs, and manual release notes.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  &lt;a href=&quot;https://serpent.cloud&quot;&gt;Serpent&lt;/a&gt; addresses this by linking deployments to
  &lt;a href=&quot;https://serpent.cloud/features/task-workflow&quot;&gt;work items&lt;/a&gt;, making releases
  easier to understand across environments.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Developer Experience&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;Developer productivity also matters.&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Many developers prefer working inside VS Code with the Salesforce extensions and CLI
  tools.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  DevOps platforms should integrate with that workflow rather than forcing developers
  into entirely separate interfaces.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Serpent includes a
  &lt;a href=&quot;https://serpent.cloud/features/vs-code-extension&quot;&gt;VS Code extension&lt;/a&gt; so
  developers can:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;compare metadata&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;validate deployments&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;manage release tasks&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;deploy changes&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;This keeps DevOps operations close to the development environment.&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Connected App and JWT Authentication Walkthrough&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  The pipeline examples above assume your GitHub Actions runner can authenticate to
  Salesforce headlessly. The standard pattern is JWT-based auth backed by a Connected
  App. Here is the practical setup, end to end.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;1. Create a Connected App in Salesforce&lt;/strong&gt;&lt;/h3&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      In Salesforce Setup, go to &lt;strong&gt;App Manager &amp;rarr; New Connected App&lt;/strong&gt;.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      Enable OAuth settings. Set the callback URL to
      &lt;code&gt;http://localhost:1717/OauthRedirect&lt;/code&gt;.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      Select the scopes &lt;em&gt;Manage user data via APIs (api)&lt;/em&gt; and
      &lt;em&gt;Perform requests at any time (refresh_token, offline_access)&lt;/em&gt;.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      Enable &lt;strong&gt;Use digital signatures&lt;/strong&gt; and upload your certificate
      (generated below).
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;strong&gt;2. Generate the Certificate&lt;/strong&gt;&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;openssl genrsa -out server.key 2048
openssl req -new -x509 -days 1825 -key server.key -out server.crt&lt;/code&gt;&lt;/pre&gt;
&lt;p class=&quot;p1&quot;&gt;
  Upload &lt;code&gt;server.crt&lt;/code&gt; to the Connected App. Store
  &lt;code&gt;server.key&lt;/code&gt; securely - it goes into GitHub Secrets, never into the repo.
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;3. Add GitHub Secrets&lt;/strong&gt;&lt;/h3&gt;
&lt;p class=&quot;p1&quot;&gt;
  In your GitHub repository go to
  &lt;strong&gt;Settings &amp;rarr; Secrets and variables &amp;rarr; Actions&lt;/strong&gt; and add:
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  The workflow above authenticates to four separate orgs - QA, the Dev Hub, UAT and
  production - so each secret needs one copy per environment, suffixed
  &lt;code&gt;_QA&lt;/code&gt;, &lt;code&gt;_DEVHUB&lt;/code&gt;, &lt;code&gt;_UAT&lt;/code&gt; or &lt;code&gt;_PROD&lt;/code&gt; (for
  example &lt;code&gt;SF_CLIENT_ID_QA&lt;/code&gt; and &lt;code&gt;SF_CLIENT_ID_DEVHUB&lt;/code&gt;). Repeat the
  four secrets below for each suffix, each pointing at that environment&apos;s Connected App
  and org:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;code&gt;SF_CLIENT_ID_&amp;lt;ENV&amp;gt;&lt;/code&gt; - Consumer Key from that environment&apos;s
      Connected App.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;code&gt;SF_USERNAME_&amp;lt;ENV&amp;gt;&lt;/code&gt; - that environment&apos;s Salesforce username, for
      example &lt;code&gt;cicd@yourcompany.com&lt;/code&gt;.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;code&gt;SF_JWT_KEY_&amp;lt;ENV&amp;gt;&lt;/code&gt; - the contents of that environment&apos;s
      &lt;code&gt;server.key&lt;/code&gt; file.
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;
      &lt;code&gt;SF_INSTANCE_URL_&amp;lt;ENV&amp;gt;&lt;/code&gt; - &lt;code&gt;https://test.salesforce.com&lt;/code&gt;
      for sandboxes (QA, UAT, Dev Hub) or &lt;code&gt;https://login.salesforce.com&lt;/code&gt; for
      production.
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;strong&gt;Common Errors and Fixes&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  Most CI/CD failures fall into a small set of repeat issues. The table below covers the
  ones we see most often.
&lt;/p&gt;
&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Error&lt;/th&gt;
      &lt;th&gt;Likely cause&lt;/th&gt;
      &lt;th&gt;Fix&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;INVALID_LOGIN&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;JWT key or client ID wrong&lt;/td&gt;
      &lt;td&gt;Verify secrets match exactly. No trailing newlines in the key.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code&gt;INSUFFICIENT_ACCESS&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;Connected App permissions or activation&lt;/td&gt;
      &lt;td&gt;
        Check OAuth scopes and confirm the connected app is activated for the
        integration user.
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Tests failing on deploy&lt;/td&gt;
      &lt;td&gt;Code coverage below 75 percent&lt;/td&gt;
      &lt;td&gt;
        Run &lt;code&gt;sf apex run test&lt;/code&gt; locally first to see which classes need
        coverage.
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Metadata not deploying&lt;/td&gt;
      &lt;td&gt;SFDX project structure wrong&lt;/td&gt;
      &lt;td&gt;
        Ensure &lt;code&gt;sfdx-project.json&lt;/code&gt; has the correct
        &lt;code&gt;packageDirectories&lt;/code&gt;.
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Job times out mid-deploy&lt;/td&gt;
      &lt;td&gt;Long-running validation or full-org tests&lt;/td&gt;
      &lt;td&gt;
        Use &lt;code&gt;--test-level RunLocalTests&lt;/code&gt; on PR validation. Reserve
        &lt;code&gt;RunAllTestsInOrg&lt;/code&gt; for the production job.
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How does GitHub Actions authenticate to a Salesforce org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Through a Connected App using the JWT bearer flow. Store the consumer key, integration
  username, private key and instance URL as GitHub secrets, and have the workflow log in
  with them before any deploy step runs.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why does my pipeline fail with INVALID_LOGIN?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The JWT key or the client ID does not match what the Connected App expects. Check the
  secrets character for character, and make sure the private key has no trailing newline
  when it is pasted in.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which Apex tests should run on a pull request?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Use &lt;code&gt;RunLocalTests&lt;/code&gt; for pull request validation so the job finishes in a
  sensible time. Save &lt;code&gt;RunAllTestsInOrg&lt;/code&gt; for the production job, where the
  extra confidence is worth the longer run.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should you use delta deployments or full deployments?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Delta deployments push only what changed, which is ideal for validating pull requests
  and promoting small features in large orgs. Full deployments are safer for deletions,
  reverts and any time an environment has to match a known branch state.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I need sfdx-git-delta?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No, but it is worth it once deploys get slow. Pair it with a full deploy for
  deletions, so destructive changes are handled and not silently skipped.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Should I use sfdx or sf for a Salesforce GitHub Actions pipeline?&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
  Use &lt;code&gt;sf&lt;/code&gt;, the modern Salesforce CLI, because the &lt;code&gt;sfdx&lt;/code&gt; CLI it
  replaced is deprecated and should not be the base of a new pipeline. Moving an
  existing pipeline over is mostly command names:
  &lt;code&gt;sfdx force:source:deploy&lt;/code&gt; becomes &lt;code&gt;sf project deploy start&lt;/code&gt;,
  &lt;code&gt;sfdx force:apex:test:run&lt;/code&gt; becomes &lt;code&gt;sf apex run test&lt;/code&gt;, and
  plugins are reinstalled under &lt;code&gt;sf plugins install&lt;/code&gt;.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why validate on the pull request and deploy again on merge?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The pull request job proves the branch compiles and passes its tests against the
  target org without writing anything to it. The merge job is the one that changes the
  org, and it runs against the merged commit, which is not the tree the pull request
  validated.
&lt;/p&gt;
&lt;h2&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/h2&gt;
&lt;p class=&quot;p1&quot;&gt;
  Salesforce DevOps is not about one specific tool or one exact pipeline format.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  It is about creating a reliable process that allows teams to deliver changes safely
  and consistently.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  Small teams may start with simple pipelines and a single staging environment. Larger
  organisations require structured environments, versioned releases, and modular
  packages.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;The key principles remain the same:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;Git should be the source of truth&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;changes should be validated automatically&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;releases should be versioned and traceable&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p class=&quot;p1&quot;&gt;environments should remain consistent&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;p1&quot;&gt;
  Understanding how CI/CD pipelines work under the hood is valuable. But as Salesforce
  environments grow more complex, coordinating releases across people, environments, and
  packages becomes the real challenge.
&lt;/p&gt;
&lt;p class=&quot;p1&quot;&gt;
  That is where tools like &lt;a href=&quot;https://serpent.cloud&quot;&gt;Serpent&lt;/a&gt; help teams
  maintain speed while preserving control, visibility, and release confidence.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Branching Strategies for Salesforce Teams: How to Choose]]></title>
            <description><![CDATA[A practical comparison of feature-branch, environment-branch, GitFlow, and trunk-based models, and how to pick one for Salesforce.]]></description>
            <link>https://serpent.cloud/resources/Git-Branching-Strategies-for-Salesforce-Teams%3A-How-to-Choose</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Git-Branching-Strategies-for-Salesforce-Teams%3A-How-to-Choose</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Wed, 12 Aug 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; A Git branching strategy is the set of rules that decides
  where Salesforce metadata changes live before they reach production. Most teams should
  start with a simple feature-branch model on a single always-deployable main branch,
  and only add complexity when their release cadence or team size demands it. There is
  no single correct answer, only the right fit for your cadence, your team, and how your
  branches map to sandboxes.
&lt;/p&gt;
&lt;h2&gt;What is a Git branching strategy, and why does Salesforce need one?&lt;/h2&gt;
&lt;p&gt;
  A branching strategy defines how work is isolated, reviewed, and merged. In classic
  software this is well-trodden ground. Salesforce adds two wrinkles: your source of
  truth is declarative metadata pulled from orgs rather than code you write in one
  place, and Salesforce recommends graduating from the org-to-org change-set model
  toward Git-backed releases. That makes the branch-to-sandbox mapping, not the
  branching pattern itself, the part teams most often get wrong.
&lt;/p&gt;
&lt;p&gt;
  Before choosing a pattern, agree on three things: which branch represents production,
  how a change gets promoted, and how you recover when a merge goes bad. If you cannot
  answer those, the pattern name is decoration.
&lt;/p&gt;
&lt;h2&gt;What are the main branching strategies for Salesforce?&lt;/h2&gt;
&lt;p&gt;
  Four patterns cover almost every Salesforce team. They trade simplicity for control as
  you move down the list.
&lt;/p&gt;
&lt;h3&gt;Feature-branch model&lt;/h3&gt;
&lt;p&gt;
  One long-lived &lt;code&gt;main&lt;/code&gt; branch holds the latest deployable metadata. Each
  change gets a short-lived branch, opens a pull request, and merges back after review.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Best for:&lt;/strong&gt; Small to mid teams that want to start today.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Strength:&lt;/strong&gt; Simple, fast to adopt, keeps main always releasable.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cost:&lt;/strong&gt; Less structure for coordinating multiple parallel releases.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Environment-branch model (branch per org)&lt;/h3&gt;
&lt;p&gt;
  Each branch maps to a Salesforce environment: &lt;code&gt;dev&lt;/code&gt;, &lt;code&gt;uat&lt;/code&gt;,
  &lt;code&gt;main&lt;/code&gt; for production. Changes are promoted by merging up the chain.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Best for:&lt;/strong&gt; Teams whose mental model is already org-based and who
    want branches to mirror sandboxes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Strength:&lt;/strong&gt; The pipeline is obvious; each merge is a promotion.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cost:&lt;/strong&gt; Long-lived environment branches drift, and cherry-picking a
    single change out of a batch is painful.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;GitFlow&lt;/h3&gt;
&lt;p&gt;
  Dedicated &lt;code&gt;develop&lt;/code&gt;, &lt;code&gt;release&lt;/code&gt;, &lt;code&gt;feature&lt;/code&gt;, and
  &lt;code&gt;hotfix&lt;/code&gt; branches with strict rules, created for scheduled software
  releases in 2010.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Best for:&lt;/strong&gt; Large teams with formal, calendar-based release trains
    and heavy governance.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Strength:&lt;/strong&gt; Maximum control and clear separation of in-flight work.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cost:&lt;/strong&gt; Many moving parts; overkill for most Salesforce shops and
    slow for frequent releases.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Trunk-based development&lt;/h3&gt;
&lt;p&gt;
  Everyone commits to &lt;code&gt;main&lt;/code&gt; behind very short-lived branches, with
  automation as the safety net. It is the direction high-frequency teams trend toward.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Best for:&lt;/strong&gt; Teams with mature CI, strong automated tests, and a real
    rollback path.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Strength:&lt;/strong&gt; Fastest flow, smallest batches, least merge drift.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cost:&lt;/strong&gt; Unforgiving without automated validation and rollback in
    place first.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Which branching strategy should you choose?&lt;/h2&gt;
&lt;p&gt;Match the pattern to your reality, not to a blog&apos;s ideal:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;New to version control?&lt;/strong&gt; Feature-branch on a single main branch.
    Nothing else earns its complexity yet.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Thinking in sandboxes?&lt;/strong&gt; Environment-branch, but keep the branches
    short-lived where you can and automate the promotions.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Regulated, calendar-based releases?&lt;/strong&gt; GitFlow gives you the control
    the auditors want.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Shipping daily with solid automation?&lt;/strong&gt; Trunk-based, once your tests
    and rollback are trustworthy.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The deciding factor is rarely the diagram. It is whether your metadata merges cleanly
  and whether each branch has a home in a real sandbox. We go deeper on that mapping in
  &lt;a href=&quot;/resources/How-to-Map-Git-Branches-to-Salesforce-Sandboxes&quot;
    &gt;how to map Git branches to Salesforce sandboxes&lt;/a
  &gt;, and lay out a plain decision rule in
  &lt;a href=&quot;/resources/Git-branching-strategies-for-Salesforce-teams%3A-a-decision-rule&quot;
    &gt;this decision-rule guide&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;What Salesforce-specific traps break a branching strategy?&lt;/h2&gt;
&lt;p&gt;This is where generic Git advice stops being enough. Watch for:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Metadata that does not merge cleanly.&lt;/strong&gt; Profiles and some XML
    metadata produce noisy diffs; prefer permission sets and small, focused changes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Long-lived environment branches that drift.&lt;/strong&gt; The longer a branch
    lives away from main, the harder the eventual merge. Keep them short or reconcile
    often.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No rollback plan.&lt;/strong&gt; A branching strategy without a tested way to
    reverse a bad merge is a strategy for slow, fearful releases. Pair it with a real
    recovery path, as we cover in
    &lt;a href=&quot;/resources/Rollback-Strategies-for-Failed-Salesforce-Deployments&quot;
      &gt;rollback strategies for failed deployments&lt;/a
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Branches with no sandbox.&lt;/strong&gt; Every branch a promotion targets needs an
    org to validate against, or the pipeline is theatre.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  You can browse the rest of our practical playbooks in the
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;. When you are ready to move a real pipeline
  off change sets, &lt;a href=&quot;/migrate&quot;&gt;our migration path&lt;/a&gt; is built to be incremental
  rather than a big-bang rewrite.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;
  &lt;strong&gt;What is the best Git branching strategy for a small Salesforce team?&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
  Start with a feature-branch model on a single always-deployable main branch. It is the
  simplest pattern that still gives you review, traceability, and clean releases.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is GitFlow good for Salesforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only for large teams with formal, calendar-based release trains. Its many branches add
  control most Salesforce teams do not need and slow down frequent releases.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should Salesforce branches map one-to-one to sandboxes?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Environment-branch models do exactly that, which is intuitive, but keep the branches
  short-lived to avoid drift. Every branch you promote to needs a real org to validate
  against.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How does a branching strategy relate to rollback?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Directly. Branches decide how changes arrive; rollback decides how you undo a bad one.
  A strategy without a tested rollback path leads to slow, cautious releases.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up a Salesforce-Aware Git Merge Driver]]></title>
            <description><![CDATA[Wire an XML-aware merge driver into .gitattributes so independent metadata changes merge on their own, and know the three merges it never sees.]]></description>
            <link>https://serpent.cloud/resources/How-to-Set-Up-a-Salesforce-Aware-Git-Merge-Driver</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Set-Up-a-Salesforce-Aware-Git-Merge-Driver</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; A merge driver is a program git calls instead of its own
  line-based merge for the file patterns you nominate. Point one at your Salesforce
  metadata in &lt;code&gt;.gitattributes&lt;/code&gt;, register it in each clone&apos;s git config, and
  independent XML node changes merge on their own instead of arriving as conflict
  markers. It is a per-clone setting, so it needs a bootstrap step, and it never runs on
  the host&apos;s merge button.
&lt;/p&gt;
&lt;p&gt;
  This is the setup guide, not the resolution guide. If you already have conflict
  markers open in front of you, read
  &lt;a
    href=&quot;/resources/How-to-resolve-Salesforce-metadata-merge-conflicts-without-losing-anyone&apos;s-work&quot;
    &gt;How to resolve Salesforce metadata merge conflicts without losing anyone&apos;s work&lt;/a
  &gt;
  first, then come back here to stop the next batch from reaching you at all.
&lt;/p&gt;
&lt;h2&gt;What does a merge driver actually do?&lt;/h2&gt;
&lt;p&gt;
  When git performs a three-way merge it needs three versions of a file: the common
  ancestor, your side, and the incoming side. By default it reconciles them line by
  line. A merge driver replaces that step with a command of your choosing, and git hands
  it the three versions as temporary files.
&lt;/p&gt;
&lt;p&gt;The contract is small. Git substitutes the placeholders into your command line:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;code&gt;%O&lt;/code&gt; the common ancestor version&lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;%A&lt;/code&gt; your version, and the file the driver must write the result into
  &lt;/li&gt;
  &lt;li&gt;&lt;code&gt;%B&lt;/code&gt; the incoming version&lt;/li&gt;
  &lt;li&gt;&lt;code&gt;%P&lt;/code&gt; the real path of the file being merged&lt;/li&gt;
  &lt;li&gt;&lt;code&gt;%L&lt;/code&gt; the conflict marker size&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Exit &lt;code&gt;0&lt;/code&gt; and git records the contents of &lt;code&gt;%A&lt;/code&gt; as a clean merge.
  Exit non-zero and git treats it as a conflict and leaves &lt;code&gt;%A&lt;/code&gt; for a human.
  That is the whole interface, which is why a Salesforce-aware driver can be as simple
  as a script that parses both sides as XML, unions the child nodes under each parent,
  and only bails out when the same key element carries different values on each side.
&lt;/p&gt;
&lt;h2&gt;How do you configure one in git?&lt;/h2&gt;
&lt;p&gt;Two files, and only one of them is versioned.&lt;/p&gt;
&lt;p&gt;
  First, register the driver in git config. This lives in &lt;code&gt;.git/config&lt;/code&gt;,
  which is local to the clone:
&lt;/p&gt;
&lt;pre&gt;
git config merge.sfxml.name &quot;Salesforce metadata XML merge&quot;
git config merge.sfxml.driver &quot;sf-xml-merge %O %A %B %P&quot;&lt;/pre
&gt;
&lt;p&gt;
  Second, tell git which files it owns, in &lt;code&gt;.gitattributes&lt;/code&gt; at the repo root.
  This one is committed, so every teammate gets it:
&lt;/p&gt;
&lt;pre&gt;
force-app/**/*.profile-meta.xml      merge=sfxml
force-app/**/*.permissionset-meta.xml merge=sfxml
force-app/**/*.layout-meta.xml       merge=sfxml
force-app/**/*.translation-meta.xml  merge=sfxml&lt;/pre
&gt;
&lt;p&gt;
  Start narrow. Add the two or three metadata types that generate most of your
  conflicts, live with it for a sprint, then widen the patterns. A driver that silently
  mishandles a type you never tested is worse than the conflict it replaced.
&lt;/p&gt;
&lt;h2&gt;Why does every clone need setup, and how do you automate it?&lt;/h2&gt;
&lt;p&gt;
  &lt;code&gt;.gitattributes&lt;/code&gt; is versioned but &lt;code&gt;merge.sfxml.driver&lt;/code&gt; is not,
  and git refuses to run a command it only learned about from a cloned file. That split
  is deliberate security design: a repository you clone cannot make your machine execute
  arbitrary commands.
&lt;/p&gt;
&lt;p&gt;
  The practical consequence is that a teammate who skips the setup gets no error. Git
  quietly falls back to its built-in text merge and they see conflict markers, while
  everyone else sees clean merges. Fix it with a bootstrap step nobody has to remember:
  commit a &lt;code&gt;scripts/setup-merge-driver.sh&lt;/code&gt; that runs the two
  &lt;code&gt;git config&lt;/code&gt; commands, call it from your package manager&apos;s post-install
  hook, and have it exit loudly if the driver binary is missing.
&lt;/p&gt;
&lt;h2&gt;Which merges does the driver never see?&lt;/h2&gt;
&lt;p&gt;Three gaps are worth knowing before you rely on it:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Server-side merges.&lt;/strong&gt; The merge button on GitHub, GitLab or Bitbucket
    runs on their infrastructure, with no access to your &lt;code&gt;.git/config&lt;/code&gt;. A
    pull request that would merge cleanly on your laptop can still report conflicts
    there. The workaround is the usual one: merge the target branch into your feature
    branch locally, where the driver runs, and push the resolution. How often that bites
    depends on your
    &lt;a
      href=&quot;/resources/Git-branching-strategies-for-Salesforce-teams%3A-a-decision-rule&quot;
      &gt;branching strategy&lt;/a
    &gt;: long-lived branches drift further and hit server-side merges more often.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;One-sided changes.&lt;/strong&gt; Git only invokes a driver when both sides
    touched the file. If only one side changed it, git takes that side and your driver
    never starts.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Generated XML.&lt;/strong&gt; A driver can union nodes, but it cannot know that
    two Flow versions describe incompatible logic. Keep &lt;code&gt;*.flow-meta.xml&lt;/code&gt; out
    of your patterns and resolve those in Flow Builder.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Is there a zero-install version?&lt;/h2&gt;
&lt;p&gt;
  Yes, for the additive cases. Git ships a built-in &lt;code&gt;union&lt;/code&gt; driver that keeps
  every line from both sides, and it needs no config entry at all:
&lt;/p&gt;
&lt;pre&gt;force-app/**/labels/*.labels-meta.xml merge=union&lt;/pre&gt;
&lt;p&gt;
  It is blunt. Union merge concatenates rather than de-duplicates, so a node both
  branches added lands twice and the file can come back invalid. Use it only on flat,
  purely additive lists like custom labels, and keep a deployment validation in CI to
  catch what it gets wrong. Treat it as the stopgap while you evaluate a real driver,
  not the destination.
&lt;/p&gt;
&lt;h2&gt;Driver, platform, or resolution on the pull request?&lt;/h2&gt;
&lt;p&gt;
  A merge driver is the cheapest layer and the narrowest: it removes false conflicts at
  the git level, on developer machines, and does nothing about validation or deployment.
  DevOps platforms build semantic merge into the pipeline with a visual three-way panel,
  which covers the server-side gap but ties resolution to their tooling. That trade-off,
  portability against a packaged panel, is the crux of
  &lt;a href=&quot;/compare/copado&quot;&gt;Serpent vs Copado&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
  Serpent takes the third route and resolves on the pull request itself. Serpent AI
  reads the conflict, proposes a resolution, and waits for your review before applying
  it, so the fix lands where the merge actually happens rather than on whichever laptop
  is configured correctly. See &lt;a href=&quot;/features/serpent-ai&quot;&gt;Serpent AI&lt;/a&gt;, or browse
  more evergreen Salesforce DevOps playbooks in the
  &lt;a href=&quot;/resources&quot;&gt;Serpent guides&lt;/a&gt;.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Do I need to write the merge driver myself?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not necessarily. Open-source Salesforce XML merge drivers exist, and any XML-aware
  merge tool can be wrapped in a two-line shell script that matches the
  &lt;code&gt;%O %A %B&lt;/code&gt; contract. Writing your own is a reasonable afternoon if your
  metadata shape is unusual.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Will a merge driver change files that are already committed?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. It only runs during a merge, on the merged result. History is untouched, so you
  can add one and remove it again without rewriting anything.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What happens if the driver crashes?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Git treats a non-zero exit as an unresolved conflict and leaves the markers in place,
  so a broken driver degrades to the behaviour you had before. Make yours exit non-zero
  on anything it does not understand rather than guessing.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does this replace normalising metadata on retrieve?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No, and the two stack well. Normalising element order shrinks the diffs before git
  sees them, and the driver handles whatever survives that. Run both if you can.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Shrink Your Salesforce Release Cycle From Weeks to Hours]]></title>
            <description><![CDATA[The DevOps levers that turn a multi-week Salesforce release into a same-day deploy: source control, CI, automated testing, and smaller batches.]]></description>
            <link>https://serpent.cloud/resources/How-to-Shrink-Your-Salesforce-Release-Cycle-From-Weeks-to-Hours</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Shrink-Your-Salesforce-Release-Cycle-From-Weeks-to-Hours</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sun, 02 Aug 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong
    &gt;You shrink a Salesforce release cycle from weeks to hours by putting metadata in
    Git, automating the build and test steps in a CI pipeline, and shipping small
    changes often instead of one big monthly drop.&lt;/strong
  &gt;
  The bottleneck is almost never the platform. It is manual change sets, hand-run tests,
  and a release day that batches a month of risk into a single window. Remove those
  three and hours is realistic.
&lt;/p&gt;
&lt;h2&gt;Why does a Salesforce release take weeks in the first place?&lt;/h2&gt;
&lt;p&gt;
  Because most orgs still move metadata by hand. Change sets are assembled component by
  component, sandboxes drift out of sync, tests are run manually the night before, and
  everything ships in one monthly batch. Each of those is a queue, and queues stack.
  When a month of work lands in a single window, one bad component can force the whole
  release back, so teams pad the schedule with more manual review, which makes the cycle
  even longer. The slowness is process, not Salesforce.
&lt;/p&gt;
&lt;h2&gt;What actually shrinks the cycle from weeks to hours?&lt;/h2&gt;
&lt;p&gt;Four levers do almost all the work. In rough order of impact:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Source control as the single source of truth.&lt;/strong&gt; Move metadata into
    Git so every change has an author, a diff, and a history. This alone kills the &quot;what
    is actually in production?&quot; question that eats release days.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Continuous integration.&lt;/strong&gt; Every merge validates against a fresh org
    automatically. Broken metadata fails in minutes, not on release night.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Automated testing in the pipeline.&lt;/strong&gt; Apex tests, and ideally UI
    regression, run on every change instead of once at the end. Confidence stops being a
    manual gate.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Smaller, more frequent batches.&lt;/strong&gt; Ship daily instead of monthly. A
    one-day batch carries a fraction of the risk, so it needs a fraction of the
    ceremony.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  These reinforce each other. Git makes CI possible, CI makes automated testing cheap,
  and cheap testing makes small batches safe. The published Salesforce
  &lt;a
    href=&quot;https://www.salesforce.com/platform/devops-tools/what-is-devops/devops-best-practices/&quot;
    &gt;DevOps best practices&lt;/a
  &gt;
  land on the same short list: version control, automation, and frequent releases.
&lt;/p&gt;
&lt;h2&gt;How do you get there step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Put your org in Git.&lt;/strong&gt; Retrieve metadata into a source-tracked
    repository and make it authoritative. Nobody clicks in production without a commit
    behind it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Adopt a simple branching model.&lt;/strong&gt; Feature branches into an
    integration branch, integration into main. Keep it boring; boring is fast.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Wire up CI.&lt;/strong&gt; On every pull request, spin up a scratch org or
    dedicated sandbox, deploy the delta, and run tests. Merge only on green.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Automate the deployment.&lt;/strong&gt; Promote from integration to production
    through the same pipeline, not a manual change set. The machine does the same thing
    every time.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Shrink the batch.&lt;/strong&gt; Once deploys are push-button, release more often.
    Cadence is the payoff, not the starting point.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  For the org-by-org migration behind those steps, see
  &lt;a href=&quot;/resources/From-Change-Sets-to-Continuous-Delivery%3A-SF-DevOps-Playbook&quot;
    &gt;From Change Sets to Continuous Delivery: SF DevOps Playbook&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;How do you know it is actually working?&lt;/h2&gt;
&lt;p&gt;
  Measure it with the four DORA metrics, the industry standard for delivery performance:
  deployment frequency, lead time for changes, change failure rate, and mean time to
  recovery. As you automate, deployment frequency climbs and lead time falls, and if you
  are doing it right the change failure rate holds steady or improves because small,
  tested batches fail less often.
&lt;/p&gt;
&lt;h2&gt;Do you need a dedicated Salesforce DevOps tool?&lt;/h2&gt;
&lt;p&gt;
  You can assemble this with the Salesforce CLI, Git, and a generic CI runner, and
  plenty of strong teams do. But a purpose-built Salesforce DevOps platform handles the
  platform-specific pain that generic tooling ignores: metadata dependencies, profile
  and permission diffs, destructive changes, and data seeding between sandboxes. The
  category is healthy and worth evaluating on its merits, with options like Copado,
  Gearset, Salto, AutoRABIT, Flosum, and Blue Canvas each taking a different angle.
  &lt;a href=&quot;/&quot;&gt;Serpent&lt;/a&gt; sits here too, built to make the source-control-first
  pipeline above the default path rather than a project you have to hand-build. Pick the
  one whose workflow matches how your team already thinks; the tool matters far less
  than committing to the four levers.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can a Salesforce deployment really go from weeks to hours?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. The gain comes from removing manual steps, not from the platform itself. Once
  metadata lives in Git and CI runs the tests, the release window shrinks to the length
  of the pipeline.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is the single biggest lever?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Source control. Once every change is a tracked commit with a diff and history,
  continuous integration and automated testing become possible, and those two do most of
  the remaining acceleration.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Are change sets the problem?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  They are a big part of it. Change sets are manual, hard to audit, and offer no diff or
  rollback, which forces slow human review. Moving to a Git-based pipeline removes that
  bottleneck.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do I measure release performance?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Track the four DORA metrics: deployment frequency, lead time for changes, change
  failure rate, and mean time to recovery. They show whether faster releases are also
  safer releases.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does shipping more often make releases riskier?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Usually the opposite. Smaller batches change less at once, so each deploy is easier to
  test and to roll back, which lowers change failure rate even as frequency rises.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Map Git Branches to Salesforce Sandboxes]]></title>
            <description><![CDATA[Which sandbox type backs which branch, how promotion flows through reviewed merges, and how source tracking keeps every branch and org in sync.]]></description>
            <link>https://serpent.cloud/resources/How-to-Map-Git-Branches-to-Salesforce-Sandboxes</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Map-Git-Branches-to-Salesforce-Sandboxes</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong
    &gt;Mapping Git branches to Salesforce sandboxes means deciding which branch is the
    source of truth for each environment, so a change moves from dev to production
    through reviewed merges instead of org-to-org deployments.&lt;/strong
  &gt;
  Long-lived branches map to persistent sandboxes; short-lived feature branches map to
  scratch orgs and developer sandboxes. Get the mapping right and promotion is just a
  merge. Get it wrong and you inherit merge-of-merges and silent drift.
&lt;/p&gt;
&lt;p&gt;
  This guide is about the mapping mechanics, not the choice of model. If you are still
  deciding between trunk-based, GitFlow and branch per environment, start with
  &lt;a href=&quot;/resources/Git-branching-strategies-for-Salesforce-teams%3A-a-decision-rule&quot;
    &gt;Git branching strategies for Salesforce teams: a decision rule&lt;/a
  &gt;, then come back here to wire it to your orgs.
&lt;/p&gt;

&lt;h2&gt;Which sandbox type backs which branch?&lt;/h2&gt;
&lt;p&gt;
  A branch is only real if there is an org to deploy and test it in. Match each branch
  to the sandbox type that fits its purpose and refresh cadence:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Feature branch&lt;/strong&gt; to a scratch org or Developer sandbox. Disposable,
    created per ticket, thrown away on merge.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Integration branch&lt;/strong&gt; to a Developer Pro sandbox, where feature work
    lands and gets tested together.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;UAT branch&lt;/strong&gt; to a Partial Copy or Full sandbox, so business users
    test against representative data.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Main branch&lt;/strong&gt; to production, always protected and only ever updated
    through a reviewed merge.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Refresh cadence caps how many long-lived branches you can genuinely back. Salesforce
  sets minimum refresh intervals of
  &lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=000386499&amp;amp;language=en_US&amp;amp;type=1&quot;
    &gt;one day for Developer and Developer Pro, five days for Partial Copy and 29 days for
    Full&lt;/a
  &gt;, so a branch you cannot refresh is a branch you cannot trust.
&lt;/p&gt;

&lt;h2&gt;How does promotion flow between branches?&lt;/h2&gt;
&lt;p&gt;
  Promotion is a merge, not a redeploy. A change starts on a feature branch, then moves
  up the chain as it clears each gate:
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Cut a feature branch, develop against its scratch org or Developer sandbox.&lt;/li&gt;
  &lt;li&gt;
    Open a pull request into the integration branch; on merge, deploy to the integration
    sandbox.
  &lt;/li&gt;
  &lt;li&gt;
    Merge integration into the UAT branch for business sign-off in the Partial Copy or
    Full sandbox.
  &lt;/li&gt;
  &lt;li&gt;
    Merge UAT into main; the deploy to production is the same metadata that already
    passed UAT.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  The rule that saves the most pain: never let a branch that maps to production accept a
  direct commit. Everything reaches it through a reviewed merge, so the branch history
  is also your deployment history.
&lt;/p&gt;

&lt;h2&gt;How does source tracking keep a branch and its org in sync?&lt;/h2&gt;
&lt;p&gt;
  Source tracking records which metadata changed in a sandbox, so you pull those changes
  into the branch instead of guessing at a full retrieve. Deploy from git into the
  mapped org, and let source tracking flag anything an admin changed directly in that
  org. That loop keeps the branch as the source of truth and stops the org and the
  branch from quietly diverging.
&lt;/p&gt;
&lt;p&gt;
  Data, org-wide settings and licences live outside the repo, so the mapping only covers
  metadata. Treat those as environment configuration you seed separately, not as
  something a branch can promote.
&lt;/p&gt;

&lt;h2&gt;What are the common mapping mistakes?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;A long-lived branch per developer sandbox.&lt;/strong&gt; Every extra long-lived
    branch is another merge target that drifts. Keep feature branches short and
    disposable.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploying org to org and calling it promotion.&lt;/strong&gt; If the branch is not
    the thing you deploy, the branch history stops matching what is live.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Backing a UAT branch with a Developer sandbox.&lt;/strong&gt; Without
    representative data, sign-off tests the wrong thing and misses data-shaped bugs.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Letting admins change production directly.&lt;/strong&gt; A click in production
    that never enters git turns your mapping into fiction on the next deploy.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Make the mapping enforce itself&lt;/h2&gt;
&lt;p&gt;
  A mapping that lives in an onboarding doc breaks in the first busy release week.
  Serpent runs a ticket-based workflow with Git in the background, so the branch, its
  sandbox and the promotion path come from the ticket rather than from memory. More
  pipeline guides live in our &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Do I need one branch per sandbox?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Map long-lived branches only to persistent environments like integration, UAT and
  production. Use short-lived feature branches for scratch and developer orgs.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which sandbox should back my UAT branch?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  A Partial Copy or Full sandbox, so business users test against representative data
  rather than an empty developer org.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How is a change promoted between environments?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Through a reviewed merge from one branch to the next, followed by a deploy from git
  into the mapped org. Promotion is a merge, not a re-deploy from an org.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What keeps a branch and its org from drifting apart?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Source tracking plus deploy-from-git. The branch stays the source of truth, and any
  direct org change surfaces as a tracked diff to reconcile.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which branching model should I map first?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Pick the model before the mapping. See
  &lt;a href=&quot;/resources/Git-branching-strategies-for-Salesforce-teams%3A-a-decision-rule&quot;
    &gt;our decision rule&lt;/a
  &gt;
  for choosing by team size and sandbox topology.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up Approval Gates and Audit Trails for Salesforce Deployments]]></title>
            <description><![CDATA[Who approves what at each environment, how to configure the gates, and how to produce a deployment audit trail without screenshots.]]></description>
            <link>https://serpent.cloud/resources/How-to-Set-Up-Approval-Gates-and-Audit-Trails-for-Salesforce-Deployments</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Set-Up-Approval-Gates-and-Audit-Trails-for-Salesforce-Deployments</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; an approval gate is a rule that blocks a promotion
  until a named person who is not the author signs off. It becomes an audit trail when
  the approval is recorded against the exact commit and target org, and cannot be edited
  afterwards. Configure that once per environment and you stop assembling screenshots
  forever.
&lt;/p&gt;

&lt;h2&gt;What makes an approval gate auditable?&lt;/h2&gt;
&lt;p&gt;
  A gate that only exists in someone&apos;s habits is not a control. Four properties turn it
  into evidence:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Enforced.&lt;/strong&gt; The promotion is technically impossible without the
    approval, not just discouraged.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Attributed.&lt;/strong&gt; The approver is an authenticated identity, not a name
    typed into a ticket.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Bound.&lt;/strong&gt; The approval points at a specific commit and a specific
    target org, so it cannot be reused for a different payload.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Immutable.&lt;/strong&gt; Nobody, including admins, can edit the record after the
    fact.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  If any one is missing, an auditor will treat the whole control as unreliable, however
  good the process looks on a slide.
&lt;/p&gt;

&lt;h2&gt;Who should approve what, at which environment?&lt;/h2&gt;
&lt;p&gt;
  Most teams either gate nothing or gate everything, and both fail. Gate by risk, and
  write it down:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Feature or scratch org:&lt;/strong&gt; no gate. Speed matters more than control
    here, and nothing downstream trusts it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Integration or QA:&lt;/strong&gt; automated checks only. Tests, coverage and
    static or AI code review must pass. No human sign-off.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;UAT or staging:&lt;/strong&gt; one human approver, typically the tech lead, plus
    the automated checks. This is where design mistakes are still cheap.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Production:&lt;/strong&gt; two approvers. A technical reviewer who is not the
    author, plus the business owner of the affected process. Add a release window so
    approvals cannot be collected at 23:00 on a Friday.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Production hotfix:&lt;/strong&gt; one approver, with a mandatory retrospective
    work item inside 24 hours. Define the path rather than pretending it will not be
    used.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Two approvals at production is not bureaucracy. It is the smallest configuration that
  satisfies separation of duties under SOX-style testing, and it costs about five
  minutes.
&lt;/p&gt;

&lt;h2&gt;How do you configure the gates?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Take deploy rights off humans in production.&lt;/strong&gt; Only the pipeline&apos;s
    integration identity holds Modify Metadata and Modify All Data there. This single
    change makes every other gate real, because there is no way around it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Turn on branch protection for the branch that maps to production.&lt;/strong&gt;
    Require pull requests, require at least one approving review, and disable
    self-approval.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Make the checks required, not advisory.&lt;/strong&gt; Apex tests, coverage
    threshold, static analysis or automated code review must be blocking status checks.
    A check that can be ignored is not a gate.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Add an environment-level approval for production.&lt;/strong&gt; Branch protection
    covers the merge; the environment gate covers the deploy. You want both, because
    they answer different auditor questions.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Dismiss stale approvals on new commits.&lt;/strong&gt; Otherwise an approved pull
    request can be amended after sign-off, which quietly breaks the binding property
    above.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Name the approver groups by role, not by person.&lt;/strong&gt; People leave.
    Roles are what the auditor samples against.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Every mainstream Salesforce DevOps platform supports this pattern, including Copado,
  Gearset, AutoRABIT, Flosum, Blue Canvas and Serpent, as does plain GitHub or GitLab in
  front of the CLI. The configuration is what matters, not the badge on it.
&lt;/p&gt;

&lt;h2&gt;What must the deployment record contain?&lt;/h2&gt;
&lt;p&gt;
  When an auditor samples ten releases, each one should resolve to a single record
  carrying:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;The work item and its business reason.&lt;/li&gt;
  &lt;li&gt;The commit SHA and the metadata diff.&lt;/li&gt;
  &lt;li&gt;
    The approver identities, with timestamps, and whether the author is among them.
  &lt;/li&gt;
  &lt;li&gt;The test result and coverage at the time of the deploy, not today&apos;s number.&lt;/li&gt;
  &lt;li&gt;The target org, the deploy ID and the outcome, including partial failures.&lt;/li&gt;
  &lt;li&gt;Any exception flag, such as a break-glass release.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Store that outside the org. Records that live only inside Salesforce expire, and audit
  cycles are annual.
&lt;/p&gt;

&lt;h2&gt;Why native Salesforce logs are not enough on their own&lt;/h2&gt;
&lt;p&gt;They are worth enabling, but know the edges:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;a
      href=&quot;https://help.salesforce.com/s/articleView?id=xcloud.admin_monitorsetup.htm&amp;amp;type=5&quot;
      &gt;Setup Audit Trail&lt;/a
    &gt;
    keeps 180 days, shows only the most recent entries in the UI, and does not record
    before and after values. Download the CSV on a schedule or query the
    &lt;code&gt;SetupAuditTrail&lt;/code&gt; object.
  &lt;/li&gt;
  &lt;li&gt;
    Field History Tracking is capped at 20 fields per object, retains roughly 18 months
    in the UI and 24 via the API, and cannot track formula, roll-up summary or
    auto-number fields.
    &lt;a
      href=&quot;https://help.salesforce.com/s/articleView?id=xcloud.field_audit_trail.htm&amp;amp;type=5&quot;
      &gt;Field Audit Trail&lt;/a
    &gt;
    with Shield extends retention through a policy.
  &lt;/li&gt;
  &lt;li&gt;
    Neither tells you whether a change was approved. They record that something changed,
    not that it was allowed to.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  That last line is the reason the pipeline record is the primary evidence and the org
  logs are corroboration.
&lt;/p&gt;

&lt;h2&gt;How do you stop changes that bypass the gate?&lt;/h2&gt;
&lt;p&gt;
  The most common finding is not a bad approval, it is a change that never went through
  the pipeline at all: an admin editing a validation rule in production at 16:00 on a
  Tuesday. Close it with three habits.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Run drift detection on a schedule&lt;/strong&gt; and compare the production org
    against the branch. Anything present in the org and absent from Git is either an
    unapproved change or a gap in your capture.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Reconcile against Setup Audit Trail weekly.&lt;/strong&gt; Every entry should map
    to a deployment or a documented exception.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Treat repeated drift as a process bug.&lt;/strong&gt; If admins keep going around
    the pipeline, the pipeline is too slow for the work they do. Fix the friction, not
    the people.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Get those three running and the annual audit stops being a project. More setup guides
  like this one are in our &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How many approvers does a production deployment need?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Two is the practical standard: a technical reviewer who is not the author, plus the
  business owner of the affected process. One is enough for a documented hotfix.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can the person who wrote the change approve it?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. That breaks separation of duties and is the first thing an auditor tests. Disable
  self-approval in branch protection so the rule is enforced, not remembered.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do approval gates slow releases down?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Rarely, if you gate by environment. Lower environments stay ungated with automated
  checks only, so the human step happens once, at the point where a mistake is actually
  expensive.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is Setup Audit Trail enough evidence on its own?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. It keeps 180 days, omits before and after values, and shows that a change happened
  but not that it was approved. Use it to corroborate your pipeline records.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Handle Destructive Changes Safely in a Salesforce Deployment]]></title>
            <description><![CDATA[destructiveChanges manifests, deletion ordering, and the pre-flight checks that stop a field deletion taking data or a dependent component with it.]]></description>
            <link>https://serpent.cloud/resources/How-to-Handle-Destructive-Changes-Safely-in-a-Salesforce-Deployment</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Handle-Destructive-Changes-Safely-in-a-Salesforce-Deployment</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Fri, 24 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  You delete metadata in Salesforce with a &lt;code&gt;destructiveChanges.xml&lt;/code&gt; manifest
  deployed alongside a &lt;code&gt;package.xml&lt;/code&gt;, choosing whether the deletions run
  before or after the additive part of the deployment. The dangerous part is not the
  syntax. It is that a successful deletion is not something a deployment rollback can
  undo, and that the components most likely to break are the ones nobody has in source
  control.
&lt;/p&gt;

&lt;h2&gt;What is a destructiveChanges manifest?&lt;/h2&gt;
&lt;p&gt;
  A
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_deleting_files.htm&quot;
    &gt;destructiveChanges manifest&lt;/a
  &gt;
  uses the same format as &lt;code&gt;package.xml&lt;/code&gt;, with one important difference:
  &lt;strong&gt;wildcards are not supported&lt;/strong&gt;. Every component you intend to remove
  must be named.
&lt;/p&gt;
&lt;p&gt;
  A minimal entry looks like
  &lt;code
    &gt;&amp;lt;types&amp;gt;&amp;lt;members&amp;gt;Account.Legacy_Score__c&amp;lt;/members&amp;gt;&amp;lt;name&amp;gt;CustomField&amp;lt;/name&amp;gt;&amp;lt;/types&amp;gt;&lt;/code
  &gt;.
&lt;/p&gt;
&lt;p&gt;Two rules that trip people up on the first attempt:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    A &lt;code&gt;package.xml&lt;/code&gt; must still be present, in the same directory. For a
    delete-only deployment it carries the API version and lists no components.
  &lt;/li&gt;
  &lt;li&gt;
    Deletion attempts continue even if some listed components do not exist in the
    target. That is convenient, and it also means a typo fails silently rather than
    loudly.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Should deletions run before or after the deploy?&lt;/h2&gt;
&lt;p&gt;
  The Salesforce CLI gives you both, through
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_project_deploy_start.html&quot;
    &gt;two separate manifests&lt;/a
  &gt;: &lt;code&gt;--pre-destructive-changes&lt;/code&gt; deletes before the deploy,
  &lt;code&gt;--post-destructive-changes&lt;/code&gt; deletes after it.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Use post-destructive by default.&lt;/strong&gt; The additive package lands first, so
  anything that still references the doomed component can be repointed in the same
  deployment before it disappears.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Use pre-destructive when the old and the new collide.&lt;/strong&gt; The clearest
  cases:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;You are reusing an API name for a different component.&lt;/li&gt;
  &lt;li&gt;You are changing a field&apos;s type by deleting and recreating it.&lt;/li&gt;
  &lt;li&gt;
    A validation rule or required field would block the data or config change you are
    deploying.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Getting this backwards produces the two classic failures: a deletion that fails
  because something still references the component, or an addition that fails because
  the name is taken.
&lt;/p&gt;

&lt;h2&gt;What does a deletion actually take with it?&lt;/h2&gt;
&lt;p&gt;
  This is the part worth being blunt about. Deleting a field deletes its data. Deleted
  components go to the Recycle Bin unless the deployment sets
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy.htm&quot;
    &gt;purgeOnDelete&lt;/a
  &gt;, which makes them immediately eligible for deletion instead. Roll-up summary fields
  bypass the Recycle Bin regardless of that setting.
&lt;/p&gt;
&lt;p&gt;
  And &lt;code&gt;rollbackOnError&lt;/code&gt;, which is mandatory for production deployments,
  reverses the changes of a &lt;em&gt;failed&lt;/em&gt; deployment. It is not an undo button for a
  deletion that succeeded. If you need the data back after a successful purge, you are
  in a restore conversation, not a deployment one.
&lt;/p&gt;
&lt;p&gt;
  There is also a category of breakage that never shows up in your repository: reports,
  list views and dashboards that reference the field. They are configuration a business
  user built, they are usually not in Git, and the deployment will not warn you about
  them.
&lt;/p&gt;

&lt;h2&gt;What pre-flight checks stop a field deletion going wrong?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Run the dependency check in Setup.&lt;/strong&gt; Salesforce will tell you about
    formula fields, validation rules, layouts and other declarative references. This is
    necessary and not sufficient.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Search the metadata by API name.&lt;/strong&gt; Grep the repository for the API
    name. Flows, Apex, email templates and permission sets reference fields as strings,
    and string references do not appear in every dependency view.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Check reports and list views separately.&lt;/strong&gt; Nothing in your pipeline
    knows about them. Someone has to look.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Export the data first.&lt;/strong&gt; One CSV of the column plus record IDs. It
    costs ten minutes and it is the only real safety net.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run local tests.&lt;/strong&gt; For Apex classes and triggers, Salesforce&apos;s own
    guidance is to run all local tests, which is how you find code still referencing the
    thing you are deleting.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Check for an active Lightning page.&lt;/strong&gt; You cannot delete a component
    associated with an active Lightning page. Deactivate the action override in
    Lightning App Builder first.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate against production.&lt;/strong&gt; A &lt;code&gt;checkOnly&lt;/code&gt; deployment,
    or &lt;code&gt;--dry-run&lt;/code&gt; from the CLI, validates and runs tests without saving
    anything.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;How do you sequence a deletion across two releases?&lt;/h2&gt;
&lt;p&gt;
  The safe pattern is not a better manifest. It is splitting the deletion into two
  releases.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Release N, deprecate.&lt;/strong&gt; Remove every reference: layouts, formulas,
    flows, Apex, permission sets, reports. Mark the field deprecated in its description
    so the next person knows. Stop writing to it. Ship nothing destructive.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Soak.&lt;/strong&gt; Let a reporting cycle pass. This is when the report nobody
    mentioned surfaces, and it surfaces as a question rather than an incident.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Release N+1, delete.&lt;/strong&gt; Export the data, then deploy the
    destructiveChanges manifest on its own, with nothing else in it.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Shipping a deletion alone matters. If it is bundled with twenty other changes and
  something goes wrong, you cannot isolate the cause quickly, and rollback takes the
  good changes with it.
&lt;/p&gt;
&lt;p&gt;
  The same discipline applies to renames, which Git records as a delete plus an add.
  Treat every rename as a two-release deprecation unless you can prove nothing
  references the old name. More delivery playbooks are in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt; library.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can I use a wildcard in destructiveChanges.xml?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Wildcards are not supported. Every component to be deleted has to be named
  explicitly.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I still need a package.xml when I am only deleting?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. It must sit in the same directory, carry the API version, and list no components.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can I recover a field deleted by a deployment?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  It goes to the Recycle Bin unless &lt;code&gt;purgeOnDelete&lt;/code&gt; was set, and roll-up
  summary fields bypass the bin regardless. Treat a data export as the real recovery
  plan.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why did my destructive deployment succeed but delete nothing?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Deletion attempts continue when a listed component is absent from the target, so a
  wrong API name produces a green deployment and no change. Diff the target before and
  after.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;When should deletions run before the deploy instead of after?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  When the old and new components conflict: reusing an API name, recreating a field with
  a different type, or removing a rule that would block the rest of the deployment.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Delta Deployments in Salesforce: How to Deploy Only What Changed]]></title>
            <description><![CDATA[How to compute and deploy a Salesforce delta package safely, including the dependency traps that break partial deployments but not full ones.]]></description>
            <link>https://serpent.cloud/resources/Delta-Deployments-in-Salesforce%3A-How-to-Deploy-Only-What-Changed</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Delta-Deployments-in-Salesforce%3A-How-to-Deploy-Only-What-Changed</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  A delta deployment sends only the metadata that changed between two Git references,
  instead of the whole project. You compute it by diffing commits, generating a
  &lt;code&gt;package.xml&lt;/code&gt; from the diff, and deploying that manifest. It is faster and
  less risky than a full deployment in one specific way, and more fragile in another: a
  partial package can fail on dependencies a full package would have satisfied by
  accident.
&lt;/p&gt;

&lt;h2&gt;What is a delta deployment in Salesforce?&lt;/h2&gt;
&lt;p&gt;
  A delta deployment is a metadata deployment whose manifest is derived from a Git diff
  rather than from your whole source tree. Three moving parts:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;The diff.&lt;/strong&gt; Two Git refs, usually your feature branch and the branch
    you are merging into.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The manifest.&lt;/strong&gt; A &lt;code&gt;package.xml&lt;/code&gt; listing only added and
    modified components, plus a &lt;code&gt;destructiveChanges.xml&lt;/code&gt; listing deletions
    and renames.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The deployment.&lt;/strong&gt; A normal metadata deploy against that manifest.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Nothing about it belongs to a DevOps vendor. Every tool offering delta deploys,
  Serpent included, runs a version of the same three steps.
&lt;/p&gt;

&lt;h2&gt;How do you compute a delta package?&lt;/h2&gt;
&lt;p&gt;
  The common open-source route is
  &lt;a href=&quot;https://github.com/scolladon/sfdx-git-delta&quot;&gt;sfdx-git-delta&lt;/a&gt;, the plugin
  the
  &lt;a
    href=&quot;https://developer.salesforce.com/blogs/2021/01/optimizing-unpackaged-deployments-using-a-delta-generation-tool&quot;
    &gt;Salesforce Developers blog&lt;/a
  &gt;
  walked through for unpackaged sources. Note that it is an unofficial,
  community-maintained plugin, so treat it as a dependency you own.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    Make sure your CI checkout has enough Git history. A shallow clone with a depth of
    one cannot diff against a base branch, and this is the single most common reason a
    delta job produces an empty or wrong package.
  &lt;/li&gt;
  &lt;li&gt;
    Generate the manifest:
    &lt;code&gt;sf sgd source delta --from origin/main --to HEAD --output-dir .&lt;/code&gt;
  &lt;/li&gt;
  &lt;li&gt;
    Add &lt;code&gt;--generate-delta&lt;/code&gt; if you want the changed source files copied out
    alongside the manifest. Use it only when &lt;code&gt;--to&lt;/code&gt; is HEAD.
  &lt;/li&gt;
  &lt;li&gt;
    Guard against an empty manifest. A deployment with an empty
    &lt;code&gt;package.xml&lt;/code&gt; fails, so your pipeline should skip the deploy step rather
    than error out.
  &lt;/li&gt;
  &lt;li&gt;
    Deploy, applying deletions after the additions:
    &lt;code
      &gt;sf project deploy start -x package/package.xml --post-destructive-changes
      destructiveChanges/destructiveChanges.xml&lt;/code
    &gt;
  &lt;/li&gt;
  &lt;li&gt;Validate first: run the manifest as a check-only deploy before the real one.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;Which dependency traps make delta deployments fail?&lt;/h2&gt;
&lt;p&gt;
  This is the part tutorials skip. A full deployment carries every component, so
  implicit dependencies resolve silently. A delta carries a subset, and every previously
  invisible dependency becomes an error.
&lt;/p&gt;
&lt;h3&gt;Profiles and permission sets&lt;/h3&gt;
&lt;p&gt;
  Add a field in the delta and its access lives in the profile, which is a separate
  file. If the profile file did not change, it is not in the delta, and the field lands
  in the target with nobody able to see it. The retrieve side compounds this: Salesforce
  only returns
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_profile.htm&quot;
    &gt;security settings for metadata types referenced in the retrieve request&lt;/a
  &gt;, with user permissions, IP ranges and login hours always included. Treat profiles as
  something you deploy deliberately, not something the diff decides for you.
&lt;/p&gt;
&lt;h3&gt;Picklists, record types and translations&lt;/h3&gt;
&lt;p&gt;
  Removing a picklist value touches record types and translations that reference it.
  sfdx-hardis added
  &lt;a href=&quot;https://sfdx-hardis.cloudity.com/salesforce-ci-cd-config-delta-deployment/&quot;
    &gt;delta with dependencies&lt;/a
  &gt;
  precisely for this case, because the failure often does not appear in the delta
  deployment at all. It appears in the next full deployment, weeks later, in a different
  pipeline.
&lt;/p&gt;
&lt;h3&gt;Apex tests&lt;/h3&gt;
&lt;p&gt;
  If you deploy a changed class under &lt;code&gt;RunSpecifiedTests&lt;/code&gt;, its test class has
  to be in the target and named in the test list. A delta that includes the class but
  not the test is a coverage failure waiting for production.
&lt;/p&gt;
&lt;h3&gt;Flows&lt;/h3&gt;
&lt;p&gt;
  Flow deletion through &lt;code&gt;destructiveChanges.xml&lt;/code&gt; is a documented platform
  gap. The workaround is to deactivate first by deploying a
  &lt;code&gt;FlowDefinition&lt;/code&gt; with &lt;code&gt;activeVersionNumber&lt;/code&gt; set to zero.
&lt;/p&gt;
&lt;h3&gt;Metadata that lives inside one file&lt;/h3&gt;
&lt;p&gt;
  Custom labels, workflows and matching rules pack many members into a single file. A
  one-line change to one member marks the whole file changed, and force-including these
  needs full Git history, not a shallow clone.
&lt;/p&gt;
&lt;h3&gt;Renames&lt;/h3&gt;
&lt;p&gt;
  Git sees a rename as a delete plus an add. Deploy them in the wrong order and you
  either delete a component that is still referenced or create a duplicate.
  Post-destructive ordering exists for this reason.
&lt;/p&gt;

&lt;h2&gt;When should you deploy full instead of delta?&lt;/h2&gt;
&lt;p&gt;
  A useful default, and the one sfdx-hardis ships with, is delta for feature branches
  merging into a shared branch, and full deployments between shared environments. The
  reasoning is that the further up the pipeline you go, the more likely the target has
  drifted from source control, and a delta assumes source control is the truth.
&lt;/p&gt;
&lt;p&gt;Go full when any of these is true:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;The target org has had manual changes since the last deploy.&lt;/li&gt;
  &lt;li&gt;The change touches profiles, permission sets or sharing settings broadly.&lt;/li&gt;
  &lt;li&gt;
    You are promoting between two long-lived environments rather than merging a feature.
  &lt;/li&gt;
  &lt;li&gt;You are recovering from a failed or partially applied deployment.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Keep a manual override. sfdx-hardis uses a &lt;code&gt;NO_DELTA&lt;/code&gt; marker in the commit
  title, which is a good pattern to copy whatever tooling you use: the person who knows
  the change is risky should be able to force a full deploy without editing pipeline
  config.
&lt;/p&gt;

&lt;h2&gt;What does a safe delta pipeline look like?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;Full clone, or at least enough depth to reach the merge base.&lt;/li&gt;
  &lt;li&gt;
    Generate the manifest, then print it into the build log so a human can read what is
    about to ship.
  &lt;/li&gt;
  &lt;li&gt;Skip cleanly when the manifest is empty.&lt;/li&gt;
  &lt;li&gt;Check-only deploy, then real deploy, with destructive changes applied last.&lt;/li&gt;
  &lt;li&gt;
    Full deployment on a schedule, weekly or per release, to catch the drift the deltas
    never touched.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  That last step is the one teams drop, and it is the one that catches the
  picklist-and-translation class of failure before a release is on the line. More
  Salesforce delivery playbooks live in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt; library.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Are delta deployments safer than full deployments?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  They are faster and touch less, which lowers blast radius. They are not inherently
  safer, because a partial package can miss a dependency that a full package would have
  carried.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I need sfdx-git-delta to do delta deployments?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. It is the most common open-source route, and it is unofficial and
  community-maintained. Most commercial Salesforce DevOps platforms compute the delta
  for you.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why is my delta package empty in CI but not locally?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Almost always a shallow clone. Your CI checkout needs enough Git history to reach the
  commit you are diffing from.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do I delete metadata in a delta deployment?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Through &lt;code&gt;destructiveChanges.xml&lt;/code&gt;, applied after the additive package. Flows
  are the exception: deactivate them with a FlowDefinition change first.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should profiles be part of the delta?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Deploy them deliberately rather than letting the diff decide. Profile files only carry
  settings for the metadata types included in the retrieve, so a diff-driven profile is
  rarely the profile you meant.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross-Package Dependency Resolution in Salesforce: Modelling, Install Order and Safe Upgrades]]></title>
            <description><![CDATA[How to declare package dependencies, which package types may depend on which, and how to order installs so upgrades never strand a subscriber.]]></description>
            <link>https://serpent.cloud/resources/Cross-Package-Dependency-Resolution-in-Salesforce%3A-Modelling%2C-Install-Order-and-Safe-Upgrades</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Cross-Package-Dependency-Resolution-in-Salesforce%3A-Modelling%2C-Install-Order-and-Safe-Upgrades</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Wed, 22 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; cross-package dependency resolution is how Salesforce
  decides which packages must already be present, and at which versions, before another
  package can install or upgrade. You declare it in the &lt;code&gt;dependencies&lt;/code&gt; array
  of &lt;code&gt;sfdx-project.json&lt;/code&gt;, listed in installation order. Get the order and
  version floors right and subscriber upgrades are boring; get them wrong and an org
  lands on a version it cannot move off.
&lt;/p&gt;

&lt;h2&gt;What is a package dependency, exactly?&lt;/h2&gt;
&lt;p&gt;
  A dependency exists when metadata in one package references metadata in another: a
  Flow on a managed object, an Apex class extending a base class, a field set on someone
  else&apos;s field. The practical consequence is a precondition: the referenced package must
  be installed first, at a version at least as new as the one you built against, or the
  install fails.
&lt;/p&gt;

&lt;h2&gt;How do you declare a dependency between packages?&lt;/h2&gt;
&lt;p&gt;
  In the package directory entry of &lt;code&gt;sfdx-project.json&lt;/code&gt;, in either of two
  forms:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    An alias that already carries the version:
    &lt;code&gt;{ &quot;package&quot;: &quot;MyPackage@0.1.0.1&quot; }&lt;/code&gt;
  &lt;/li&gt;
  &lt;li&gt;
    Package and version separately:
    &lt;code&gt;{ &quot;package&quot;: &quot;MyPackage&quot;, &quot;versionNumber&quot;: &quot;1.0.0.RELEASED&quot; }&lt;/code&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Three rules matter more than the syntax.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Order is installation order.&lt;/strong&gt; When a package has several
    dependencies, the list is read as the sequence in which they must be installed.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Circular dependencies are not supported.&lt;/strong&gt; A depending on B while B
    depends on A is not a puzzle to solve, it is a design to break up.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Multi-level chains are supported.&lt;/strong&gt; C can depend on B, and B on A.
    Set &lt;code&gt;&quot;calculateTransitiveDependencies&quot;: true&lt;/code&gt; and you declare only direct
    dependencies while the indirect ones are computed for you. Leave it off and you list
    every level yourself, forever.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Which package types can depend on which?&lt;/h2&gt;
&lt;p&gt;This constrains the architecture, so check it before you draw it.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Managed 2GP can depend on managed 2GP and on unlocked packages.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Managed 2GP cannot depend on managed 1GP.&lt;/strong&gt; Salesforce blocks
    installing managed 2GP packages in managed 1GP packaging orgs. Where a product
    genuinely requires it, the route is a case with Salesforce Partner Support for an
    individual override, not a trick in a build script.
  &lt;/li&gt;
  &lt;li&gt;Managed 1GP can depend on managed 1GP, managed 2GP and unlocked packages.&lt;/li&gt;
  &lt;li&gt;
    Unlocked packages depending on managed packages are not recommended, and nothing
    supported depends on an unmanaged package.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  A 1GP base package under a 2GP extension is the most common dependency design that has
  to be undone late, and it is expensive by then. Read the
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/sfdx_dev_dev2gp_dependency_overview.htm&quot;
    &gt;supported combinations&lt;/a
  &gt;
  before the first build, not after.
&lt;/p&gt;

&lt;h2&gt;How do you model packages so the graph stays shallow?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;One direction only.&lt;/strong&gt; Base, then feature, then edge. If two packages
    want to reference each other, the shared metadata belongs in a third package
    underneath both.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Small and modular beats one large package.&lt;/strong&gt; Package creation and
    installation are both faster, and you are less likely to hit limits.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Depth is the expensive dimension, not breadth.&lt;/strong&gt; Every level you add
    multiplies release coordination: a change at the bottom needs a new version at every
    level above it before a subscriber sees any of it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Pin deliberately.&lt;/strong&gt; A pinned build number is reproducible and boring.
    A keyword such as &lt;code&gt;RELEASED&lt;/code&gt; follows your latest released version, which
    is convenient in development and a surprise in a release build.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;What is the correct install order in a subscriber org?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    Install or upgrade the lowest package in the graph first, the one with no
    dependencies of its own.
  &lt;/li&gt;
  &lt;li&gt;
    Work upward one level at a time, so every package meets its precondition when it
    installs.
  &lt;/li&gt;
  &lt;li&gt;Install the leaf package, the one your customer actually bought, last.&lt;/li&gt;
  &lt;li&gt;
    Verify rather than assume. A SOQL query on
    &lt;code&gt;SubscriberPackageVersion&lt;/code&gt; tells you what is installed in that org and at
    which version, which beats reading the Installed Packages page and hoping.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  If you cannot state that order from memory, neither can your support team when a
  customer is blocked.
&lt;/p&gt;

&lt;h2&gt;How do you change a dependency without stranding subscribers?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;The new version has to be a direct descendant of the installed one.&lt;/strong&gt;
    Subscribers cannot skip lineage, so a package whose ancestry was broken is a package
    some org cannot upgrade.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Beta packages are not upgradeable.&lt;/strong&gt; A subscriber holding a beta must
    uninstall before installing a released version, which in production is a data-loss
    conversation. Never leave a beta in a customer org.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Removed metadata is deprecated or deleted on upgrade.&lt;/strong&gt; Moving a
    component from one package to another is a removal in one and an addition in the
    other, so the release order across the two is the entire risk.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Raise version floors one step at a time.&lt;/strong&gt; Jumping the required
    version of a base package by several releases forces a chain of upgrades on
    subscribers who were not planning one.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The sequence that works when a base package changes: release the base version, move
  subscribers onto it with a recommended version or a push upgrade, then release the
  dependent package that requires it. Reversing those two produces an upgrade that fails
  a precondition in an org you cannot see and cannot fix from your side.
&lt;/p&gt;

&lt;h2&gt;What to automate&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    Build the graph from &lt;code&gt;sfdx-project.json&lt;/code&gt; on every pipeline run and fail
    the build on a cycle.
  &lt;/li&gt;
  &lt;li&gt;
    Install the full chain into a clean scratch org in declared order every time, so
    ordering bugs surface at build time, not in a customer org.
  &lt;/li&gt;
  &lt;li&gt;
    Record installed versions per subscriber org, so support can answer the question
    before asking the customer.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Serpent does cross-package dependency resolution, 1GP, 2GP and managed-package
  workflows and version management across subscriber orgs on every plan, including the
  free one. More playbooks live in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can a managed 2GP package depend on a managed 1GP package?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not by default. Salesforce blocks the combination, and an individual override is
  requested through a case with Salesforce Partner Support.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I have to list transitive dependencies?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only if you want to. Setting &lt;code&gt;&quot;calculateTransitiveDependencies&quot;: true&lt;/code&gt; lets
  you declare direct dependencies while the indirect ones are calculated. Without it,
  every level has to be listed by hand.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What happens if two packages depend on each other?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Nothing good, because circular dependencies are not supported. Extract the shared
  metadata into a lower package that both depend on.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which package do I upgrade first in a subscriber org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The one furthest down the graph. Dependencies are upgraded before the packages that
  require them, in the same order they were installed.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why does my customer&apos;s upgrade fail with a dependency error?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Usually a version floor. The installed base package is older than the version your new
  release requires, so upgrade the base package first and retry.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[The AppExchange Release Workflow: From Package Version to Subscriber Upgrade]]></title>
            <description><![CDATA[The full ISV release path: beta package versions, the 75% coverage gate, promotion, listing updates and staged subscriber upgrades.]]></description>
            <link>https://serpent.cloud/resources/The-AppExchange-Release-Workflow%3A-From-Package-Version-to-Subscriber-Upgrade</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/The-AppExchange-Release-Workflow%3A-From-Package-Version-to-Subscriber-Upgrade</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; an AppExchange release runs in five stages: create a
  beta package version, validate it, promote it to released, link it to your listing,
  then move subscribers onto it. Every second-generation managed package version is born
  a beta, promotion is a one-way door, and only security-reviewed packages can be pushed
  into subscriber orgs.
&lt;/p&gt;

&lt;h2&gt;What is the AppExchange release workflow, end to end?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Create the version.&lt;/strong&gt; Every 2GP version is created as a beta. A beta
    is installable for testing and can never be listed.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate it.&lt;/strong&gt; Install into a clean scratch org and into a sandbox
    shaped like a real subscriber, then run the full test suite.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Promote it.&lt;/strong&gt; &lt;code&gt;sf package version promote&lt;/code&gt; turns the beta
    into a released version.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Update the listing.&lt;/strong&gt; In the Partner Console, under Publishing and
    Listings, use Link Your Solution to attach the released version, then publish.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Move subscribers.&lt;/strong&gt; Subscriber-initiated install, a recommended
    version, or a push upgrade.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Most ISV teams already do all five somewhere. What they usually lack is the ordering,
  the gate between each stage, and a reliable record of which subscriber org sits on
  which version.
&lt;/p&gt;

&lt;h2&gt;How do you make a package version upgradable?&lt;/h2&gt;
&lt;p&gt;
  Upgradability is decided by &lt;strong&gt;ancestry&lt;/strong&gt;, not by the version number you
  typed. Each new 2GP version declares an ancestor in &lt;code&gt;sfdx-project.json&lt;/code&gt;,
  and Salesforce recommends &lt;code&gt;ancestorVersion: HIGHEST&lt;/code&gt; so it tracks your
  highest promoted version automatically. Existing customers cannot upgrade to a package
  version created without a specified ancestor, so one build with a missing ancestor
  produces a version nobody can reach.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Keep ancestry linear unless you have a deliberate reason to branch.&lt;/li&gt;
  &lt;li&gt;Treat the skip-ancestor-check flag as an incident, not a workflow.&lt;/li&gt;
  &lt;li&gt;
    Use version numbers the way subscribers read them: major for sweeping change, minor
    for new features, patch for small corrections.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;What has to be true before you promote?&lt;/h2&gt;
&lt;p&gt;Promotion is the gate that matters most, because it cannot be undone.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    A beta version must pass a &lt;strong&gt;75% code coverage requirement&lt;/strong&gt; before it
    can be promoted.
  &lt;/li&gt;
  &lt;li&gt;
    You can promote and release a given package version number only once, and you cannot
    revert it to beta.
  &lt;/li&gt;
  &lt;li&gt;
    The ancestor has to be correct, because the released version is the step your
    subscribers upgrade through.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Run promotion from your pipeline behind one explicit human approval, never from
  whichever laptop is authenticated to the Dev Hub. Grant the promote permission through
  a permission set, not to everyone with CLI access.
&lt;/p&gt;

&lt;h2&gt;When does security review actually happen?&lt;/h2&gt;
&lt;p&gt;
  For a first listing, security review sits between validation and publication and it is
  the long pole in the calendar. For updates the picture is different. You do not need a
  full security review for every patch or upgrade, and what governs publication is the
  listing status. If the listing shows Ready to List, you can publish the updated
  listing without submitting the new version for review. If it shows Security Review
  Required, you cannot publish until that version passes.
&lt;/p&gt;
&lt;p&gt;
  Salesforce also runs periodic re-reviews, and a version with significant change is
  likelier to trigger one. So budget review time into releases that change architecture,
  authentication or outbound calls, not into routine bug fixes. Check the current rules
  in the
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/appexchange_update_package_version.htm&quot;
    &gt;ISVforce guide to updating a listing&lt;/a
  &gt;
  before planning a quarter around them.
&lt;/p&gt;

&lt;h2&gt;How do you upgrade subscribers without stranding anyone?&lt;/h2&gt;
&lt;p&gt;Three levers, from least to most invasive:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Subscriber-initiated install.&lt;/strong&gt; Subscribers install from the listing
    or an install URL when they are ready. Slowest convergence, lowest risk.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Recommended version.&lt;/strong&gt; With 2GP you can mark a version as
    recommended, and subscribers then see an Upgrade to Recommended Version option on
    their Installed Packages page. A nudge, not a decision taken for them.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Push upgrade.&lt;/strong&gt; You upgrade subscriber orgs yourself, choosing which
    orgs, which version and when. Only packages that passed the AppExchange security
    review are eligible, Salesforce Partner Support enables the capability, and 2GP push
    upgrades run from the CLI or SOAP API, not the user interface.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  A staged rollout that holds up: your own orgs first, then partner and sandbox orgs,
  then a small cohort of consenting customers, then everyone else in scheduled off-peak
  batches. Leave a full business day between cohorts, not an hour.
&lt;/p&gt;

&lt;h2&gt;What actually goes wrong&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;There is no downgrade.&lt;/strong&gt; A subscriber who upgrades cannot roll back,
    so your rollback plan is a forward patch version. Keep the release branch ready to
    cut one the same day.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The listing drifts from the package.&lt;/strong&gt; A promoted version never
    linked to the listing means new prospects install last quarter&apos;s build while your
    docs describe this quarter&apos;s.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Ancestry breaks quietly.&lt;/strong&gt; Nothing fails at build time. It fails
    months later, in a customer org, as an upgrade that will not start.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Subscriber sandboxes get skipped.&lt;/strong&gt; Tell customers in your release
    notes to upgrade a Full or Partial sandbox first. It is the only rehearsal either
    side gets.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;What should you automate first?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    Version creation with code coverage computed on every merge to the release branch.
  &lt;/li&gt;
  &lt;li&gt;Automatic install and smoke test of that beta in a clean scratch org.&lt;/li&gt;
  &lt;li&gt;Promotion behind exactly one human approval, with the ancestor checked first.&lt;/li&gt;
  &lt;li&gt;
    A version register: which subscriber org runs which version, updated after every
    push.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Teams postpone the fourth item and regret it, because support quality depends on it
  more than anything else here. Serpent covers 1GP, 2GP and managed-package workflows,
  cross-package dependency resolution and version management across subscriber orgs on
  every plan, including the free one. More packaging playbooks live in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can I unpromote a package version?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. You can promote a version number only once and it cannot be undone, so treat
  promotion as a release decision, not a build step.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do I need a new security review for every release?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. A full review is not required for every patch or upgrade. Publication depends on
  your listing status, and Salesforce may still ask for a periodic re-review when a
  version changes significantly.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why can my customer not upgrade to my newest version?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Usually ancestry. Existing customers cannot upgrade to a version that was created
  without a specified ancestor, so check the ancestor before you check anything else.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong
    &gt;What is the difference between a recommended version and a push upgrade?&lt;/strong
  &gt;
&lt;/p&gt;
&lt;p&gt;
  A recommended version shows subscribers an Upgrade to Recommended Version option and
  leaves the timing to them. A push upgrade moves their org for them, on your schedule.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do beta versions count as releases?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Every 2GP version starts as a beta, which is installable for testing only. It
  becomes a release the moment it is promoted.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up a Salesforce MCP Server in Your DevOps Workflow]]></title>
            <description><![CDATA[A hands-on setup guide: pick the server, scope the orgs and toolsets, handle auth, and decide which actions stay behind human approval.]]></description>
            <link>https://serpent.cloud/resources/How-to-Set-Up-a-Salesforce-MCP-Server-in-Your-DevOps-Workflow</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Set-Up-a-Salesforce-MCP-Server-in-Your-DevOps-Workflow</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; setting up a Salesforce MCP server takes three
  decisions and about ten minutes of config. Pick the server (local Salesforce DX, a
  hosted Salesforce endpoint, or your DevOps platform&apos;s own), point your AI client at it
  with an explicit list of authorized orgs, then narrow the toolsets to the smallest set
  that does the job. The part that takes longer than ten minutes, and the part most
  guides skip, is deciding which actions the agent may run on its own and which stay
  behind a human.
&lt;/p&gt;

&lt;h2&gt;What is a Salesforce MCP server?&lt;/h2&gt;

&lt;p&gt;
  The Model Context Protocol is an open standard for exposing tools to an AI client. An
  MCP server for Salesforce turns operations you would normally run from the CLI or a UI
  into tools an assistant can call: query an org, retrieve metadata, run Apex tests,
  open a pull request, plan a deployment. The client decides what to call, the server
  decides what exists and who is allowed to call it.
&lt;/p&gt;

&lt;p&gt;
  For DevOps that framing matters. The server is your policy boundary. Anything you
  expose, the model can eventually try.
&lt;/p&gt;

&lt;h2&gt;Which Salesforce MCP server should you use?&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Salesforce DX MCP Server.&lt;/strong&gt; Runs locally on your machine using
    credentials you already authorized with the Salesforce CLI. Best for developers
    doing metadata, data and test work. Package: &lt;code&gt;@salesforce/mcp&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Salesforce hosted MCP servers.&lt;/strong&gt; Cloud endpoints reached over OAuth,
    for people who do not want the CLI installed. See Salesforce&apos;s
    &lt;a
      href=&quot;https://developer.salesforce.com/blogs/2025/06/introducing-mcp-support-across-salesforce&quot;
      &gt;MCP support announcement&lt;/a
    &gt;
    for the full stack, including Heroku and MuleSoft servers.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Your DevOps platform&apos;s MCP server.&lt;/strong&gt; This is the one that matters for
    release work, because deployment lives there, not in the org. Serpent&apos;s native MCP
    server exposes pipeline actions such as &lt;code&gt;plan_deploy&lt;/code&gt;,
    &lt;code&gt;create_pull_request&lt;/code&gt;, &lt;code&gt;resolve_metadata_conflict&lt;/code&gt; and
    &lt;code&gt;trigger_pipeline&lt;/code&gt; to Claude, Cursor, Windsurf, Codex, Cline, GitHub
    Copilot and Agentforce.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
  Most teams end up running two: one for org work, one for release work. They answer
  different questions.
&lt;/p&gt;

&lt;h2&gt;How do you set up the Salesforce DX MCP server?&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Authorize the orgs first.&lt;/strong&gt; Run &lt;code&gt;sf org login web&lt;/code&gt; for
    each org. The MCP server can only reach orgs the CLI already knows about, which is
    your first and cheapest control.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Add the server to your client&apos;s config.&lt;/strong&gt; A minimal entry looks like
    this:
    &lt;code
      &gt;{&quot;mcpServers&quot;:{&quot;Salesforce
      DX&quot;:{&quot;command&quot;:&quot;npx&quot;,&quot;args&quot;:[&quot;-y&quot;,&quot;@salesforce/mcp&quot;,&quot;--orgs&quot;,&quot;DEFAULT_TARGET_ORG&quot;,&quot;--toolsets&quot;,&quot;orgs,metadata,data&quot;]}}}&lt;/code
    &gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Scope the orgs explicitly.&lt;/strong&gt; The &lt;code&gt;--orgs&lt;/code&gt; flag is
    required. It accepts &lt;code&gt;DEFAULT_TARGET_ORG&lt;/code&gt;,
    &lt;code&gt;DEFAULT_TARGET_DEV_HUB&lt;/code&gt;, explicit usernames or aliases, and
    &lt;code&gt;ALLOW_ALL_ORGS&lt;/code&gt;. Salesforce&apos;s own documentation flags that last value as
    one to use with caution. Take the hint.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Narrow the toolsets.&lt;/strong&gt; &lt;code&gt;--toolsets&lt;/code&gt; selects functional
    groups rather than loading everything. There are more than fifteen, including orgs,
    metadata, data, users, testing, devops and code-analysis. Enabling
    &lt;code&gt;all&lt;/code&gt; works and is discouraged, because every tool you load spends
    context the model could be using to think.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Leave non-GA tools off.&lt;/strong&gt; Tools are marked GA or non-GA, and the
    non-GA ones need &lt;code&gt;--allow-non-ga-tools&lt;/code&gt;. Do not turn that flag on in a
    repo anyone else clones.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;How should authentication work?&lt;/h2&gt;

&lt;p&gt;
  Local servers inherit CLI credentials, which is convenient and means the agent&apos;s blast
  radius equals the developer&apos;s. Hosted servers use OAuth with PKCE through an External
  Client App, which is the right model when you want a separate identity with its own
  scopes.
&lt;/p&gt;

&lt;p&gt;
  The rule that survives both:
  &lt;strong&gt;the MCP identity should not be a shared admin&lt;/strong&gt;. Give it its own user,
  its own permission set, and no more object access than the tools you enabled actually
  need. If your agent can call a data tool, assume one day it will.
&lt;/p&gt;

&lt;h2&gt;Which actions should stay behind human approval?&lt;/h2&gt;

&lt;p&gt;
  This is the part worth arguing about in your team, not copying from a blog. A workable
  default:
&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Safe to automate:&lt;/strong&gt; read metadata, describe objects, run SOQL against
    sandboxes, run Apex tests, generate a deployment plan, open a pull request, post a
    summary.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Always human-approved:&lt;/strong&gt; deploying to production, releasing a package
    version, mass data operations, deleting or overwriting metadata, resolving a
    conflict in a way that discards someone else&apos;s change.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Never exposed at all:&lt;/strong&gt; credential management, user provisioning,
    anything touching a production org that has no rollback path.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
  The important design point is that approval must live in the server, not in the
  prompt. A model instructed to ask first will ask first almost always, and &quot;almost
  always&quot; is not a control. Serpent&apos;s MCP server runs preflight checks and requires
  human approval before a deployment executes, so the boundary is enforced by the
  platform rather than by good manners.
&lt;/p&gt;

&lt;h2&gt;What does this look like in a real pipeline?&lt;/h2&gt;

&lt;p&gt;
  A typical loop: the developer asks the assistant to prepare a release. The agent reads
  the diff, calls the plan tool, and comes back with the components, the tests it will
  run and the risks it found. A human reads that plan and approves it. The agent
  triggers the pipeline, watches it, and reports the result. Every write is auditable,
  and the human spent two minutes instead of forty.
&lt;/p&gt;

&lt;p&gt;
  Start with one repo and one sandbox. Expand the toolsets only when an actual task
  fails for lack of one. More
  &lt;a href=&quot;/resources&quot;&gt;Salesforce DevOps guides&lt;/a&gt; cover the pipeline side of this in
  detail.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Do I need the Salesforce CLI to use MCP?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  For the local Salesforce DX MCP server, yes, because it uses CLI credentials. Hosted
  MCP servers use OAuth instead and do not require a local CLI install.
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can an MCP server deploy to production?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Technically yes, which is exactly why it should not do so unattended. Keep production
  deploys behind an approval step enforced by the server, not by instructions in a
  prompt.
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which toolsets should I enable first?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Start with orgs, metadata and data. Add testing when you want the agent running Apex
  tests, and add devops tooling once the read-only loop is trusted.
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is MCP safe for regulated environments?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  It can be, if the agent has its own identity, least-privilege permissions, an audit
  trail and a human gate on writes. Treat it like any other integration user, because
  that is what it is.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Git branching strategies for Salesforce teams: a decision rule]]></title>
            <description><![CDATA[Trunk-based, GitFlow or branch per environment? Pick by team size and sandbox topology, not by what works for normal software teams.]]></description>
            <link>https://serpent.cloud/resources/Git-branching-strategies-for-Salesforce-teams%3A-a-decision-rule</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Git-branching-strategies-for-Salesforce-teams%3A-a-decision-rule</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;TL;DR:&lt;/strong&gt; Pick your branching model from two inputs, team size and
  sandbox topology, and nothing else. Under about four contributors with only developer
  sandboxes, use one main branch and short-lived feature branches. Between four and ten
  with a partial copy for UAT, add a release branch per release and stop there. Above
  that, or with a full sandbox and a fixed change window, GitFlow earns its ceremony.
  Branch per environment is a compliance choice, not an engineering one.
&lt;/p&gt;

&lt;h2&gt;What does a branching strategy actually decide?&lt;/h2&gt;
&lt;p&gt;
  Three things, and only three: where work in progress lives, how a change is promoted
  to the next environment, and what has to be true before something reaches production.
  Everything else is diagram decoration.
&lt;/p&gt;
&lt;p&gt;
  Salesforce teams get this wrong because the general engineering advice assumes
  something that is not true on the platform: that a branch gives you somewhere to run
  it.
&lt;/p&gt;

&lt;h2&gt;What are the three models in plain terms?&lt;/h2&gt;
&lt;h3&gt;Trunk-based with short-lived feature branches&lt;/h3&gt;
&lt;p&gt;
  One long-lived branch, &lt;code&gt;main&lt;/code&gt;, that always reflects what production should
  be. Feature branches live days, not weeks, and merge back through a pull request.
  Fewest moving parts, fewest conflicts, hardest discipline.
&lt;/p&gt;
&lt;h3&gt;GitFlow&lt;/h3&gt;
&lt;p&gt;
  &lt;code&gt;main&lt;/code&gt; for released code, &lt;code&gt;develop&lt;/code&gt; for integrated work, plus
  release and hotfix branches. Built for scheduled releases and for maintaining a live
  version while the next one is being built. It costs you an extra permanent branch and
  a lot of merging.
&lt;/p&gt;
&lt;h3&gt;Branch per environment&lt;/h3&gt;
&lt;p&gt;
  One branch mirroring each org: dev, UAT, staging, production. It is usually the first
  thing teams build, because it looks like the org landscape they already have.
  Promotion becomes a merge between environment branches, which sounds tidy and turns
  into merges of merges plus routine cherry-picking.
&lt;/p&gt;

&lt;h2&gt;Which Salesforce constraints break the textbook advice?&lt;/h2&gt;
&lt;p&gt;This is where most branching articles stop and where the real decision lives.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;A branch does not give you an org.&lt;/strong&gt; Environments are scarce and
    slow. Salesforce sets minimum refresh intervals of
    &lt;a
      href=&quot;https://help.salesforce.com/s/articleView?id=000386499&amp;amp;language=en_US&amp;amp;type=1&quot;
      &gt;one day for Developer and Developer Pro, five days for Partial Copy and 29 days
      for Full&lt;/a
    &gt;. The number of long-lived branches you can genuinely test is capped by your
    sandbox count, not by your Git skills.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Metadata is retrieved, not authored.&lt;/strong&gt; Admins change things in an org
    and someone pulls it later. A long-lived branch cannot be reconciled against
    declarative work that never entered Git in the first place.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Some things have no branch at all.&lt;/strong&gt; Org-wide defaults, licences,
    certain configuration and all record data live outside the repo. A model that
    assumes every environment difference is in Git will quietly lie to you.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;There are no feature flags for clicks.&lt;/strong&gt; Trunk-based development in
    normal engineering leans on toggles to merge unfinished work. Declarative config
    often has no toggle, so the Salesforce equivalent is to deploy the metadata and
    withhold the permission set assignment until go-live.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Merge cost is asymmetric.&lt;/strong&gt; Profiles, permission sets and layouts
    conflict far worse than Apex. Every extra week a branch lives multiplies that cost,
    which pushes Salesforce harder toward short branches than typical software.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;So what is the decision rule?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong
      &gt;One to three contributors, developer sandboxes only, no fixed release
      date.&lt;/strong
    &gt;
    Main plus short-lived feature branches. Anything more is ceremony you will abandon
    in month three.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong
      &gt;Four to ten contributors, a partial copy for UAT, releasing every sprint.&lt;/strong
    &gt;
    Main, short-lived feature branches, and one release branch cut per release. Resist
    adding a permanent &lt;code&gt;develop&lt;/code&gt;; you do not have the sandbox count to
    justify it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong
      &gt;More than ten contributors, or a full sandbox, or a fixed change window, or you
      must patch the live release while building the next.&lt;/strong
    &gt;
    GitFlow. The ceremony is now buying you something real.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Package and ISV teams.&lt;/strong&gt; Branch by package version, not by
    environment. Your release unit is the package version and your test bed is a scratch
    org, so environment branches model the wrong thing entirely.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Branch per environment.&lt;/strong&gt; Justified when a branch has to be an
    auditable mirror of an org&apos;s state, which is a regulatory requirement rather than a
    delivery preference. Go in knowing the cost: cherry-picking becomes routine and
    drift becomes invisible.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Notice that release cadence barely appears. Cadence is an output of your sandbox
  topology, not an independent input, and teams that pick a model by desired cadence end
  up with a process their environments cannot support.
&lt;/p&gt;

&lt;h2&gt;How do you move off branch per environment without a big bang?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    Stop creating new environment branches today. The model stops growing before it
    starts shrinking.
  &lt;/li&gt;
  &lt;li&gt;
    Reconcile &lt;code&gt;main&lt;/code&gt; with production and treat the diff as a real backlog,
    not a curiosity. It is usually where the surprises are.
  &lt;/li&gt;
  &lt;li&gt;
    Turn environment branches into deployment targets in the pipeline instead of Git
    branches. The environment still exists, it just stops being a place code lives.
  &lt;/li&gt;
  &lt;li&gt;
    Cap feature branch age at one sprint. Anything longer needs a package boundary or a
    permission gate, not a longer branch.
  &lt;/li&gt;
  &lt;li&gt;
    Keep exactly one release branch, and only if you genuinely support a live release
    while building the next.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;Making the model stick&lt;/h2&gt;
&lt;p&gt;
  The model that survives contact with a real team is the one the pipeline enforces, not
  the one in the onboarding doc. If a consultant has to remember the branching rules,
  the rules will be broken during the first busy release week. Serpent runs a
  ticket-based workflow with Git in the background, so the branch, the pull request and
  the promotion path come from the ticket rather than from memory. More pipeline guides
  live in our &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Is trunk-based development realistic for a team of admins?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes, and it is usually easier for admins than GitFlow, because there is one branch to
  understand. The discipline that matters is short branches, not Git fluency.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do we need one Git branch per sandbox?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. A sandbox is a deployment target. Mapping one branch to each org is the main cause
  of merges of merges and permanent cherry-picking. For the mapping done right, see
  &lt;a href=&quot;/resources/How-to-Map-Git-Branches-to-Salesforce-Sandboxes&quot;
    &gt;How to Map Git Branches to Salesforce Sandboxes&lt;/a
  &gt;.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How long should a Salesforce feature branch live?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Days. One sprint is the outer limit. Beyond that, metadata drift and profile conflicts
  cost more than the branch saves.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do hotfixes work under trunk-based?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Branch from the last released commit, fix, validate, deploy, then merge back into main
  immediately so the fix is not lost on the next release.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does the model change for 2GP package teams?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Branch by package version and test in scratch orgs. Environment branches model an
  org landscape that a package team does not release into.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Manage Profiles and Permission Sets in Source Control]]></title>
            <description><![CDATA[A workable Git approach for Salesforce's hardest metadata: permission set decomposition, profile overlays, safe migration and what to stop tracking.]]></description>
            <link>https://serpent.cloud/resources/How-to-Manage-Profiles-and-Permission-Sets-in-Source-Control</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Manage-Profiles-and-Permission-Sets-in-Source-Control</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Fri, 17 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; put permission sets in source control as the real
  source of truth, decompose them so two people can edit them without a merge conflict,
  keep profiles thin and treat every profile deploy as an overlay rather than a full
  replacement. Then deliberately stop tracking the parts that are environment-specific,
  because most profile churn in a repo is noise nobody reads.
&lt;/p&gt;

&lt;h2&gt;Why are profiles so hard to keep in Git?&lt;/h2&gt;
&lt;p&gt;
  Two documented behaviours make profiles behave unlike every other file in your repo.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;A retrieve is context-dependent.&lt;/strong&gt; The returned .profile file only
    includes security settings for the other metadata types named in the same retrieve
    request. Ask for a profile alone and you get almost nothing; ask for it alongside 40
    objects and you get a different file (&lt;a
      href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_profile.htm&quot;
      &gt;Metadata API documentation&lt;/a
    &gt;).
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;A deploy is an overlay.&lt;/strong&gt; Permissions not present in the file are not
    removed in the target org, and disabling a permission requires explicitly writing
    the false value into the XML. A missing line means &quot;no opinion&quot;, not &quot;off&quot;.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Put those together and the same profile produces a different diff depending on who
  retrieved it and what else was in their package. That is why profile diffs are the
  most argued-about, least trusted files in most Salesforce repositories.
&lt;/p&gt;

&lt;h2&gt;What changed in 2026, and does it change your strategy?&lt;/h2&gt;
&lt;p&gt;
  Salesforce had announced that permissions in profiles would be retired starting in
  Spring &apos;26. On 6 June 2026 that enforcement was cancelled, citing customer feedback
  and remaining feature gaps, while Salesforce continued to recommend a
  permission-set-led security model (&lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=003834041&amp;amp;language=en_US&amp;amp;type=1&quot;
    &gt;Salesforce Help&lt;/a
  &gt;).
&lt;/p&gt;
&lt;p&gt;
  The practical read: the deadline is gone, the direction is not. Profiles stay
  supported, so nobody has to panic-migrate, but if you are choosing where to invest
  your source-control discipline, invest it in permission sets. They are additive, they
  decompose, and they merge.
&lt;/p&gt;

&lt;h2&gt;How do you decompose permission sets so they stop conflicting?&lt;/h2&gt;
&lt;p&gt;
  A permission set as retrieved is one large XML file listing every object, field and
  user permission. Two admins touching two unrelated fields collide in the same file.
  Salesforce ships a fix for this in the CLI: source behavior options that split the
  file into one file per permission group (&lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_decomposed_md_types.htm&quot;
    &gt;Salesforce DX developer guide&lt;/a
  &gt;).
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    Commit everything first. This rewrites files on disk, so start from a clean tree.
  &lt;/li&gt;
  &lt;li&gt;
    Run it as a dry run:
    &lt;code
      &gt;sf project convert source-behavior --behavior decomposePermissionSetBeta2
      --dry-run&lt;/code
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    Run it for real. Your &lt;code&gt;sfdx-project.json&lt;/code&gt; is updated so the behaviour
    sticks for everyone, and the existing source is converted in place.
  &lt;/li&gt;
  &lt;li&gt;
    Commit the conversion on its own branch, with no functional change in it. Reviewers
    cannot read a diff that mixes a format conversion with real edits.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  The same mechanism covers custom labels, workflows, sharing rules and external service
  registrations. Note the gap:
  &lt;strong&gt;profiles are not on the decomposable list.&lt;/strong&gt; Objects and object
  translations decompose by default, the rest are opt-in betas, and profiles remain a
  single file.
&lt;/p&gt;

&lt;h2&gt;What should you stop tracking?&lt;/h2&gt;
&lt;p&gt;
  Half the pain here is self-inflicted. These belong outside the repo, or behind a
  deliberate exclusion.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Managed package permissions.&lt;/strong&gt; Namespaced object and field
    permissions appear and vanish with package versions in each org. Tracking them
    guarantees permanent phantom diffs.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Login IP ranges and login hours.&lt;/strong&gt; These are usually environment
    policy, not release content, and they differ legitimately between sandbox and
    production.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Permission set assignments.&lt;/strong&gt; These are records, not metadata. Who
    has which permission set is data, and it belongs to a data-seeding step, not to Git.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Standard object permissions you never intend to change.&lt;/strong&gt; If nothing
    in your process manages them, retrieving them only adds diff volume.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Profiles you do not deploy.&lt;/strong&gt; Most orgs have inherited profiles
    nobody has touched in years. Track the ones your pipeline actually promotes.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Write the exclusions down as a rule in the repo, not as tribal knowledge in one
  person&apos;s CLI history. A rule that lives in someone&apos;s shell alias is a rule that breaks
  the first time a new joiner runs a retrieve.
&lt;/p&gt;

&lt;h2&gt;How do you move permissions from profiles to permission sets safely?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    Pick one profile and inventory what it actually grants in production, not in the
    sandbox where it drifted.
  &lt;/li&gt;
  &lt;li&gt;
    Create permission sets by job task, not by job title. Task-shaped sets get reused;
    title-shaped sets get duplicated for every new title.
  &lt;/li&gt;
  &lt;li&gt;
    Assign the new sets alongside the profile, changing nothing yet. Access is additive,
    so nobody loses anything at this stage.
  &lt;/li&gt;
  &lt;li&gt;
    Remove the moved permissions from the profile in a separate release, with explicit
    false values so the deploy actually turns them off.
  &lt;/li&gt;
  &lt;li&gt;
    Verify with a user of that profile in a sandbox, and keep the pre-change permission
    snapshot until you have.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Never do steps three and four in the same release. Additive and subtractive permission
  changes have completely different rollback stories, and mixing them is how a Monday
  morning lockout happens. More release engineering playbooks are in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Should profiles or permission sets be the source of truth?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Permission sets. They are additive, they decompose into mergeable files and Salesforce
  recommends a permission-set-led model. Keep profiles for baseline defaults such as
  license, default record types and page layouts.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Are permissions in profiles being retired?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. The retirement planned for Spring &apos;26 was cancelled on 6 June 2026. Migration is
  now your own timeline rather than a deadline.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why does my profile diff change when I did not touch it?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Because a profile retrieve only returns settings for the metadata included in the same
  request. Change the package contents and the file changes. Fix the retrieve manifest,
  not the file.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can profiles be decomposed like permission sets?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not today. The CLI source behavior options cover permission sets, custom labels,
  workflows, sharing rules and external service registrations. Profiles remain one file,
  which is another argument for keeping them thin.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce test automation in CI: what to run on every pull request, and what to run nightly]]></title>
            <description><![CDATA[A practical split of Apex tests, coverage gates and UI tests across your pipeline, with a feedback loop under ten minutes.]]></description>
            <link>https://serpent.cloud/resources/Salesforce-test-automation-in-CI%3A-what-to-run-on-every-pull-request%2C-and-what-to-run-nightly</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Salesforce-test-automation-in-CI%3A-what-to-run-on-every-pull-request%2C-and-what-to-run-nightly</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 14 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; on every pull request, run only the fast and
  deterministic checks: static analysis on the diff, LWC Jest, and a validate-only delta
  deployment that runs just the Apex tests covering the changed code. Push everything
  slow or flaky, full org test runs, UI journeys and external integrations, to a nightly
  job. Aim for a pull request verdict in under ten minutes, because past that people
  stop reading it.
&lt;/p&gt;

&lt;h2&gt;What belongs on every pull request?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Static analysis on the diff.&lt;/strong&gt; Seconds, no org, catches the
    mechanical problems before a human reads the code.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;LWC Jest tests.&lt;/strong&gt; They run off-platform in Node, so they need no org
    at all.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;A validate-only delta deployment&lt;/strong&gt; against a target-shaped org, with
    the test level set to run only the classes that cover what changed.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Metadata sanity checks.&lt;/strong&gt; No unintended destructive changes, no
    profile or permission set entries silently disappearing.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  One rule governs this list: everything on the pull request gate must be deterministic.
  A single flaky test teaches the team to press re-run, and a gate people re-run until
  it goes green is decoration.
&lt;/p&gt;

&lt;h2&gt;What belongs in the nightly job?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;A full local Apex run&lt;/strong&gt; against the integration sandbox. This is what
    catches the class you did not know your change touched.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;UI journeys&lt;/strong&gt; across the core business flows.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Integration tests&lt;/strong&gt; that call external systems, where you cannot
    control latency or availability.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;A drift check&lt;/strong&gt; between the integration org and the branch, so
    someone editing directly in Setup is visible the next morning.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The org-level coverage trend&lt;/strong&gt;, which is a report and not a gate.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Nightly failures get triaged over coffee. That is the point: they are not standing
  between a developer and their merge.
&lt;/p&gt;

&lt;h2&gt;What should only run before a release?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;The full regression suite and any user acceptance pass.&lt;/li&gt;
  &lt;li&gt;
    Performance and bulk-data tests, which need volume that a scratch org does not have.
  &lt;/li&gt;
  &lt;li&gt;
    A validate-only deployment against production, followed by a quick deploy so the
    release window is not spent waiting for tests to run.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;How do Salesforce&apos;s test levels map onto this?&lt;/h2&gt;
&lt;p&gt;
  Four levels, and the choice per stage is most of the design (&lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_running_tests.htm&quot;
    &gt;Metadata API guide&lt;/a
  &gt;).
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;code&gt;NoTestRun&lt;/code&gt;: fine inside a scratch org, never on a path to production.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;RunSpecifiedTests&lt;/code&gt;: your pull request gate. One catch worth knowing: at
    this level each class and trigger in the deployment package must reach 75% coverage
    &lt;em&gt;individually&lt;/em&gt;, computed per component rather than org-wide (&lt;a
      href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deploy_run_specific_tests.htm&quot;
      &gt;Salesforce docs&lt;/a
    &gt;).
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;RunLocalTests&lt;/code&gt;: everything except managed package tests. This is what a
    production deployment containing Apex runs by default.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;code&gt;RunAllTestsInOrg&lt;/code&gt;: adds managed package tests. Rarely what you want, and
    slow.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The platform rules underneath do not change: at least 75% of your Apex must be covered
  to deploy to production, every trigger needs at least one line of coverage, and every
  test that executes has to pass, whatever the coverage number says (&lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=000385650&amp;language=en_US&amp;type=1&quot;
    &gt;Salesforce Help&lt;/a
  &gt;).
&lt;/p&gt;

&lt;h2&gt;How do you keep the pull request loop under ten minutes?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploy the delta, not the org.&lt;/strong&gt; Validate only what the branch
    changed.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Derive the test list.&lt;/strong&gt; Generate the specified test classes from the
    changed components instead of running everything by hand-maintained list.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run in parallel.&lt;/strong&gt; Jest and static analysis should run alongside the
    org validation, not queue behind it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep a warm target org.&lt;/strong&gt; Creating and seeding an org per pull
    request is usually the single largest block of clock time. Use a pool or a
    long-lived validation sandbox.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cache dependencies&lt;/strong&gt; between runs, including the CLI and Node
    modules.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Stub or defer external calls.&lt;/strong&gt; Anything whose response time you do
    not control belongs in the nightly job.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Measure the duration&lt;/strong&gt; and put it somewhere visible. Pipeline runtime
    creeps quietly and only ever in one direction.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;Where do UI tests belong?&lt;/h2&gt;
&lt;p&gt;
  Not on the pull request. UI tests are the slowest and the most brittle thing in a
  Salesforce pipeline: shadow DOM in Lightning components, generated element ids and
  login prompts all break selectors for reasons that have nothing to do with the change
  under review.
&lt;/p&gt;
&lt;p&gt;
  The workable placement is a small smoke set of five to ten critical journeys after
  merge to the integration branch, and the full suite nightly. A practical rule: if a UI
  test fails twice for reasons other than the product, it is a maintenance item, not a
  gate.
&lt;/p&gt;

&lt;h2&gt;How should coverage gates be set?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Gate the pull request on coverage of the changed code&lt;/strong&gt;, not on the
    org-wide number. The org number moves slowly and hides brand new untested classes
    behind years of old ones.
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Keep the org-wide floor as a release gate&lt;/strong&gt;, where it belongs.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Do not let the percentage become the goal.&lt;/strong&gt; Salesforce&apos;s own
    guidance is to cover every use case, positive and negative, bulk and single record,
    and let the number follow.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This guide is part of our &lt;a href=&quot;/resources&quot;&gt;Salesforce DevOps guides&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How fast should a Salesforce pull request check be?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Under ten minutes end to end. Beyond that developers context-switch, stop reading the
  output, and the check stops changing behaviour.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should we run all Apex tests on every pull request?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Run the tests covering the changed classes with &lt;code&gt;RunSpecifiedTests&lt;/code&gt;,
  and keep the full local run for the nightly job and the release validation.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What coverage does Salesforce actually require?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  75% of Apex org-wide to deploy to production, at least one line of coverage on every
  trigger, and every executed test must pass. With &lt;code&gt;RunSpecifiedTests&lt;/code&gt;, each
  class and trigger in the package needs 75% on its own.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do LWC Jest tests need a Salesforce org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. They run off-platform in Node, which is exactly why they belong on the pull
  request gate rather than in the nightly job.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Where should UI tests run?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  A small smoke set after merge, the full suite nightly. Putting them on the pull
  request is the fastest way to teach a team to ignore a red build.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to resolve Salesforce metadata merge conflicts without losing anyone's work]]></title>
            <description><![CDATA[A practical playbook for profile, Flow and layout conflicts: how to read the diff, what to combine, and what to re-author instead.]]></description>
            <link>https://serpent.cloud/resources/How-to-resolve-Salesforce-metadata-merge-conflicts-without-losing-anyone&apos;s-work</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-resolve-Salesforce-metadata-merge-conflicts-without-losing-anyone&apos;s-work</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Mon, 13 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; Most Salesforce merge conflicts are not real
  disagreements. They are two people adding unrelated things to the same oversized XML
  file, or the same elements coming back in a different order. Combine both sides for
  additive metadata like profiles, permission sets, layouts and labels, and never
  hand-merge generated XML like Flows: pick one version and re-apply the other change in
  Flow Builder.
&lt;/p&gt;

&lt;h2&gt;Why are Salesforce merge conflicts different from ordinary code conflicts?&lt;/h2&gt;
&lt;p&gt;Four platform quirks cause almost all of them.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Element order is not guaranteed.&lt;/strong&gt; The Metadata API can return the
    same file with its elements in a different sequence, so Git reports a conflict where
    nothing changed. These are false conflicts.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Some types are one giant file.&lt;/strong&gt; A profile carries object, field,
    Apex class and page permissions in a single document. Two people on unrelated
    features write to the same lines.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Some XML is machine generated.&lt;/strong&gt; A Flow definition holds canvas
    coordinates and generated element names. It is not meant to be edited by hand and it
    is not safe to merge by hand.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Git resolves text, Salesforce validates meaning.&lt;/strong&gt; A textually clean
    merge can still produce a file the deployment rejects, or a valid file that silently
    drops somebody&apos;s permission.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Which metadata types conflict most, and what do you do about each?&lt;/h2&gt;

&lt;h3&gt;Profiles and permission sets&lt;/h3&gt;
&lt;p&gt;
  The worst offenders, and almost always additive. Two branches each add an
  &lt;code&gt;objectPermissions&lt;/code&gt; or &lt;code&gt;fieldPermissions&lt;/code&gt; block and the
  additions land next to each other. Take both sides, then de-duplicate on the key
  element (&lt;code&gt;field&lt;/code&gt;, &lt;code&gt;object&lt;/code&gt;, &lt;code&gt;apexClass&lt;/code&gt;) and re-sort.
  Never resolve a profile by accepting one side wholesale.
&lt;/p&gt;
&lt;p&gt;
  Worth knowing: Salesforce has cancelled the retirement of permissions in profiles (&lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=003834041&amp;language=en_US&amp;type=1&quot;
    &gt;Salesforce Help article 003834041&lt;/a
  &gt;), so profiles are not going away on a clock and this problem does not solve itself.
  Salesforce still recommends a least-privilege model built on permission sets, and
  moving permissions off profiles genuinely shrinks the conflict surface, because
  permission sets are small, per-feature files.
&lt;/p&gt;

&lt;h3&gt;Flows&lt;/h3&gt;
&lt;p&gt;
  Do not hand-merge them. The XML carries generated element names and canvas
  coordinates, so a line-level merge produces something that looks plausible and behaves
  wrongly. Choose one version as the winner and re-apply the other change in Flow
  Builder.
&lt;/p&gt;

&lt;h3&gt;Page layouts and Lightning record pages&lt;/h3&gt;
&lt;p&gt;
  Layout XML lists every item in position order, so two people adding fields to
  different sections still collide if the sections are adjacent. Combine both sides,
  then check that every &lt;code&gt;layoutItem&lt;/code&gt; from each parent survived. If a
  Lightning record page conflict runs to more than a few lines, rebuild it in the
  Lightning App Builder rather than merging it.
&lt;/p&gt;

&lt;h3&gt;Custom objects and fields&lt;/h3&gt;
&lt;p&gt;
  If your repo stores an object as one file, every field change touches it. Decomposed
  source format gives each field its own file and removes most of these conflicts before
  they happen.
&lt;/p&gt;

&lt;h3&gt;Apex classes and triggers&lt;/h3&gt;
&lt;p&gt;
  Treat these as normal code conflicts, because they are. Resolve the logic, re-run the
  tests, and then check that the class is still granted in the profiles and permission
  sets that reference it.
&lt;/p&gt;

&lt;h3&gt;Custom labels and translations&lt;/h3&gt;
&lt;p&gt;Single alphabetical files, purely additive. Take both sides and re-sort.&lt;/p&gt;

&lt;h2&gt;How do you read a Salesforce metadata diff before resolving anything?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Confirm which side is which.&lt;/strong&gt; In a merge, &quot;ours&quot; is the target
    branch and &quot;theirs&quot; is incoming. In a rebase they swap. Getting this backwards is
    the most common way work disappears.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Filter out ordering-only differences.&lt;/strong&gt; If both sides hold the same
    elements in a different sequence, nobody changed anything.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Hunt for deletions, not additions.&lt;/strong&gt; Additions are usually safe to
    combine. A block that exists on one side and not the other is the change that costs
    someone a day.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Compare against the target org, not only the branch.&lt;/strong&gt; Somebody may
    have edited the org directly since the branch was cut.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate before you merge the pull request.&lt;/strong&gt; XML that merges cleanly
    can still fail deployment validation.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  How do you resolve a profile conflict without deleting a colleague&apos;s permission?
&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;List the conflicting blocks by their key element rather than by line number.&lt;/li&gt;
  &lt;li&gt;Keep both sides of every block that appears on only one side.&lt;/li&gt;
  &lt;li&gt;
    Where the same key appears on both sides with different values, decide permission by
    permission and record the reasoning in the pull request.
  &lt;/li&gt;
  &lt;li&gt;
    Remove the conflict markers and re-sort the file so the next diff stays small.
  &lt;/li&gt;
  &lt;li&gt;Validate the merged file against the target org.&lt;/li&gt;
  &lt;li&gt;
    Ask both authors to confirm their permission still exists after the merge. This
    takes a minute and catches what review misses.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;How do you resolve a Flow conflict safely?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    Take the version already on the target branch as the base and discard the other side
    in Git.
  &lt;/li&gt;
  &lt;li&gt;
    Open a sandbox that has that base version and re-apply the second author&apos;s change in
    Flow Builder.
  &lt;/li&gt;
  &lt;li&gt;Retrieve the flow and commit the retrieved file as the resolution.&lt;/li&gt;
  &lt;li&gt;
    Check which version is active in the target org before deploying, because deploying
    a flow adds a version rather than replacing one.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;How do you stop the next conflict?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Short-lived branches, merged the same week they are cut.&lt;/li&gt;
  &lt;li&gt;One feature per pull request.&lt;/li&gt;
  &lt;li&gt;Permissions in per-feature permission sets instead of shared profiles.&lt;/li&gt;
  &lt;li&gt;Objects stored in decomposed source format.&lt;/li&gt;
  &lt;li&gt;
    Pull the target branch into yours before opening the PR, so you resolve on your own
    time with your own change fresh in mind.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  For why these conflicts happen in the first place, and the tooling that removes the
  false ones, read
  &lt;a
    href=&quot;/blog/Metadata-Conflicts-in-Salesforce%3A-Why-They-Happen-and-How-to-Stop-Them&quot;
    &gt;Metadata Conflicts in Salesforce: Why They Happen and How to Stop Them&lt;/a
  &gt;.
&lt;/p&gt;
&lt;p&gt;This guide is part of our &lt;a href=&quot;/resources&quot;&gt;Salesforce DevOps guides&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can Git resolve Salesforce metadata conflicts on its own?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only textually. Git cannot tell that two profile blocks are independent or that a
  reordered file is unchanged, so it raises false conflicts and will happily accept a
  merge that is semantically wrong.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is a false conflict?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  A conflict where both sides hold the same metadata in a different order. The Metadata
  API does not guarantee element order, so two retrievals can differ with no real change
  behind them.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should I ever hand-edit Flow XML to resolve a conflict?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Pick one version and re-apply the other change in Flow Builder, then commit what
  you retrieve.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong
    &gt;Why do profiles conflict when we worked on completely different features?&lt;/strong
  &gt;
&lt;/p&gt;
&lt;p&gt;
  A profile is a single file covering permissions for every object, field and class in
  the org, so unrelated features end up writing to adjacent lines.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do I check the merge did not lose anything?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Diff the merged file against both parent versions, confirm every key element from each
  side survived, and validate the deployment against the target org before merging.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Automate Salesforce Deployments With Scratch Orgs]]></title>
            <description><![CDATA[Wire scratch orgs into CI: definition file, dependencies, source deploy, Apex tests, cleanup, and the allocation limits that break real pipelines.]]></description>
            <link>https://serpent.cloud/resources/How-to-Automate-Salesforce-Deployments-With-Scratch-Orgs</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/How-to-Automate-Salesforce-Deployments-With-Scratch-Orgs</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sun, 12 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; automating Salesforce deployments with scratch orgs
  means your CI job creates a disposable org from a definition file, installs your
  dependencies, deploys your source, runs the tests, and deletes the org again. The
  pieces are a Dev Hub, a scratch org definition file, &lt;code&gt;sfdx-project.json&lt;/code&gt;,
  and four or five CLI commands. The part that decides whether it survives contact with
  a real team is not the script, it is the scratch org limits.
&lt;/p&gt;

&lt;h2&gt;When should you use a scratch org instead of a sandbox?&lt;/h2&gt;
&lt;p&gt;
  A scratch org is a disposable, source-driven org created from a configuration file, so
  its shape lives in your repository rather than in someone&apos;s memory. Use one when the
  environment should be defined by code and thrown away: per-feature development,
  per-pull-request validation, package build and install testing.
&lt;/p&gt;
&lt;p&gt;
  Stay on a sandbox when you need production-like data volume or a long-lived
  integration endpoint. Scratch orgs cap out at roughly 200MB of records and 50MB of
  files, and they expire (&lt;a
    href=&quot;https://www.salesforceben.com/salesforce-scratch-orgs/&quot;
    &gt;Salesforce Ben&lt;/a
  &gt;).
&lt;/p&gt;

&lt;h2&gt;What goes in the scratch org definition file?&lt;/h2&gt;
&lt;p&gt;
  The definition file is the blueprint. Only &lt;code&gt;edition&lt;/code&gt; is required, with
  values such as Developer, Enterprise, Group, Professional and the Partner equivalents.
  The keys worth knowing (&lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_def_file.htm&quot;
    &gt;Salesforce DX Developer Guide&lt;/a
  &gt;):
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;features&lt;/strong&gt;: an array of add-on features to switch on.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;settings&lt;/strong&gt;: org and feature preferences in Metadata API format. Some
    capabilities, Experience Cloud among them, need a feature &lt;em&gt;and&lt;/em&gt; a matching
    setting before they work.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;objectSettings&lt;/strong&gt;: sharing models and default record types per object.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;release&lt;/strong&gt;: pin the org to a Salesforce release instead of following
    the Dev Hub.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;sourceOrg&lt;/strong&gt; and &lt;strong&gt;snapshot&lt;/strong&gt;: build from an org shape or
    from a point-in-time copy instead of a bare edition.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;hasSampleData&lt;/strong&gt;, &lt;strong&gt;orgName&lt;/strong&gt;,
    &lt;strong&gt;adminEmail&lt;/strong&gt;, &lt;strong&gt;country&lt;/strong&gt;, &lt;strong&gt;language&lt;/strong&gt;:
    the small stuff that makes a failure reproducible.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Keep one definition file per pipeline purpose. A CI definition should be minimal and
  fast; a demo definition can carry sample data. Mixing the two is how a pull request
  check turns into a three-minute wait.
&lt;/p&gt;

&lt;h2&gt;How does your source get into the org?&lt;/h2&gt;
&lt;p&gt;
  Scratch orgs use source tracking, so you deploy your project into the org and pull
  changes back out. In the current CLI that is &lt;code&gt;sf project deploy start&lt;/code&gt; to
  push and &lt;code&gt;sf project retrieve start&lt;/code&gt; to pull; the older
  &lt;code&gt;force:source:push&lt;/code&gt; and &lt;code&gt;force:source:deploy&lt;/code&gt; commands were
  consolidated into it (&lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_push_md_to_scratch_org.htm&quot;
    &gt;Salesforce DX Developer Guide&lt;/a
  &gt;).
&lt;/p&gt;
&lt;p&gt;
  Dependencies come from &lt;code&gt;sfdx-project.json&lt;/code&gt;. The CI job reads the namespace
  and package dependencies there and installs them before your own source lands, which
  is why a build that works locally but fails in CI is usually a dependency ordering
  problem, not a metadata problem.
&lt;/p&gt;

&lt;h2&gt;What does the CI job actually run?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Authenticate to the Dev Hub&lt;/strong&gt; using a JWT key stored as a CI secret.
    Never an interactive login.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Create the org:&lt;/strong&gt;
    &lt;code
      &gt;sf org create scratch --definition-file config/project-scratch-def.json --alias
      ci&lt;/code
    &gt;, with a duration set to the shortest useful value.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Install package dependencies&lt;/strong&gt; declared in
    &lt;code&gt;sfdx-project.json&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deploy your source&lt;/strong&gt; with &lt;code&gt;sf project deploy start&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Seed the minimum data&lt;/strong&gt; the tests need, from a versioned file in the
    repo.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Run Apex tests&lt;/strong&gt; and publish the results, failing the job on coverage
    or assertion failures.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Delete the org&lt;/strong&gt; in a step that always runs, including when earlier
    steps fail.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Step seven is the one teams forget, and it is the one that quietly breaks the pipeline
  a week later.
&lt;/p&gt;

&lt;h2&gt;Why do scratch org pipelines fail once the team gets busy?&lt;/h2&gt;
&lt;p&gt;
  This is where most guides stop, and where real pipelines actually break. Four things
  to plan for:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Allocation limits.&lt;/strong&gt; Developer, Enterprise, Performance and Unlimited
    Edition Dev Hubs each allow 6 scratch orgs per day and 3 active at once (&lt;a
      href=&quot;https://www.salesforceben.com/salesforce-scratch-orgs/&quot;
      &gt;Salesforce Ben&lt;/a
    &gt;). Ten pull requests a day and a per-PR org do not fit in that. Check yours with
    &lt;code&gt;sf org list limits&lt;/code&gt; before you design the workflow, not after.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Expiry.&lt;/strong&gt; The default lifespan is 7 days and the maximum is 30. Any
    environment a human is asked to review must be created with an explicit duration, or
    it will vanish mid-review.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Creation latency.&lt;/strong&gt; A cold scratch org plus dependency installs is
    dead time on every single run. Pre-warmed pools and snapshots exist precisely to
    move that cost off the critical path.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Data.&lt;/strong&gt; Scratch orgs start empty. Seed from a versioned file rather
    than a manual export, or your tests pass for reasons nobody can reproduce.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  If you are hitting the allocation ceiling, the honest options are to reserve per-PR
  orgs for changes that touch packaged metadata, use a shared long-lived org for
  everything else, or run a pool. Serpent gives every plan scratch orgs, and adds
  pre-warmed scratch org pooling on Scale and Enterprise so the org is waiting before
  the pipeline asks for it.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Do I need a Dev Hub to use scratch orgs?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Scratch orgs are created against an enabled Dev Hub, which is also where your
  daily and active allocations are counted.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can an ISV build packages this way?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes, and it is the standard path. Build and install the package version in a fresh
  scratch org on every run, so install failures show up in CI instead of at a
  subscriber.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is the difference between an org shape and a snapshot?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  A shape copies the configuration of an existing org into a new empty one. A snapshot
  copies a point-in-time scratch org, including what was already deployed to it.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should every pull request get its own scratch org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only if your allocation supports it. With 3 active orgs, a busy repository needs
  pooling or a shared validation org instead.
&lt;/p&gt;
&lt;p&gt;
  More step-by-step Salesforce DevOps guides are in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce DevOps for Admins: How to Deploy Without Touching Git]]></title>
            <description><![CDATA[A step-by-step guide for admins: run ticket-based Salesforce deployments with version control, review and rollback, without touching Git.]]></description>
            <link>https://serpent.cloud/resources/Salesforce-DevOps-for-Admins%3A-How-to-Deploy-Without-Touching-Git</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Salesforce-DevOps-for-Admins%3A-How-to-Deploy-Without-Touching-Git</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Sat, 11 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; a Salesforce admin does not need to learn Git to deploy
  safely. What you need is a versioned pipeline, and a ticket-based DevOps tool can run
  one for you: you pick your changes in a UI, it commits them, opens the pull request,
  runs the tests and promotes the work through your environments. Git still runs
  underneath. It just stops being your interface.
&lt;/p&gt;

&lt;h2&gt;Do you need Git to do Salesforce DevOps?&lt;/h2&gt;
&lt;p&gt;
  No. You need what Git gives you, which is not the same thing. Three ideas carry almost
  all of the value, and none of them requires a terminal.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Source control:&lt;/strong&gt; a permanent record of every metadata change, who
    made it and when, so you can compare it or undo it later.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Pipeline:&lt;/strong&gt; a fixed path your changes travel, for example dev sandbox
    to UAT to production, with the same checks at every step.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Work item:&lt;/strong&gt; the ticket a change belongs to, so a release is a list
    of approved tickets instead of a list of components somebody remembered.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  A Git-free workflow is not a workflow without version control. It is a workflow where
  the version control is automated on your behalf.
&lt;/p&gt;

&lt;h2&gt;Why do change sets stop scaling for an admin team?&lt;/h2&gt;
&lt;p&gt;
  Change sets are the real incumbent, and they hold up fine until a second person starts
  making changes. Two limits do most of the damage. First, a change set needs a
  deployment connection and only travels between orgs affiliated with the same
  production org, so unrelated orgs are simply out of reach (&lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=sf.changesets.htm&amp;amp;type=5&quot;
    &gt;Salesforce Help&lt;/a
  &gt;). Second, a change set is a one-time parcel: it carries no history, offers no undo,
  and cannot be edited once uploaded, so a rejected release means rebuilding the
  component list by hand.
&lt;/p&gt;
&lt;p&gt;
  The failure that hurts most is not the deployment that fails. It is the silent
  overwrite: two people edit the same flow or page layout in different sandboxes, and
  whoever deploys second quietly wins.
&lt;/p&gt;

&lt;h2&gt;What does a ticket-based deployment look like end to end?&lt;/h2&gt;
&lt;p&gt;
  This is the flow most admins are never shown, so here it is in full. Nothing below
  requires a command line.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Connect the orgs once.&lt;/strong&gt; Authorise production and each sandbox over
    OAuth. A platform that uses standard Salesforce APIs installs no package in your
    org, so there is nothing to uninstall later.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Define the pipeline.&lt;/strong&gt; Name your environments and the order they
    promote in. This is a one-time setup and it becomes the only route to production.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Open a ticket.&lt;/strong&gt; One ticket per change, ideally per user story. The
    ticket, not the sandbox, is now the unit of release.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Build in your sandbox exactly as you do today.&lt;/strong&gt; Point and click,
    Flow Builder, page layouts. Nothing about how you configure Salesforce changes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Select your changes.&lt;/strong&gt; The tool lists what changed in that sandbox
    since the last sync. You tick the components, write a short description, and attach
    them to the ticket.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Review before anything moves.&lt;/strong&gt; Apex tests and coverage run
    automatically, and an AI review reads the diff for governance drift, security issues
    and best-practice violations. A colleague approves the ticket.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Promote the same selection.&lt;/strong&gt; The approved ticket travels to UAT and
    then to production. You never rebuild the list, which is where change-set releases
    lose components.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Release, and keep the undo button.&lt;/strong&gt; The production deployment is
    recorded, so if the release misbehaves you roll back to the previous known-good
    state in one action rather than reverse-engineering what shipped.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;What is Git doing while you click?&lt;/h2&gt;
&lt;p&gt;Every step above has a Git equivalent that the platform performs for you:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Opening a ticket creates a branch.&lt;/li&gt;
  &lt;li&gt;Selecting components writes a commit with your description as the message.&lt;/li&gt;
  &lt;li&gt;
    Requesting review opens a pull request and runs the automated checks against it.
  &lt;/li&gt;
  &lt;li&gt;
    Approving and promoting merges that pull request and triggers a Metadata API
    deployment.
  &lt;/li&gt;
  &lt;li&gt;Rolling back reverts the commit and redeploys the previous state.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  That matters for one practical reason: your developers keep the repository, the
  branches and the CLI they already use, and the admins work in a UI on top of the same
  history. There is no second source of truth to reconcile.
&lt;/p&gt;

&lt;h2&gt;Is DevOps Center enough on its own?&lt;/h2&gt;
&lt;p&gt;
  Salesforce ships its own free option, and for a small team leaving change sets behind
  it is a genuine step up. Know the boundaries before you commit. DevOps Center works
  only with cloud-based GitHub.com plans, including GitHub Enterprise Cloud, and locally
  hosted GitHub Enterprise Server is not supported. Every user needs their own
  GitHub.com account, and each project repository must contain a Salesforce DX project
  (&lt;a
    href=&quot;https://help.salesforce.com/s/articleView?id=platform.devops_center_setup_source_control_repos.htm&amp;amp;type=5&quot;
    &gt;Salesforce Help&lt;/a
  &gt;).
&lt;/p&gt;
&lt;p&gt;
  So the admin never types a Git command, but somebody still administers GitHub, and
  backup, rollback and test automation sit outside the product. If that describes your
  team, a platform that owns the whole path is the lighter option.
&lt;/p&gt;

&lt;h2&gt;What should an admin set up in the first week?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    Pick one pipeline and one production org. Do not model every environment on day one.
  &lt;/li&gt;
  &lt;li&gt;
    Move one low-risk release through it end to end before you migrate the backlog.
  &lt;/li&gt;
  &lt;li&gt;
    Agree a review rule in writing, for example no ticket reaches production without one
    approval.
  &lt;/li&gt;
  &lt;li&gt;
    Turn on automated Apex tests at the UAT step, not at the production step, so
    failures surface early.
  &lt;/li&gt;
  &lt;li&gt;
    Run one deliberate rollback in a sandbox so the team has used it before they need
    it.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Serpent runs this flow with Git in the background, installs nothing in your Salesforce
  org, and includes AI code review on every paid plan. Setup takes
  under 15 minutes and our team does it with you.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can a Salesforce admin do DevOps without a developer?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Selecting metadata, reviewing a diff and approving a release are admin skills.
  What you cannot skip is the process: one pipeline, one ticket per change, one
  approval.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Does a Git-free workflow still give me rollback?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Only if the tool keeps version history. Rollback is possible because every deployment
  was committed first, which is precisely what change sets never do.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Will my developers be slowed down by an admin UI?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No, if both sides share one repository. Developers keep the CLI and their branches;
  the UI is a different door into the same history.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What do I do with my existing change sets?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Keep them for one release while you run the new pipeline in parallel, then retire
  them. Do not migrate an in-flight release halfway.
&lt;/p&gt;
&lt;p&gt;
  More step-by-step Salesforce DevOps walkthroughs live in our
  &lt;a href=&quot;/resources&quot;&gt;SF Guides library&lt;/a&gt;.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[2GP CI/CD: How to Automate Unlocked and Managed Package Builds]]></title>
            <description><![CDATA[A step-by-step 2GP pipeline: build, version, test and promote, plus the ancestry and namespace decisions that break builds months later.]]></description>
            <link>https://serpent.cloud/resources/2gp-ci-cd-how-to-automate-unlocked-and-managed-package-builds</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/2gp-ci-cd-how-to-automate-unlocked-and-managed-package-builds</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; a 2GP CI/CD pipeline creates a package version on every
  merge, installs that version into a fresh scratch org, runs the tests against it, and
  promotes only what passes. The pipeline itself is five commands. What actually breaks
  2GP builds months later is not the pipeline, it is the ancestry and namespace
  decisions made in week one.
&lt;/p&gt;

&lt;h2&gt;What does a 2GP CI/CD pipeline actually do?&lt;/h2&gt;
&lt;p&gt;Five stages, in this order:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Validate the source.&lt;/strong&gt; Static analysis and linting on the pull
    request, before anything is built.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Build a package version.&lt;/strong&gt; A beta version, produced from source, not
    from an org.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Install it somewhere clean.&lt;/strong&gt; A fresh scratch org proves the package
    installs, which is a different assertion from &quot;the code deploys&quot;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Test against the installed package.&lt;/strong&gt; Namespaced code behaves
    differently once packaged, so tests must run after install.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Promote what passes.&lt;/strong&gt; Promotion is the gate, and it is the only step
    that should be hard to trigger.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  The distinction that matters: &lt;em&gt;deploying&lt;/em&gt; metadata proves it compiles in an org
  you control. &lt;em&gt;Installing&lt;/em&gt; a package version proves it works in an org you do
  not.
&lt;/p&gt;

&lt;h2&gt;What changes between unlocked and managed 2GP?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Unlocked packages&lt;/strong&gt; are for your own org estate or a customer&apos;s. No
    namespace is required, no ancestry, no security review. Versions are cheap and
    disposable.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Managed 2GP&lt;/strong&gt; is for distribution: a registered namespace,
    intellectual property protection, ancestry, upgrade paths for subscribers, and
    AppExchange security review.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The pipeline shape is the same for both. The consequences of a bad promote are not: an
  unlocked version you regret can be replaced, a promoted managed version is public API
  forever.
&lt;/p&gt;

&lt;h2&gt;How do you build the pipeline, step by step?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Authenticate the Dev Hub non-interactively.&lt;/strong&gt; A JWT bearer flow with
    a certificate stored in your CI secret store. The Dev Hub must be the org that owns
    the namespace, or version creation fails immediately.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Create the version:&lt;/strong&gt;
    &lt;code
      &gt;sf package version create --package MyPackage --code-coverage
      --installation-key-bypass --wait 60&lt;/code
    &gt;. Capture the resulting &lt;code&gt;04t&lt;/code&gt; id as a pipeline output.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Spin a scratch org:&lt;/strong&gt;
    &lt;code
      &gt;sf org create scratch --definition-file config/project-scratch-def.json
      --duration-days 1 --wait 10&lt;/code
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Install and test:&lt;/strong&gt;
    &lt;code&gt;sf package install --package 04tXXXX --wait 20&lt;/code&gt;, then
    &lt;code&gt;sf apex run test --test-level RunLocalTests --code-coverage --wait 30&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Promote, on the release branch only:&lt;/strong&gt;
    &lt;code&gt;sf package version promote --package MyPackage@1.3.0-2&lt;/code&gt;.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  Everything before step 5 should run on every pull request. Step 5 should run on
  exactly one branch, behind a human approval.
&lt;/p&gt;

&lt;h2&gt;How do you get ancestry and namespace right so builds do not break later?&lt;/h2&gt;

&lt;h3&gt;Ancestry&lt;/h3&gt;
&lt;p&gt;
  Ancestry applies to managed 2GP only, and it is where automated pipelines quietly go
  wrong. Salesforce requires that the ancestor you specify is the highest promoted
  package version number for that package, and only versions promoted to
  managed-released state can be listed as an ancestor (&lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/sfdx_dev_dev2gp_config_ancestors.htm&quot;
    &gt;Salesforce Developers&lt;/a
  &gt;). Three rules to encode in your pipeline:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Use the keyword.&lt;/strong&gt; &lt;code&gt;&quot;ancestorVersion&quot;: &quot;HIGHEST&quot;&lt;/code&gt; in
    &lt;code&gt;sfdx-project.json&lt;/code&gt; sets the ancestor to the highest promoted version
    automatically, which is exactly what CI needs. The alternatives are an explicit
    &lt;code&gt;major.minor.patch&lt;/code&gt; or an &lt;code&gt;ancestorId&lt;/code&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Never promote a build that only passed halfway.&lt;/strong&gt; A promoted version
    becomes the next ancestor. Promote noise and your ancestry line inherits it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Understand what breaking the line costs.&lt;/strong&gt; You can break linear
    versioning with &lt;code&gt;--skip-ancestor-check&lt;/code&gt;, but packages only upgrade along
    the ancestry line, so any subscriber sitting on an abandoned version loses their
    upgrade path.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Patch versions have their own rule: a patch cannot be the direct ancestor of a
  non-patch version.
&lt;/p&gt;

&lt;h3&gt;Namespace&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Link the namespace to the Dev Hub your CI authenticates to.&lt;/strong&gt; This
    single mismatch is the most common first-run failure.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;2GP allows several packages in one namespace.&lt;/strong&gt; Split by package
    directory in &lt;code&gt;sfdx-project.json&lt;/code&gt; and declare inter-package dependencies
    explicitly, with versions.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Coming from 1GP?&lt;/strong&gt; Salesforce made
    &lt;a
      href=&quot;https://developer.salesforce.com/blogs/2025/06/move-to-managed-2gp-with-package-migrations&quot;
      &gt;Package Migrations&lt;/a
    &gt;
    generally available in Summer &apos;25, converting a 1GP package to 2GP with
    &lt;code&gt;sf package convert&lt;/code&gt; and migrating installed subscribers across.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;How do you keep a 2GP pipeline fast?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Pool your scratch orgs.&lt;/strong&gt; Org creation, not package creation, is
    usually the slowest step. Pre-warmed orgs remove it from the critical path.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Scope tests by stage.&lt;/strong&gt; Relevant tests on the pull request,
    &lt;code&gt;RunLocalTests&lt;/code&gt; before promote.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cache the version.&lt;/strong&gt; If the source has not changed, do not rebuild
    the package.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  You can assemble all of this from the Salesforce CLI plus GitHub Actions, Azure
  Pipelines or CumulusCI. Serpent gives you the same pipeline without the YAML: native
  1GP, 2GP and managed-package workflows, cross-package dependency resolution and
  version management across subscriber orgs on every plan, with pre-warmed scratch org
  pooling on Scale. More build and release guides live in
  &lt;a href=&quot;/resources&quot;&gt;SF Guides&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can you automate 2GP package creation entirely?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Version creation, installation, testing and promotion are all CLI commands, so
  the full cycle runs unattended. Keep promotion behind a human approval anyway.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is package ancestry in 2GP?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The declared lineage between managed package versions. It defines the upgrade path for
  subscribers, and packages only upgrade along that line.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do unlocked packages need a namespace?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Unlocked packages can be created without one, which is why they suit internal org
  estates. Managed 2GP requires a registered namespace linked to your Dev Hub.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why does my package version create fail on ancestry?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Usually because the ancestor named is not a promoted, managed-released version, or a
  patch version was set as the ancestor of a non-patch version.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Should CI promote every green build?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Promotion is irreversible in practice and sets the next ancestor, so it belongs on
  a release branch behind an approval, not on every merge.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating from Copado to Serpent: a step-by-step playbook]]></title>
            <description><![CDATA[A migration runbook: pipeline mapping, user story history, branch strategy and a parallel-run period your team can execute without a code freeze.]]></description>
            <link>https://serpent.cloud/resources/Migrating-from-Copado-to-Serpent%3A-a-step-by-step-playbook</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Migrating-from-Copado-to-Serpent%3A-a-step-by-step-playbook</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Thu, 09 Jul 2026 12:00:00 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; you do not need a code freeze, and you are not
  migrating data. Your metadata already lives in Git, so switching from Copado to
  Serpent is a control-plane swap: you rebuild the pipeline definition, run both tools
  side by side for one full release cycle, then let the new pipeline take the production
  promotion while the old one stays installed as your rollback. Plan around release
  cycles, not calendar days.
&lt;/p&gt;

&lt;h2&gt;What actually moves, and what does not?&lt;/h2&gt;
&lt;p&gt;Being precise about this removes most of the fear in the room:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Nothing has to be migrated.&lt;/strong&gt; Your source of truth is your Git
    repository, and it stays exactly where it is, with its history intact.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;What stays behind&lt;/strong&gt; are the records that only exist inside a managed
    package: user stories, promotions, deployment records and any automation built on
    those objects. Copado is
    &lt;a href=&quot;https://docs.copado.com&quot;&gt;installed in your org&lt;/a&gt;, so those objects leave
    when the package does.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;What you rebuild&lt;/strong&gt; is the pipeline definition: environments and their
    credentials, stage order, approval rules, quality gates, scheduled jobs and the
    ticketing integration.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  That last list is the entire project. It is configuration work, and it is why this
  reads as a mapping exercise rather than a migration.
&lt;/p&gt;

&lt;h2&gt;How do Copado concepts map to a Git-native pipeline?&lt;/h2&gt;
&lt;p&gt;
  Copado models the release inside Salesforce records. A Git-native pipeline models it
  in the repository. The translation is close to one-for-one:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;User Story&lt;/strong&gt; becomes a work item linked to a branch.&lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The feature branch per user story&lt;/strong&gt; stays a feature branch. You can
    keep the naming convention so history reads continuously.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Promotion and its promotion branch&lt;/strong&gt; become a pull request into the
    next environment branch.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deployment record&lt;/strong&gt; becomes a pipeline run, with its own log, result
    and rollback point.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Environment or stage&lt;/strong&gt; becomes an environment mapped to a branch.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Back-promotion&lt;/strong&gt; becomes a merge back down from the higher branch.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Compliance and quality gates&lt;/strong&gt; become pull request checks: tests,
    static analysis, AI code review.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;What is the step-by-step runbook?&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;
    &lt;strong&gt;Inventory, one to two days.&lt;/strong&gt; List every environment, branch, stage,
    approver, scheduled job, quality gate and integration, with an owner against each.
    If nobody owns a stage, that is your first finding.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Mirror the pipeline, read only.&lt;/strong&gt; Connect the same orgs and the same
    repository to Serpent without deploying anything. Connecting takes minutes. Then
    compare: do both tools agree on what is currently in each environment? Any
    disagreement is drift you were carrying before the migration.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Shadow one release.&lt;/strong&gt; Every change goes through Copado as usual, and
    also through the new pipeline into a spare sandbox. Compare the deploy plans. The
    differences become your findings list, and they are usually about profiles,
    permission sets and flows.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Parallel-run a real release.&lt;/strong&gt; The new pipeline promotes to UAT, the
    existing one still takes production. This is the risk-controlled midpoint, and it is
    where approvers get comfortable.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Cut over.&lt;/strong&gt; The new pipeline runs the production promotion. Leave
    Copado installed and untouched, because that is your rollback: if the promotion
    fails, the next release goes back through it.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Decommission after two clean releases.&lt;/strong&gt; Export the history, disable
    the old scheduled jobs first, then uninstall the managed package in a sandbox before
    you touch production.
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;What do you do with user story history?&lt;/h2&gt;
&lt;p&gt;
  This is the question that stalls migrations, and the honest answer is: do not try to
  import it.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong
      &gt;Historical records are only meaningful in the tool that created them.&lt;/strong
    &gt;
    Imported user stories with no live pipeline behind them are decoration, and they
    will mislead someone in a year.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Export instead.&lt;/strong&gt; User stories, promotions and deployments to CSV,
    with the commit reference wherever one exists. Store it where your other release
    evidence lives.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;The durable history is Git.&lt;/strong&gt; Commits, pull requests, merges and tags
    are the record auditors actually accept, and everything after cutover lands there by
    default.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;For audit continuity&lt;/strong&gt;, keep the export plus the commit links. A
    dated archive and a traceable branch beat screenshots from a decommissioned system.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;How do you handle the branch strategy?&lt;/h2&gt;
&lt;p&gt;Change one thing at a time. The tool changes first, the process later.&lt;/p&gt;
&lt;p&gt;
  Keep your existing branch model for at least the first two releases, even if you
  intend to simplify it. Long-lived environment branches keep working, promotion
  branches are replaced by pull requests one for one, and if you want to move toward
  trunk-based development, do that as a separate exercise after cutover. The one thing
  to watch during the parallel run is automation collision: disable the old tool&apos;s
  scheduled jobs and auto-merges before the new pipeline starts writing to the same
  branches.
&lt;/p&gt;

&lt;h2&gt;How do you avoid downtime and a code freeze?&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Freeze the pipeline configuration, not the work.&lt;/strong&gt; During the
    parallel run, nobody edits stages, approvals or branch rules in either tool.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Time the cutover to the start of a sprint&lt;/strong&gt;, never to the end of one,
    and never into a release weekend.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Write the rollback down before you need it.&lt;/strong&gt; One sentence: if the
    production promotion fails on the new pipeline, the next one goes through the old
    tool and both stay connected for one more release.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Keep both tools connected only for a couple of releases.&lt;/strong&gt; Two
    systems writing to the same branches indefinitely is not a safety net, it is a merge
    conflict with a schedule.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Elapsed time is dominated by release cycles, not by setup. Connecting orgs and
  repositories is a same-day task, and Serpent onboarding includes a hands-on session
  for the whole team at no cost, so the pipeline mapping is done with you rather than
  handed to you as a task.
  &lt;a href=&quot;/resources&quot;&gt;More Salesforce DevOps guides&lt;/a&gt;.
&lt;/p&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Do we need a code freeze to switch?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. The existing tool stays installed and authoritative until the cutover release, so
  development continues throughout.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can we keep our Git repository and branch names?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. The repository is untouched, and keeping the existing branch naming makes the
  history read continuously across the switch.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What happens to our user stories when we uninstall the package?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  They go with it, which is why you export them to CSV first. The commits, pull requests
  and tags in Git remain, and those are the durable audit trail.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How long does the whole migration take?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Think in release cycles: one shadow cycle, one parallel cycle, one cutover cycle. For
  a standard org-to-org pipeline that is a matter of weeks, most of it waiting for your
  own releases.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can we migrate a package or ISV pipeline the same way?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes, with one extra cycle. Package versioning, ancestry and subscriber tracking need
  their own shadow release before you trust the cutover.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[2GP Managed Package Gotchas That Cost ISVs Real Time]]></title>
            <description><![CDATA[The Salesforce 2GP lifecycle traps that cost ISVs weeks, including the permanent decisions you cannot undo: namespace, global surface, and ancestry.]]></description>
            <link>https://serpent.cloud/resources/2GP-Managed-Package-Gotchas-That-Cost-ISVs-Real-Time</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/2GP-Managed-Package-Gotchas-That-Cost-ISVs-Real-Time</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Mon, 06 Jul 2026 22:17:29 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;strong&gt;Short answer:&lt;/strong&gt; The most expensive Salesforce second-generation (2GP)
  managed package mistakes are the irreversible ones. Your namespace, your global API
  surface, and your ancestry strategy are all locked in early, yet most teams spend five
  minutes on decisions they live with for the life of the product. Below are the
  lifecycle traps that actually cost ISVs weeks, and the one that can never be undone.
&lt;/p&gt;
&lt;p&gt;
  The Salesforce docs mention most of these, but they bury the consequences. This guide
  front-loads them so you can make the permanent choices on purpose instead of
  discovering them at promote time.
&lt;/p&gt;
&lt;h2&gt;Why is your package namespace permanent?&lt;/h2&gt;
&lt;p&gt;
  Your namespace is not &quot;hard to change.&quot; It is permanent. Whatever you type into a
  throwaway Dev Hub on a Friday afternoon is the prefix you will carry for the life of
  the product. If there is any chance you spin off or sell a package later, do not share
  one namespace across everything, because a namespace cannot be split afterward. This
  is the single most irreversible decision in the whole lifecycle, and it deserves far
  more than five minutes.
&lt;/p&gt;
&lt;h2&gt;How does package ancestry strand your subscribers?&lt;/h2&gt;
&lt;p&gt;
  Ancestry is a tree, and your subscribers can only climb it. Every new version declares
  an ancestor, and installed orgs upgrade along that chain. Set the wrong ancestor and
  you can strand customers on a branch that cannot reach your latest release.
&lt;/p&gt;
&lt;p&gt;
  The flip side is genuinely useful: if 1.3 turns into a mess, you can abandon it and
  build 1.4 off 1.2. But that only works if you understood the tree before you shipped,
  not after.
&lt;/p&gt;
&lt;h2&gt;Why won&apos;t your &quot;released&quot; package install?&lt;/h2&gt;
&lt;p&gt;
  Every version you create is a &lt;strong&gt;beta&lt;/strong&gt; until you promote it. Betas cannot
  be installed in production orgs and cannot be pushed to subscribers. Teams burn days
  confused about why their released package will not install, and the answer is that
  nobody ran the promote step.
&lt;/p&gt;
&lt;p&gt;
  Promotion also runs validations, including org types and test execution, so it can
  fail at the last mile. Treat promote as a real gate, not a formality.
&lt;/p&gt;
&lt;h2&gt;When does the 75 percent code coverage gate hit?&lt;/h2&gt;
&lt;p&gt;
  The 75 percent coverage requirement hits at &lt;em&gt;promote&lt;/em&gt; time, not create time.
  You can produce beta versions all day with weak tests, then hit the wall the moment
  you try to promote for release. If your team treats coverage as a cleanup task for
  later, &quot;later&quot; arrives exactly when you are trying to ship.
&lt;/p&gt;
&lt;h2&gt;What Dev Hub limits will stop your release day?&lt;/h2&gt;
&lt;p&gt;
  Dev Hub limits are real and they reset daily. Package version creates and scratch orgs
  are capped per day depending on edition. Mid crunch, hitting the cap means you are
  done until tomorrow. Plan release days around these limits rather than discovering
  them under pressure.
&lt;/p&gt;
&lt;h2&gt;Why is your Dev Hub org a single point of failure?&lt;/h2&gt;
&lt;p&gt;
  Packages are owned by the Dev Hub. Lose access to that org, through an expired trial,
  an admin who left, or lost credentials, and you have a genuine problem. Ownership
  transfers exist but are painful. Put the Dev Hub on an org that a responsible person
  actually controls, not a trial someone spun up to test.
&lt;/p&gt;
&lt;h2&gt;What is namespaceAccessible, and why do teams find it too late?&lt;/h2&gt;
&lt;p&gt;
  &lt;code&gt;namespaceAccessible&lt;/code&gt; is the sharing mechanism people discover too late.
  Packages that share a namespace can share public Apex through it without going
  &lt;strong&gt;global&lt;/strong&gt;. Teams that never learn this either expose global APIs they
  can never take back, because global is forever in a managed package, or they duplicate
  code across packages. Both hurt for years.
&lt;/p&gt;
&lt;h2&gt;The meta point: decide the permanent things on purpose&lt;/h2&gt;
&lt;p&gt;
  2GP is a real improvement over 1GP. It is source driven, there are no packaging orgs,
  and versioning is far more flexible. But almost every gotcha above is invisible until
  it bites, and several are irreversible. The teams that ship smoothly are the ones that
  made the permanent decisions, namespace, global surface, and ancestry strategy,
  deliberately at the start.
&lt;/p&gt;
&lt;p&gt;
  If you are building a Salesforce DevOps process around packaging, our other
  &lt;a href=&quot;/resources&quot;&gt;Salesforce DevOps guides&lt;/a&gt; cover the pipeline patterns that
  keep these releases repeatable.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can you change a managed package namespace later?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. A managed package namespace is permanent and cannot be changed or split after it
  is linked. Choose it deliberately, and avoid sharing one namespace across products you
  might separate later.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why can&apos;t my 2GP package be installed in production?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Newly created versions are betas. Betas only install in scratch and sandbox orgs.
  Promote the version to a released state before it can install in production or be
  pushed to subscribers.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;When is the 75 percent test coverage enforced for 2GP?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  At promotion, not at version creation. You can build betas with low coverage, but you
  cannot promote a version for release until it meets the 75 percent gate.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is a global Apex method reversible in a managed package?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Once shipped, a global member is part of your permanent API surface. Prefer
  &lt;code&gt;namespaceAccessible&lt;/code&gt; to share code between packages in the same namespace
  instead of exposing something global you can never remove.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce DevOps Playbook for Growing Mid Market Teams]]></title>
            <description><![CDATA[How mid-market Salesforce teams structure releases, manage sandboxes, and scale DevOps without a dedicated DevOps team. A playbook for 3 to 20 developers.]]></description>
            <link>https://serpent.cloud/resources/Salesforce-DevOps-Playbook-for-Growing-Mid-Market-Teams</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Salesforce-DevOps-Playbook-for-Growing-Mid-Market-Teams</guid>
            <dc:creator><![CDATA[Tekunda Team]]></dc:creator>
            <pubDate>Fri, 22 May 2026 13:17:14 GMT</pubDate>
            <content:encoded>&lt;h2&gt;The Mid-Market DevOps Problem&lt;/h2&gt;
&lt;p&gt;
  Your Salesforce org is too complex for change sets, but you don&apos;t have the budget or
  headcount for enterprise-grade DevOps tooling. You have 3-20 Salesforce developers,
  multiple sandboxes, and release cycles that are getting harder to manage as the team
  grows.
&lt;/p&gt;
&lt;p&gt;
  This is the mid-market DevOps problem. It&apos;s where most scaling Salesforce teams get
  stuck.
&lt;/p&gt;
&lt;p&gt;
  This playbook covers what actually works for teams at this size - based on patterns
  from dozens of mid-market Salesforce implementations.
&lt;/p&gt;

&lt;h2&gt;The Right Org Strategy for Your Team Size&lt;/h2&gt;
&lt;h3&gt;3-8 Developers&lt;/h3&gt;
&lt;p&gt;At this size, simplicity is your friend. You don&apos;t need 6 environments.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Dev sandbox&lt;/strong&gt; - each developer works in their own, OR a shared dev
    sandbox if org limits are tight
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;QA sandbox&lt;/strong&gt; - for testing before production&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Production&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Deployment flow: Dev → QA → Production, automated by pipeline.&lt;/p&gt;

&lt;h3&gt;8-20 Developers&lt;/h3&gt;
&lt;p&gt;At this size, you need feature isolation to avoid developers blocking each other.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Feature sandboxes&lt;/strong&gt; (1 per active epic or developer pair)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Integration sandbox&lt;/strong&gt; - merges from all feature sandboxes&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;UAT sandbox&lt;/strong&gt; - for business sign-off&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Production&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  The integration sandbox is the key addition - it&apos;s where merge conflicts surface
  before they hit production.
&lt;/p&gt;

&lt;h2&gt;Release Cadence: What Actually Works&lt;/h2&gt;
&lt;p&gt;
  Teams that ship on a fixed cadence ship more reliably than teams that ship &quot;when
  ready.&quot; The cadence forces prioritization and prevents the accumulation of risk that
  causes production breaks.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Weekly releases:&lt;/strong&gt; Best for teams with active Salesforce development.
    Forces a weekly cutoff that keeps work small and rollback easy.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Bi-weekly releases:&lt;/strong&gt; Common at this team size. Matches typical
    sprint length. Long enough to complete meaningful work, short enough to limit risk.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Monthly releases:&lt;/strong&gt; Only works if your org is relatively stable.
    Every monthly release becomes high-stakes, which is stressful for the team and
    increases break risk.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  &lt;strong&gt;Recommendation for 5-15 developer teams:&lt;/strong&gt; bi-weekly releases on a
  fixed day (e.g., every other Wednesday). Set up the pipeline once, run it every
  sprint.
&lt;/p&gt;

&lt;h2&gt;Roles That Need to Exist (Even on Small Teams)&lt;/h2&gt;
&lt;p&gt;You don&apos;t need full-time DevOps engineers. You need clear ownership.&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Release coordinator&lt;/strong&gt; - owns the release calendar and go/no-go
    decisions. Can be a senior developer or technical lead. 2-3 hours per release cycle.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Deployment reviewer&lt;/strong&gt; - reviews what&apos;s going into each deployment,
    checks test coverage. Should be different from the person who wrote the code.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Rollback owner&lt;/strong&gt; - knows how to roll back every change in the
    release. With Serpent, this is a click - but someone needs to own the decision to
    use it.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;The Metrics That Tell You Your DevOps Is Working&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Deployment frequency:&lt;/strong&gt; How often do you successfully deploy to
    production? Target: at least once per sprint.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Lead time for changes:&lt;/strong&gt; From first commit to production. Target:
    under 2 weeks for standard changes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Change failure rate:&lt;/strong&gt; % of deployments that cause a production
    incident. Target: under 5%.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Mean time to restore:&lt;/strong&gt; How long from production break to fix
    deployed. Target: under 4 hours.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  These are the four DORA metrics. Measure them monthly. If deployment frequency is
  going down or failure rate is going up, your process has a bottleneck that needs
  fixing before it gets worse.
&lt;/p&gt;

&lt;h2&gt;Common Mistakes at This Team Size&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Skipping UAT on &quot;small&quot; changes.&lt;/strong&gt; Production breaks almost always
    come from changes that seemed too small to need UAT.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Letting the integration sandbox get stale.&lt;/strong&gt; If it&apos;s more than 2
    weeks behind production, it&apos;s not useful. Refresh it on a schedule.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Treating releases as heroics.&lt;/strong&gt; If every release requires someone
    staying late, your process is broken, not your team.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No documentation of what&apos;s in each release.&lt;/strong&gt; Release notes don&apos;t
    need to be formal - a Slack message with 5 bullet points is enough. Do it every
    time.
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How many sandboxes does a mid-market Salesforce team need?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  With 3 to 8 developers, a dev sandbox, a QA sandbox and production are enough. Past 8
  developers, add feature sandboxes, an integration sandbox where merge conflicts
  surface, and a UAT sandbox for business sign-off.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What release cadence works best for a growing Salesforce team?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  A fixed cadence beats shipping &quot;when ready&quot;, because it forces prioritisation and
  stops risk accumulating. Bi-weekly on a set day suits most teams at this size, weekly
  suits very active development, and monthly only works if the org is stable.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do you need a dedicated DevOps engineer for Salesforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Not at this size. What you need is clear ownership: a release coordinator for the
  calendar and go/no-go call, a deployment reviewer who did not write the code, and
  someone who owns the decision to roll back.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which metrics show your Salesforce DevOps is working?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The four DORA metrics: deployment frequency, lead time for changes, change failure
  rate and mean time to restore. Measure them monthly, and treat falling deployment
  frequency or a rising failure rate as a bottleneck to fix early.
&lt;/p&gt;
&lt;h2&gt;Making the Tooling Decision&lt;/h2&gt;
&lt;p&gt;
  At the 50-200 person company size with 5-20 Salesforce developers, you need a tool
  that&apos;s:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Fast to set up - you can&apos;t spend 6 months on implementation&lt;/li&gt;
  &lt;li&gt;Not per-user priced - your team is growing and you don&apos;t want cost surprises&lt;/li&gt;
  &lt;li&gt;
    Opinionated enough to handle your sandboxes - not a blank canvas that requires you
    to build the pipeline from scratch
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Serpent is built specifically for this team size.
  &lt;a href=&quot;https://serpent.cloud/pricing&quot;&gt;See pricing&lt;/a&gt; or
  &lt;a href=&quot;https://serpent.cloud&quot;&gt;try it free&lt;/a&gt;.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Managed vs Unmanaged Packages in Salesforce: Key Differences]]></title>
            <description><![CDATA[Learn the key differences between managed and unmanaged packages in Salesforce, when to use each, and how they impact deployment, upgrades, and sharing.]]></description>
            <link>https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:44 GMT</pubDate>
            <content:encoded>&lt;h2&gt;Introduction&lt;/h2&gt;
&lt;p&gt;
  As a Salesforce Engineer or Consultant, choosing between creating managed or unmanaged
  packages is a strategic decision that can significantly influence your workflows and
  application lifecycle on Salesforce. This guide delves deeper into each type of
  package, offering insights into their use cases, benefits, and considerations to help
  you make an informed choice based on your specific needs.
&lt;/p&gt;
&lt;h2&gt;What are Managed and Unmanaged Packages?&lt;/h2&gt;
&lt;p&gt;
  &lt;strong&gt;Managed Packages&lt;/strong&gt; are typically created by Salesforce partners and are
  available through the Salesforce AppExchange. They come with a namespace that
  completely isolates them from your org and other packages, ensuring no naming
  conflicts across Salesforce orgs, but that comes with it own limitations.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Unmanaged Packages&lt;/strong&gt; are often used as a means to distribute
  open-source projects or templates that can be customized by developers. They do not
  include a namespace, making them fully editable but also susceptible to naming
  conflicts. Unmanaged packages are a great way to version control your org
  customisation and development while keeping it unlocked, allowing you to also
  reference metadata and code pre-existing on your target org.
&lt;/p&gt;
&lt;p&gt;
  At Tekunda, we&apos;ve simplified the management and release processes of both Managed and
  Unmanaged packages with Tekunda
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;. Our tool
  makes metadata and packages management effortless, allowing you to focus on innovation
  rather than administrative tasks. Ready to streamline your Salesforce development
  experience?
&lt;/p&gt;
&lt;p&gt;
  &lt;strong
    &gt;&lt;a href=&quot;https://app.serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
      &gt;Start free - no credit card&lt;/a
    &gt;&lt;/strong
  &gt;
  now and be among the first to transform your workflow with Tekunda
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;!
&lt;/p&gt;
&lt;h2&gt;Detailed Comparison&lt;/h2&gt;
&lt;h3&gt;Configuration and Customization&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Managed Packages&lt;/strong&gt;&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;strong&gt;Use Cases&lt;/strong&gt;: Ideal for applications like third-party integrations
        or extending Salesforce with in self contained package. For instance, creating
        or installing a pre-built marketing automation tool or customer service
        application.
      &lt;/li&gt;
      &lt;li&gt;
        &lt;strong&gt;Benefits&lt;/strong&gt;: They are locked, which means the core components
        cannot be edited, ensuring integrity and support from the vendor.
      &lt;/li&gt;
      &lt;li&gt;
        &lt;strong&gt;Considerations&lt;/strong&gt;: Limited customization may not suit all
        business-specific needs.
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Unmanaged Packages&lt;/strong&gt;&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;strong&gt;Use Cases&lt;/strong&gt;: Best used when a highly tailored solution is needed,
        such as developing a custom application specific to your business processes or
        creating templates that can be modified for different client setups.
      &lt;/li&gt;
      &lt;li&gt;
        &lt;strong&gt;Benefits&lt;/strong&gt;: Full access to the code allows developers to modify
        any aspect of the package to fit their exact requirements.
      &lt;/li&gt;
      &lt;li&gt;
        &lt;strong&gt;Considerations&lt;/strong&gt;: Requires more in-depth Salesforce development
        knowledge and can lead to longer deployment times.
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Support and Maintenance&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Managed Packages&lt;/strong&gt;&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;
        Provide vendor support, regular updates, and compatibility assurances with new
        Salesforce releases, reducing the administrative burden on the customer/user.
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Unmanaged Packages&lt;/strong&gt;&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;
        Maintenance and updates are the responsibility of the customer/user, potentially
        increasing workload for their IT team, making ideal for internal and consulting
        projects.
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Deployment and Updates&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Managed Packages&lt;/strong&gt;&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;
        Quick to deploy as they are pre-configured. Updates are handled by the vendor
        and are seamlessly deployed to the customer/user environment.
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Unmanaged Packages&lt;/strong&gt;&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;
        Require careful integration and testing, especially during updates, to ensure
        they do not interfere with existing customizations.
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Choosing the Right Package for Your Needs&lt;/h2&gt;
&lt;p&gt;When deciding between managed and unmanaged packages, consider:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Project Complexity and Customization Needs&lt;/strong&gt;: If your project
    requires extensive customization, unmanaged may be the way to go. For self contained
    projects, managed packages can save time and effort.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Resource Availability&lt;/strong&gt;: Do you have the skilled personnel to manage
    potential complexities that come with unmanaged packages?
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Budget Constraints&lt;/strong&gt;: Managed packages might seem more expensive
    initially but consider the total cost of ownership, including maintenance and future
    upgrades.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Time to Market&lt;/strong&gt;: Managed packages allow faster deployment, which can
    be crucial for time-sensitive projects.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;CI/CD Implications for Managed and Unmanaged Packages&lt;/h2&gt;
&lt;p&gt;
  Continuous Integration and Continuous Deployment (CI/CD) are critical components of
  modern software development, especially in dynamic environments like Salesforce. The
  choice between managed and unmanaged packages can have significant implications on
  your CI/CD strategies.
&lt;/p&gt;
&lt;h3&gt;CI/CD in Developing&amp;nbsp;Managed Packages&lt;/h3&gt;
&lt;p&gt;
  &lt;strong&gt;Managed packages&lt;/strong&gt; are typically created by developers aiming to
  distribute their applications on Salesforce AppExchange, often with an eye towards
  commercialization. Here are key considerations for CI/CD:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Version Control and Release Management&lt;/strong&gt;: Managed packages must
    adhere to Salesforce&apos;s upgrade and release management processes, which are more
    structured to ensure compatibility and support. Developers need to manage versioning
    meticulously, as package versions are immutable once released.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Namespace Prefix&lt;/strong&gt;: Every managed package has a namespace prefix that
    uniquely identifies it across all Salesforce orgs. This namespace must be carefully
    managed in source control to ensure consistency across development and production
    environments.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Beta Testing and Patch Versions&lt;/strong&gt;: CI/CD pipelines for managed
    packages often include creating beta versions for testing and patch versions for
    fixing issues post-release. Automation of these processes helps maintain the
    stability of the package.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;License Management&lt;/strong&gt;: Integration of licensing frameworks is
    essential for managed packages, particularly if they are commercial. Your CI/CD
    process may need to include steps for updating licensing mechanisms as part of the
    deployment pipeline.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;CI/CD in Developing Unmanaged Packages&lt;/h3&gt;
&lt;p&gt;
  &lt;strong&gt;Unmanaged packages&lt;/strong&gt; are more flexible and are often used for custom
  projects within a specific org or for distributing open-source projects where the
  developer does not retain any proprietary control. CI/CD considerations include:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Full Control Over Code&lt;/strong&gt;: Developers have full control over the
    source code, making it easier to implement CI/CD practices such as automated
    testing, style checks, and code quality assessments without restrictions.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Flexibility in Updates&lt;/strong&gt;: Unmanaged packages allow developers to
    apply updates and changes directly at any time, supporting agile development
    practices. Automation tools can be used to streamline the deployment of new features
    and fixes.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;No Namespace Management&lt;/strong&gt;: The lack of a namespace in unmanaged
    packages simplifies some aspects of version control and source code management,
    reducing the overhead in managing these elements in CI/CD pipelines.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Custom Deployment Scripts&lt;/strong&gt;: Developers can create custom scripts and
    utilize CI/CD tools like Jenkins, CircleCI, or GitHub Actions to automate the build
    and deployment processes tailored to their specific organizational needs.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Choosing the Right Strategy&lt;/h3&gt;
&lt;p&gt;
  Selecting between developing a managed or unmanaged package often depends on the
  intended use case and distribution strategy:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Commercial Distribution&lt;/strong&gt;: If you plan to sell your application on
    the AppExchange, a managed package is necessary. Your CI/CD pipelines should support
    stringent testing and compliance checks to meet Salesforce standards.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Internal Use or Open Source&lt;/strong&gt;: For packages intended for internal use
    or open-source distribution without commercial intent, unmanaged packages offer more
    flexibility and easier integration into personalized CI/CD workflows.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Assess Complexity&lt;/strong&gt;: Consider the complexity of your Salesforce
    environment. A simple environment might cope well with managed packages, while a
    complex, highly customized environment could benefit more from unmanaged packages.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Evaluate Team Skills&lt;/strong&gt;: Ensure your team has the skills required to
    manage the chosen package type within CI/CD pipelines. Unmanaged packages require
    robust DevOps skills to fully leverage their flexibility.
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Consider Long-Term Maintenance&lt;/strong&gt;: Evaluate how each option affects
    long-term maintenance and scalability. Managed packages reduce the maintenance
    burden but at the cost of flexibility, while unmanaged packages offer flexibility
    but require ongoing maintenance efforts.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;
  Both managed and unmanaged packages offer distinct advantages for Salesforce admins
  and developers. By carefully evaluating your organizational needs, resource
  availability, and long-term strategy, you can choose a package that not only fits your
  immediate requirements but also supports your Salesforce environment&apos;s growth and
  evolution.
&lt;/p&gt;
&lt;p&gt;
  Making an informed choice will empower your team to leverage Salesforce more
  effectively, ensuring that you maximize the platform&apos;s benefits while aligning with
  your business objectives.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;What is the difference between managed and unmanaged packages?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  A managed package carries a namespace that isolates it from everything else in the
  org, and its core components are locked. An unmanaged package has no namespace, is
  fully editable once installed, and can clash on naming.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Can you edit the code inside a managed package?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. The locked components are what let the vendor guarantee integrity and ship
  upgrades safely. If you need to change every part of the code, an unmanaged package is
  the right choice.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which package type do you need to sell on AppExchange?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  A managed package. Commercial distribution relies on the namespace and on Salesforce&apos;s
  upgrade and release process, so plan your CI/CD around the stricter testing and
  compliance checks that come with it.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;When should you choose an unmanaged package?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  For work that stays inside one org, for consulting deliverables, and for templates or
  open-source projects the receiver is meant to adapt. You keep full control of the
  source, and you also own the maintenance.
&lt;/p&gt;
&lt;p&gt;
  At Tekunda, we&apos;ve simplified the management and release processes of both Managed and
  Unmanaged packages with Tekunda
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;. Our tool
  makes metadata and packages management effortless, allowing you to focus on innovation
  rather than administrative tasks. Ready to streamline your Salesforce development
  experience?
&lt;/p&gt;
&lt;p&gt;
  &lt;strong
    &gt;&lt;a href=&quot;https://app.serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
      &gt;Start free - no credit card&lt;/a
    &gt;&lt;/strong
  &gt;
  now and be among the first to transform your workflow with Tekunda
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;!
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Managing Salesforce Metadata: Tips for Developers]]></title>
            <description><![CDATA[Salesforce metadata management is crucial for maintaining the integrity and efficiency of your Salesforce environment.]]></description>
            <link>https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers</guid>
            <dc:creator><![CDATA[Tekunda Team]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:43 GMT</pubDate>
            <content:encoded>&lt;div style=&quot;font-family: Arial, sans-serif; line-height: 1.6&quot;&gt;
  &lt;p&gt;
    Salesforce metadata management is crucial for maintaining the integrity and
    efficiency of your Salesforce environment. There a different types of metadata,
    configurations, custom objects, fields, workflows, and other customisations that
    define your Salesforce setup.
  &lt;/p&gt;
  &lt;p&gt;
    At Tekunda, we&apos;ve simplified these processes with Tekunda
    &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;. Our tool
    makes metadata management effortless, allowing you to focus on innovation rather
    than administrative tasks. Ready to streamline your Salesforce development
    experience?
  &lt;/p&gt;
  &lt;p&gt;
    &lt;strong
      &gt;&lt;a href=&quot;https://app.serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
        &gt;Start free - no credit card&lt;/a
      &gt;&lt;/strong
    &gt;
    now and be among the first to transform your workflow with Tekunda
    &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;!
  &lt;/p&gt;
  &lt;p&gt;Here are some tips to help you manage your Salesforce metadata efficiently:&lt;/p&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Understand Metadata Types&lt;/h3&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Configuration Metadata&lt;/h4&gt;
  &lt;p&gt;
    Configuration metadata includes settings related to your Salesforce org, such as
    company settings, email settings, and security settings. These configurations impact
    how your Salesforce environment behaves and interacts with users and external
    systems.
  &lt;/p&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Customization Metadata&lt;/h4&gt;
  &lt;p&gt;
    Customization metadata encompasses custom objects, fields, validation rules,
    workflows, process builders, and custom code (Apex, Visualforce, Lightning
    components). These elements define the custom functionalities and processes within
    your Salesforce instance.
  &lt;/p&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;
    Use
    &lt;a
      href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Salesforce DX&lt;/a
    &gt;
    for Metadata Management
  &lt;/h3&gt;
  &lt;p&gt;
    &lt;a
      href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Salesforce DX&lt;/a
    &gt;
    (Developer Experience) is a powerful set of tools and features designed to improve
    the development lifecycle on the Salesforce platform. It includes functionalities
    for source-driven development, team collaboration, and continuous integration.
  &lt;/p&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;
    Setting Up
    &lt;a
      href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Salesforce DX&lt;/a
    &gt;
  &lt;/h4&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Install Salesforce CLI:&lt;/strong&gt; The Salesforce CLI is the cornerstone of
      &lt;a
        href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
        target=&quot;_blank&quot;
        rel=&quot;noopener&quot;
        &gt;Salesforce DX&lt;/a
      &gt;. Install it from the
      &lt;a
        href=&quot;https://developer.salesforce.com/tools/salesforcecli&quot;
        target=&quot;_blank&quot;
        rel=&quot;noopener&quot;
        &gt;Salesforce CLI page&lt;/a
      &gt;.
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Authenticate:&lt;/strong&gt; Authenticate your Salesforce org using:
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf login&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Create a Project:&lt;/strong&gt; Initialize a new
      &lt;a
        href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
        target=&quot;_blank&quot;
        rel=&quot;noopener&quot;
        &gt;Salesforce DX&lt;/a
      &gt;
      project:
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf project create --name YourProjectName&lt;/pre
      &gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Using Scratch Orgs&lt;/h4&gt;
  &lt;p&gt;
    Scratch orgs are temporary, configurable environments that can be used for
    development and testing. They allow developers to work in isolated environments and
    ensure that changes do not affect the main org until they are ready.
  &lt;/p&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Define Scratch Org Config:&lt;/strong&gt; Create a
      &lt;code&gt;config/project-scratch-def.json&lt;/code&gt; file.
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
{
  &quot;orgName&quot;: &quot;Demo Company&quot;,
  &quot;edition&quot;: &quot;Developer&quot;,
  &quot;features&quot;: [&quot;Communities&quot;, &quot;ServiceCloud&quot;],
  &quot;settings&quot;: {
    &quot;orgPreferenceSettings&quot;: {
      &quot;s1DesktopEnabled&quot;: true,
      &quot;selfSetPasswordInApi&quot;: true
    }
  }
}&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Create Scratch Org:&lt;/strong&gt; Create the scratch org using:
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf org create scratch --definitionfile config/project-scratch-def.json --setdefaultusername --durationdays 7 --alias YourScratchOrgAlias&lt;/pre
      &gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Deploying Metadata&lt;/h3&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Push Source to Scratch Org:&lt;/strong&gt; Deploy your local source to the
      scratch org.
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf project deploy start&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Assign Permission Sets:&lt;/strong&gt; Assign necessary permission sets.
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf org assign permset --name YourPermsetName&lt;/pre
      &gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;
    &lt;a
      href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Source Control&lt;/a
    &gt;
    Management
  &lt;/h3&gt;
  &lt;p&gt;
    &lt;a
      href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Source control&lt;/a
    &gt;
    is essential for tracking changes, collaborating with team members, and maintaining
    the integrity of your Salesforce metadata.
  &lt;/p&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Using Git for Metadata&lt;/h4&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Initialize Git Repository:&lt;/strong&gt; Initialize a Git repository in your
      project directory.
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git init&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Add and Commit Changes:&lt;/strong&gt; Add your changes and commit them.
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git add .
git commit -m &quot;Initial commit&quot;&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Create Feature Branches:&lt;/strong&gt; Use branches to manage different
      features or tasks.
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git checkout -b feature/new-feature&lt;/pre
      &gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Git Workflow&lt;/h4&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Fetch and Merge Changes:&lt;/strong&gt; Regularly fetch and merge changes from
      the main branch.
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git fetch origin
git merge origin/main&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Commit and Push Changes:&lt;/strong&gt; Commit your changes and push them to the
      remote repository.
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git commit -m &quot;Developed new feature&quot;
git push origin feature/new-feature&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Create Pull Requests:&lt;/strong&gt; Open a pull request to merge your feature
      branch into the main branch.
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Automate Metadata Deployments&lt;/h3&gt;
  &lt;p&gt;
    Automation can significantly reduce the time and effort required to deploy metadata
    changes.
  &lt;/p&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Using CI/CD Pipelines&lt;/h4&gt;
  &lt;p&gt;
    Continuous Integration and Continuous Deployment (CI/CD) pipelines automate the
    process of testing and deploying changes. Tools like Jenkins, CircleCI, and GitHub
    Actions can be integrated with Salesforce to create automated workflows.
  &lt;/p&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Set Up CI/CD Pipeline:&lt;/strong&gt; Configure your CI/CD tool to monitor your
      Git repository for changes.
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Run Automated Tests:&lt;/strong&gt; Ensure that tests are automatically run for
      each change.
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Deploy Changes:&lt;/strong&gt; Automatically deploy changes to the appropriate
      Salesforce org based on the CI/CD pipeline configuration.
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Best Practices for Managing Metadata&lt;/h3&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Modularize Your Metadata&lt;/h4&gt;
  &lt;p&gt;
    Break down your metadata into modular components that can be managed and deployed
    independently. This approach simplifies the management of large and complex
    Salesforce implementations.
  &lt;/p&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Use Version Control Effectively&lt;/h4&gt;
  &lt;p&gt;
    Ensure that all metadata changes are tracked in version control. Use branching
    strategies to manage different development streams and ensure that changes are
    reviewed and tested before being merged.
  &lt;/p&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Maintain a Backup Strategy&lt;/h4&gt;
  &lt;p&gt;
    Regularly back up your metadata to prevent data loss and ensure that you can recover
    from any unexpected issues. Use tools like Salesforce Backup and Restore or
    third-party solutions to automate backups.
  &lt;/p&gt;
  &lt;h4 style=&quot;color: #2c3e50&quot;&gt;Regularly Review and Clean Up Metadata&lt;/h4&gt;
  &lt;p&gt;
    Regularly review your metadata to identify and remove any unused or obsolete
    components. This practice helps keep your Salesforce environment clean and improves
    performance. Dedicated analysis tools exist for this; our
    &lt;a href=&quot;/compare/salto&quot;&gt;Serpent and Salto comparison&lt;/a&gt; covers where metadata
    analysis ends and delivery begins.
  &lt;/p&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Conclusion&lt;/h3&gt;
  &lt;p&gt;
    Managing Salesforce metadata is a critical aspect of maintaining a robust and
    efficient Salesforce environment. By using tools like
    &lt;a
      href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Salesforce DX&lt;/a
    &gt;, leveraging
    &lt;a
      href=&quot;https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;source control&lt;/a
    &gt;, automating deployments, and following best practices, developers can ensure that
    their metadata is well-organized, secure, and scalable.
  &lt;/p&gt;
  &lt;h2 style=&quot;color: #2c3e50&quot;&gt;FAQ&lt;/h2&gt;
  &lt;p&gt;&lt;strong&gt;What are the main types of Salesforce metadata?&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;
    Configuration metadata covers org-level settings such as company, email and security
    settings. Customization metadata covers what you build: custom objects and fields,
    validation rules, flows, Apex, Visualforce and Lightning components.
  &lt;/p&gt;
  &lt;p&gt;&lt;strong&gt;Why should Salesforce metadata live in source control?&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;
    Because it gives you one tracked history of every change instead of an org that
    quietly drifts. Branches let changes be reviewed and tested before they merge, and
    you can always see what a previous version looked like.
  &lt;/p&gt;
  &lt;p&gt;&lt;strong&gt;How do you automate Salesforce metadata deployments?&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;
    Point a CI/CD tool such as Jenkins, CircleCI or GitHub Actions at your Git
    repository, have it run your tests on every change, and let it deploy to the org
    that matches the branch. The manual deployment step disappears.
  &lt;/p&gt;
  &lt;p&gt;&lt;strong&gt;How do you keep Salesforce metadata clean over time?&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;
    Review it on a schedule and remove components nobody uses any more. Keeping metadata
    modular helps too, since smaller pieces can be deployed and reasoned about
    independently.
  &lt;/p&gt;
  &lt;p&gt;
    At Tekunda, we&apos;ve simplified these processes with Tekunda
    &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;. Our tool
    makes metadata management effortless, allowing you to focus on innovation rather
    than administrative tasks. Ready to streamline your Salesforce development
    experience?
  &lt;/p&gt;
  &lt;p&gt;
    &lt;strong
      &gt;&lt;a href=&quot;https://app.serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
        &gt;Start free - no credit card&lt;/a
      &gt;&lt;/strong
    &gt;
    now and be among the first to transform your workflow with Tekunda
    &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;!
  &lt;/p&gt;
&lt;/div&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Challenges of Integrating Salesforce with Third Party Applications]]></title>
            <description><![CDATA[Integrating Salesforce with third-party applications comes with its own challenges. We'll explore them and provide solutions to ensure successful integrations.]]></description>
            <link>https://serpent.cloud/resources/Challenges-of-Integrating-Salesforce-with-Third-Party-Applications</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Challenges-of-Integrating-Salesforce-with-Third-Party-Applications</guid>
            <dc:creator><![CDATA[Tekunda Team]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:43 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  Salesforce is a powerful platform for managing customer relationships, but businesses
  often need to integrate it with other applications to streamline workflows, improve
  data consistency, and enhance overall functionality. However, integrating Salesforce
  with third-party applications comes with its own set of challenges. This blog post
  explores these challenges and provides solutions to ensure smooth integration
  processes.
&lt;/p&gt;
&lt;p&gt;Would you like some help streamlining your Salesforce integrations?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;a href=&quot;#contact&quot;&gt;Contact us now&lt;/a&gt; to secure your spot with Tekunda&apos;s innovative
  team to simplify your integration challenges.
&lt;/p&gt;
&lt;h3&gt;Common Challenges in Salesforce Integration&lt;/h3&gt;
&lt;h4&gt;
  1.
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Data Consistency and Synchronization&lt;/a
  &gt;
&lt;/h4&gt;
&lt;p&gt;
  &lt;strong&gt;Challenge:&lt;/strong&gt; Ensuring that data remains consistent and synchronized
  across Salesforce and third-party applications can be difficult. Inconsistent data can
  lead to errors, redundant records, and data integrity issues.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Solution:&lt;/strong&gt; Implement robust data synchronization strategies, such as
  real-time sync or scheduled batch updates, using tools like MuleSoft, Informatica, or
  custom-built middleware. Additionally, utilize Salesforce&amp;rsquo;s native tools like
  Data Loader and Apex to handle data migrations and synchronization efficiently.
&lt;/p&gt;
&lt;h4&gt;2. API Limitations and Performance Issues&lt;/h4&gt;
&lt;p&gt;
  &lt;strong&gt;Challenge:&lt;/strong&gt; Salesforce has
  &lt;a
    href=&quot;https://serpent.cloud/blog/Scaling-Pains%3A-DevOps-and-Data-Management-for-Growing-Salesforce-Teams&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;API call limits&lt;/a
  &gt;
  that can restrict the number of interactions between Salesforce and third-party
  applications. Exceeding these limits can result in performance bottlenecks and
  potential downtime.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Solution:&lt;/strong&gt; Optimize API usage by combining multiple API calls into a
  single call where possible and using bulk API operations for large data sets. Employ
  Salesforce&amp;rsquo;s event-driven architecture with Platform Events to reduce the
  dependency on API calls and improve performance.
&lt;/p&gt;
&lt;h4&gt;
  3.
  &lt;a
    href=&quot;https://serpent.cloud/resources/Salesforce-Security-Review-Checklist%3A-How-to-Prepare-and-Pass&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Security and Compliance&lt;/a
  &gt;
  Concerns
&lt;/h4&gt;
&lt;p&gt;
  &lt;strong&gt;Challenge:&lt;/strong&gt; Integrating third-party applications with Salesforce
  requires sharing sensitive data, raising concerns about data
  &lt;a
    href=&quot;https://serpent.cloud/resources/Salesforce-Security-Review-Checklist%3A-How-to-Prepare-and-Pass&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;security and compliance&lt;/a
  &gt;
  with regulations like GDPR and CCPA.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Solution:&lt;/strong&gt; Ensure all data transfers are encrypted using protocols
  such as TLS. Implement OAuth for secure authentication and authorization. Regularly
  audit your integrations for compliance with security standards and regulatory
  requirements. Use Salesforce Shield for advanced security features like encryption,
  event monitoring, and field audit trail.
&lt;/p&gt;
&lt;h4&gt;4. Complexity of Integration Architecture&lt;/h4&gt;
&lt;p&gt;
  &lt;strong&gt;Challenge:&lt;/strong&gt; The architecture of integrating Salesforce with multiple
  third-party applications can become complex, especially when dealing with different
  data models, APIs, and protocols.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Solution:&lt;/strong&gt; Simplify the integration architecture by using integration
  platforms such as MuleSoft or Dell Boomi, which provide pre-built connectors and a
  unified platform to manage integrations. Document your integration architecture
  thoroughly and use modular designs to make the system more manageable and scalable.
&lt;/p&gt;
&lt;h4&gt;5. Real-Time Data Integration&lt;/h4&gt;
&lt;p&gt;
  &lt;strong&gt;Challenge:&lt;/strong&gt; Real-time data integration can be challenging due to
  latency issues and the need for continuous data flow between systems.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Solution:&lt;/strong&gt; Leverage Salesforce&amp;rsquo;s Streaming API for real-time
  data updates. Use middleware solutions that support real-time data processing and
  message queues to handle data flow efficiently. Optimize network and server
  configurations to reduce latency.
&lt;/p&gt;
&lt;p&gt;Would you like some help streamlining your Salesforce integrations?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
  &lt;a href=&quot;#contact&quot;&gt;Contact us now&lt;/a&gt; to secure your spot with Tekunda&apos;s innovative
  team to simplify your integration challenges.
&lt;/p&gt;
&lt;h3&gt;Best Practices for Salesforce Integration&lt;/h3&gt;
&lt;h4&gt;1. Plan Thoroughly&lt;/h4&gt;
&lt;p&gt;
  Before starting the integration, define clear objectives, requirements, and success
  criteria. Conduct a thorough analysis of the third-party application&amp;rsquo;s
  capabilities and limitations.
&lt;/p&gt;
&lt;h4&gt;2. Use Middleware Solutions&lt;/h4&gt;
&lt;p&gt;
  Middleware solutions like MuleSoft, Informatica Cloud, and Jitterbit can simplify the
  integration process by providing pre-built connectors, data transformation
  capabilities, and centralized management of integration flows.
&lt;/p&gt;
&lt;h4&gt;3. Monitor and Maintain&lt;/h4&gt;
&lt;p&gt;
  Implement monitoring tools to track the performance and health of your integrations.
  Regularly update and maintain your integrations to adapt to changes in APIs, data
  models, and business requirements.
&lt;/p&gt;
&lt;h4&gt;4. Ensure Scalability&lt;/h4&gt;
&lt;p&gt;
  Design your integration architecture to be scalable to accommodate future growth and
  changes in business processes. Use cloud-based integration platforms that can scale
  automatically based on demand.
&lt;/p&gt;
&lt;h4&gt;5. Test Rigorously&lt;/h4&gt;
&lt;p&gt;
  Conduct thorough testing of your integrations, including unit tests, integration
  tests, and user acceptance tests, to ensure they work as expected and handle edge
  cases gracefully.
&lt;/p&gt;
&lt;h3&gt;A Technical Guide to Enabling REST APIs in Salesforce&lt;/h3&gt;
&lt;p&gt;
  To provide a more comprehensive understanding of Salesforce integrations, let&apos;s delve
  into enabling REST APIs in Salesforce, a crucial aspect of many integration scenarios.
&lt;/p&gt;
&lt;h4&gt;Step 1: Enable API Access&lt;/h4&gt;
&lt;ol&gt;
  &lt;li&gt;Navigate to &lt;strong&gt;Setup&lt;/strong&gt; in Salesforce.&lt;/li&gt;
  &lt;li&gt;
    Enter &lt;strong&gt;API&lt;/strong&gt; in the Quick Find box and select
    &lt;strong&gt;API Settings&lt;/strong&gt;.
  &lt;/li&gt;
  &lt;li&gt;Ensure that &lt;strong&gt;API Enabled&lt;/strong&gt; is checked.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Step 2: Create a Connected App&lt;/h4&gt;
&lt;ol&gt;
  &lt;li&gt;
    In &lt;strong&gt;Setup&lt;/strong&gt;, enter &lt;strong&gt;App Manager&lt;/strong&gt; in the Quick Find box
    and select it.
  &lt;/li&gt;
  &lt;li&gt;Click &lt;strong&gt;New Connected App&lt;/strong&gt;.&lt;/li&gt;
  &lt;li&gt;
    Fill in the basic information such as the Connected App Name and Contact Email.
  &lt;/li&gt;
  &lt;li&gt;
    In the &lt;strong&gt;API (Enable OAuth Settings)&lt;/strong&gt; section, check
    &lt;strong&gt;Enable OAuth Settings&lt;/strong&gt;.
  &lt;/li&gt;
  &lt;li&gt;
    Set the &lt;strong&gt;Callback URL&lt;/strong&gt; (e.g.,
    &lt;code&gt;https://login.salesforce.com/services/oauth2/callback&lt;/code&gt;).
  &lt;/li&gt;
  &lt;li&gt;
    Select &lt;strong&gt;OAuth Scopes&lt;/strong&gt; like &lt;em&gt;Full access (full)&lt;/em&gt; and
    &lt;em&gt;Access and manage your data (api)&lt;/em&gt;.
  &lt;/li&gt;
  &lt;li&gt;Save the settings and &lt;strong&gt;Continue&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/challenges-of-integrating-salesforce-with-third-party-applications-challenges-of-integ.jpg?width=1600&amp;amp;height=800&quot;
    alt=&quot;Connected App&quot;
    loading=&quot;lazy&quot;
  /&gt;
&lt;/p&gt;
&lt;h4&gt;Step 3: Obtain OAuth Tokens&lt;/h4&gt;
&lt;ol&gt;
  &lt;li&gt;Use a tool like Postman to initiate the OAuth flow.&lt;/li&gt;
  &lt;li&gt;
    Make a POST request to the Salesforce token endpoint:
    &lt;pre&gt;POST https://login.salesforce.com/services/oauth2/token&lt;/pre&gt;
  &lt;/li&gt;
  &lt;li&gt;
    Include the necessary parameters: &lt;code&gt;grant_type&lt;/code&gt;, &lt;code&gt;client_id&lt;/code&gt;,
    &lt;code&gt;client_secret&lt;/code&gt;, &lt;code&gt;username&lt;/code&gt;, and &lt;code&gt;password&lt;/code&gt;.
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Step 4: Make API Calls&lt;/h4&gt;
&lt;ol&gt;
  &lt;li&gt;With the OAuth token obtained, you can now make REST API calls.&lt;/li&gt;
  &lt;li&gt;
    For example, to query accounts:
    &lt;pre&gt;GET /services/data/vXX.X/sobjects/Account&lt;/pre&gt;
  &lt;/li&gt;
  &lt;li&gt;
    Include the OAuth token in the Authorization header:
    &lt;pre&gt;Authorization: Bearer YOUR_ACCESS_TOKEN&lt;/pre&gt;
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;
  Integrating Salesforce with third-party applications is essential for maximizing the
  value of your CRM system and enhancing business processes. While the challenges can be
  significant, the solutions and best practices outlined above can help ensure a
  successful integration. By leveraging tools like Tekunda
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;, you can
  simplify these processes, reduce manual effort, and maintain a seamless flow of data
  across your systems.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;How do you avoid hitting Salesforce API limits?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Combine multiple calls into one where you can, and use bulk API operations for large
  data sets. Platform Events let other systems react to changes instead of polling,
  which removes a lot of routine API traffic.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do you keep Salesforce and a third-party system in sync?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Pick real-time sync or scheduled batch updates depending on how fresh the data has to
  be, and run it through middleware such as MuleSoft, Informatica or Jitterbit.
  Salesforce native tools like Data Loader and Apex handle the migration side.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do you enable the REST API in Salesforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Confirm API Enabled under API Settings in Setup, then create a Connected App with
  OAuth settings and a callback URL. Once you have an access token, call the REST
  endpoints with it in the Authorization header.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do you secure data moving in and out of Salesforce?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Encrypt every transfer with TLS and use OAuth for authentication and authorisation
  rather than shared credentials. Audit your integrations regularly, and use Salesforce
  Shield where you need encryption, event monitoring and field audit trail.
&lt;/p&gt;
&lt;p&gt;Ready to streamline your Salesforce integrations?&lt;/p&gt;
&lt;p&gt;
  &lt;a href=&quot;#contact&quot;&gt;Contact us now&lt;/a&gt; to secure your spot with Tekunda&apos;s innovative
  team to simplify your integration challenges.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Salesforce Development with Salesforce CLI]]></title>
            <description><![CDATA[This guide will walk you through the process of creating and managing scratch orgs, deploying metadata and code, and handling source control and releases.]]></description>
            <link>https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI</guid>
            <dc:creator><![CDATA[Tekunda Team]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:43 GMT</pubDate>
            <content:encoded>&lt;div style=&quot;font-family: Arial, sans-serif; line-height: 1.6; margin: 20px&quot;&gt;
  &lt;h2 style=&quot;color: #2c3e50&quot;&gt;Setting Up Your Development Environment&lt;/h2&gt;
  &lt;p&gt;
    Before diving into Salesforce development, you need to set up your environment. This
    involves installing the necessary tools and configuring your Salesforce project.
  &lt;/p&gt;
  &lt;p&gt;
    If you&apos;re looking to simplify the complexities of these processes so you can focus
    on innovation rather than process management, we&apos;ve got the solution for you!&amp;nbsp;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;strong
      &gt;&lt;a href=&quot;https://app.serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
        &gt;Start free - no credit card&lt;/a
      &gt;&lt;/strong
    &gt;
    and be among the selected to leverage Tekunda
    &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt; to
    transform your workflow!
  &lt;/p&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Installing Salesforce CLI&lt;/h3&gt;
  &lt;p&gt;
    First, you need to install the Salesforce CLI. This tool is essential for
    interacting with Salesforce orgs, creating
    &lt;a
      href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;scratch orgs&lt;/a
    &gt;, and managing metadata.
  &lt;/p&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Download and Install SF CLI:&lt;/strong&gt;
      &lt;p&gt;
        Download the installer from the
        &lt;a
          href=&quot;https://developer.salesforce.com/tools/salesforcecli&quot;
          target=&quot;_blank&quot;
          rel=&quot;noopener&quot;
          &gt;Salesforce CLI&lt;/a
        &gt;
        page. Follow the installation instructions for your operating system.
      &lt;/p&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Authenticate with Salesforce:&lt;/strong&gt;
      &lt;p&gt;
        After installing the CLI, authenticate with your Salesforce org using the
        following command:
      &lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf login&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Set Up Your Salesforce DX Project:&lt;/strong&gt;
      &lt;p&gt;
        Create a new Salesforce DX project or navigate to your existing project
        directory. Initialize the project using:
      &lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf project create --name YourProjectName&lt;/pre
      &gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h2 style=&quot;color: #2c3e50&quot;&gt;Creating a Scratch Org&lt;/h2&gt;
  &lt;p&gt;
    &lt;a
      href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Scratch orgs&lt;/a
    &gt;
    are ephemeral environments that you can use for development and testing. They can be
    namespaced or non-namespaced, depending on your requirements.
  &lt;/p&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Define the Scratch Org Configuration:&lt;/strong&gt;
      &lt;p&gt;
        Create a &lt;code&gt;config/project-scratch-def.json&lt;/code&gt; file in your project
        directory with the necessary configuration. For example:
      &lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
{
  &quot;orgName&quot;: &quot;Demo Company&quot;,
  &quot;edition&quot;: &quot;Developer&quot;,
  &quot;features&quot;: [&quot;Communities&quot;, &quot;ServiceCloud&quot;],
  &quot;settings&quot;: {
    &quot;orgPreferenceSettings&quot;: {
      &quot;s1DesktopEnabled&quot;: true,
      &quot;selfSetPasswordInApi&quot;: true
    }
  }
}&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Create the Scratch Org:&lt;/strong&gt;
      &lt;p&gt;Use the following command to create a scratch org:&lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf org create scratch --definitionfile config/project-scratch-def.json --setdefaultusername --durationdays 7 --alias YourScratchOrgAlias&lt;/pre
      &gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Working with Namespaced Orgs&lt;/h3&gt;
  &lt;p&gt;
    If you&apos;re developing a
    &lt;a
      href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;managed package,&lt;/a
    &gt;
    you might need a namespaced scratch org. Namespaced orgs are particularly useful for
    developing and testing managed packages because they allow you to test your code in
    an environment that closely resembles your production environment. Here are some
    common use cases for namespaced orgs:
  &lt;/p&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Isolation of Code:&lt;/strong&gt; Namespaced orgs help in isolating your code
      from other packages and customizations in your Salesforce environment. This
      isolation ensures that there are no conflicts between your code and other
      packages.
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong
        &gt;Testing
        &lt;a
          href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
          target=&quot;_blank&quot;
          rel=&quot;noopener&quot;
          &gt;Managed Packages&lt;/a
        &gt;:&lt;/strong
      &gt;
      When developing
      &lt;a
        href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
        target=&quot;_blank&quot;
        rel=&quot;noopener&quot;
        &gt;managed packages&lt;/a
      &gt;, it&apos;s crucial to test them in a namespaced org to ensure that the package&apos;s
      namespace is correctly applied and does not interfere with other code or packages.
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Consistency with Production:&lt;/strong&gt; Namespaced
      &lt;a
        href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
        target=&quot;_blank&quot;
        rel=&quot;noopener&quot;
        &gt;scratch orgs&lt;/a
      &gt;
      mimic the behavior of your production environment, providing a consistent testing
      ground. This consistency helps identify potential issues that could arise in
      production.
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Compliance and Security:&lt;/strong&gt; By using namespaced orgs, you can better
      manage compliance and security aspects, ensuring that your
      &lt;a
        href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
        target=&quot;_blank&quot;
        rel=&quot;noopener&quot;
        &gt;managed packages&lt;/a
      &gt;
      adhere to Salesforce&apos;s security guidelines.
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;p&gt;
    Ensure your Dev Hub has a namespace registered, and include the namespace in your
    scratch org definition.
  &lt;/p&gt;
  &lt;h2 style=&quot;color: #2c3e50&quot;&gt;
    &lt;a
      href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Deploying Metadata&lt;/a
    &gt;
    and Code
  &lt;/h2&gt;
  &lt;p&gt;
    With your scratch org ready, you can deploy metadata and code. This process involves
    pushing your local source to the scratch org and setting up any necessary test data
    and permissions.
  &lt;/p&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Deploying to the Scratch Org&lt;/h3&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Push Source to Scratch Org:&lt;/strong&gt;
      &lt;p&gt;Deploy your local source to the scratch org using:&lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf project deploy start&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Assign Permission Sets:&lt;/strong&gt;
      &lt;p&gt;Assign necessary permission sets to your user:&lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf org assign permset --name YourPermsetName&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Load Test Data:&lt;/strong&gt;
      &lt;p&gt;
        If you have test data, load it using SOQL queries or by importing data files:
      &lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf data import tree --plan data/sample-data-plan.json&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Install Dependencies:&lt;/strong&gt;
      &lt;p&gt;
        If your project depends on
        &lt;a
          href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
          target=&quot;_blank&quot;
          rel=&quot;noopener&quot;
          &gt;managed packages&lt;/a
        &gt;, install them using:
      &lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf package install --package YourPackageAliasOrId --wait 10&lt;/pre
      &gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;p&gt;
    If you&apos;re looking to simplify the complexities of these processes so you can focus
    on innovation rather than process management, we&apos;ve got the solution for you!&amp;nbsp;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;strong
      &gt;&lt;a href=&quot;https://app.serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
        &gt;Start free - no credit card&lt;/a
      &gt;&lt;/strong
    &gt;
    and be among the selected to leverage Tekunda
    &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt; to
    transform your workflow!
  &lt;/p&gt;
  &lt;h2 style=&quot;color: #2c3e50&quot;&gt;Source Control Management&lt;/h2&gt;
  &lt;p&gt;
    Effective source control is crucial for team collaboration and project integrity.
    Git is the most commonly used source control system in Salesforce development.
  &lt;/p&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Using Git for Source Control&lt;/h3&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Initialize Git Repository:&lt;/strong&gt;
      &lt;p&gt;
        If your project isn&apos;t already under source control, initialize a Git repository:
      &lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git init&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Add and Commit Changes:&lt;/strong&gt;
      &lt;p&gt;Add your changes to the repository and commit them:&lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git add .
git commit -m &quot;Initial commit&quot;&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Create Feature Branches:&lt;/strong&gt;
      &lt;p&gt;
        Use Git Flow to manage your branches. Create a new feature branch for
        development:
      &lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git checkout -b feature/new-feature&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Fetch and Merge Changes:&lt;/strong&gt;
      &lt;p&gt;
        Regularly fetch and merge changes from the main branch to keep your feature
        branch up-to-date:
      &lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git fetch origin
git merge origin/main&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Commit and Push Changes:&lt;/strong&gt;
      &lt;p&gt;After developing your feature, commit and push your changes:&lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
git commit -m &quot;Developed new feature&quot;
git push origin feature/new-feature&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Create Pull Requests:&lt;/strong&gt;
      &lt;p&gt;
        Open a pull request to merge your feature branch into the main branch. Ensure
        your code is reviewed and approved by your team.
      &lt;/p&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h2 style=&quot;color: #2c3e50&quot;&gt;Managing Releases&lt;/h2&gt;
  &lt;p&gt;
    Once your development and testing are complete, it&apos;s time to manage releases. This
    process can differ depending on whether you&apos;re working with a non-packaged org or a
    &lt;a
      href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;managed package&lt;/a
    &gt;.
  &lt;/p&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;Releasing to a Non-Packaged Org&lt;/h3&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong&gt;Deploy to Production:&lt;/strong&gt;
      &lt;p&gt;Deploy your changes to the production org using the Salesforce CLI:&lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf project deploy start --target-org YourProductionOrgAlias&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Run Tests:&lt;/strong&gt;
      &lt;p&gt;Ensure all tests pass before finalizing the deployment:&lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf apex run test --target-org YourProductionOrgAlias&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Monitor Deployment:&lt;/strong&gt;
      &lt;p&gt;Use the Salesforce CLI to monitor the deployment status:&lt;/p&gt;
      &lt;pre
        style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;
      &gt;sf project deploy report --target-org YourProductionOrgAlias &lt;span class=&quot;ui-provider a b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak&quot; dir=&quot;ltr&quot;&gt;--job-id &amp;lt;yourDeploymentJobId&amp;gt;&lt;/span&gt;&lt;/pre&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h3 style=&quot;color: #2c3e50&quot;&gt;
    Releasing a
    &lt;a
      href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Managed Package&lt;/a
    &gt;
  &lt;/h3&gt;
  &lt;ol&gt;
    &lt;li&gt;
      &lt;strong
        &gt;Create a
        &lt;a
          href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
          target=&quot;_blank&quot;
          rel=&quot;noopener&quot;
          &gt;Managed Package&lt;/a
        &gt;:&lt;/strong
      &gt;
      &lt;p&gt;Create a new package version using the Salesforce CLI:&lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf package version create --package YourPackageAlias --installation-key YourKey --wait 10 --code-coverage&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Promote the Package Version:&lt;/strong&gt;
      &lt;p&gt;Promote the package version to make it available for installation:&lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf package version promote --package &quot;YourPackageVersionId&quot;&lt;/pre
      &gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Submit for Security Review:&lt;/strong&gt;
      &lt;p&gt;
        If your package will be listed on the AppExchange, submit it for a security
        review. This process ensures your package meets Salesforce&apos;s security standards.
      &lt;/p&gt;
    &lt;/li&gt;
    &lt;li&gt;
      &lt;strong&gt;Install the Package:&lt;/strong&gt;
      &lt;p&gt;
        Install the
        &lt;a
          href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
          target=&quot;_blank&quot;
          rel=&quot;noopener&quot;
          &gt;managed package&lt;/a
        &gt;
        in your production org:
      &lt;/p&gt;
      &lt;pre style=&quot;background-color: #f4f4f4; padding: 10px; border-radius: 5px&quot;&gt;
sf package install --package YourPackageVersionId --target-org YourProductionOrgAlias --wait 10&lt;/pre
      &gt;
    &lt;/li&gt;
  &lt;/ol&gt;
  &lt;h2 style=&quot;color: #2c3e50&quot;&gt;Conclusion&lt;/h2&gt;
  &lt;p&gt;
    Developing for Salesforce using the Salesforce CLI involves several steps, from
    setting up your development environment to managing releases. By leveraging
    &lt;a
      href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;scratch orgs&lt;/a
    &gt;,
    &lt;a
      href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;deploying metadata&lt;/a
    &gt;
    and code, handling source control, and managing releases efficiently, you can
    streamline your Salesforce development process.
  &lt;/p&gt;
  &lt;p&gt;
    Whether you&apos;re developing for a non-packaged org or creating a
    &lt;a
      href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;managed package&lt;/a
    &gt;, the Salesforce CLI offers powerful commands to automate and simplify your
    workflow. By following best practices and maintaining effective source control, you
    can ensure your projects are well-managed and ready for deployment.
  &lt;/p&gt;
  &lt;h2 style=&quot;color: #2c3e50&quot;&gt;FAQ&lt;/h2&gt;
  &lt;p&gt;&lt;strong&gt;What is a scratch org used for?&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;
    A scratch org is a disposable Salesforce environment for development and testing.
    You describe it in a JSON definition file, create it from the CLI, push your source
    into it, and discard it when the work is done.
  &lt;/p&gt;
  &lt;p&gt;&lt;strong&gt;When do you need a namespaced scratch org?&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;
    When you are building or testing a managed package. The namespace has to be
    registered on your Dev Hub and named in the scratch org definition, so the package
    behaves the way it will once installed elsewhere.
  &lt;/p&gt;
  &lt;p&gt;&lt;strong&gt;How do you release a managed package with the CLI?&lt;/strong&gt;&lt;/p&gt;
  &lt;p&gt;
    A non-packaged org takes a direct source deployment and a test run against the
    target org. A managed package instead needs a new package version created, promoted
    so it can be installed, and then installed into the destination org.
  &lt;/p&gt;
  &lt;p&gt;
    &lt;strong&gt;Do you need a security review to list a package on AppExchange?&lt;/strong&gt;
  &lt;/p&gt;
  &lt;p&gt;
    Yes. Any package listed on AppExchange has to pass Salesforce&apos;s security review
    first. Treat it as a planned release step rather than something you handle at the
    end.
  &lt;/p&gt;
  &lt;p&gt;
    If you&apos;re looking to simplify the complexities of these processes so you can focus
    on innovation rather than process management, we&apos;ve got the solution for you!&amp;nbsp;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;strong
      &gt;&lt;a href=&quot;https://app.serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;
        &gt;Start free - no credit card&lt;/a
      &gt;&lt;/strong
    &gt;
    and be among the selected to leverage Tekunda
    &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt; to
    transform your workflow!
  &lt;/p&gt;
&lt;/div&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Security Review Checklist: How to Prepare and Pass]]></title>
            <description><![CDATA[Get a step-by-step Salesforce Security Review checklist to prepare your app, avoid rejections, and pass Salesforce’s approval process with confidence.]]></description>
            <link>https://serpent.cloud/resources/Salesforce-Security-Review-Checklist%3A-How-to-Prepare-and-Pass</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Salesforce-Security-Review-Checklist%3A-How-to-Prepare-and-Pass</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:42 GMT</pubDate>
            <content:encoded>&lt;div class=&quot;shortdesc&quot;&gt;
  At Salesforce, to distribute a managed package, Salesforce Platform API solution, or
  Marketing Cloud API solution on AppExchange, it must pass the Salesforce security
  review. Let&apos;s discuss on how to prepare for and pass the security review.
&lt;/div&gt;
&lt;div class=&quot;shortdesc&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;shortdesc&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;h2 class=&quot;shortdesc&quot;&gt;Managed 2GPs created from TRIAL Dev Hubs are not allowed&lt;/h2&gt;
&lt;p&gt;
  Managed 2GPs created from TRIAL Dev Hubs are not reviewable by security review team.
&lt;/p&gt;
&lt;p&gt;
  Ensure that your managed 2GP was created using the Dev Hub in your Partner Business
  Org (PBO).
&lt;/p&gt;
&lt;p&gt;
  Then, ensure that you have requested activation of your PBO so it can be moved from a
  TRIAL to an ACTIVE state.
&lt;/p&gt;
&lt;p&gt;
  You must log a case and select &quot;Partner Community &amp;amp; AppExchange&quot; for the Product
  and &quot;Security Review&quot; and ask for the activation.
&lt;/p&gt;
&lt;h2&gt;Include web application scan results for third-party domains&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;
  Your submission should include any web application scan results for the third-party
  (non-Salesforce) domains integrated with your app.
&lt;/p&gt;
&lt;p&gt;
  Add any non-Salesforce endpoints in your submission, included as composite
  environment(s), and/or in the remote site settings of your Salesforce test org.
  Example https://testapi.net/
&lt;/p&gt;
&lt;p&gt;
  Non-Salesforce domains/endpoints are considered in the scope of the security review if
  they are integrated with your Salesforce component in any way (e.g. if your app makes
  callouts to them, if they store any Salesforce data, or if they&apos;re used for other
  purposes such as authentication).
&lt;/p&gt;
&lt;p&gt;
  Provide scan results from one of approved web application scanning tools for any sites
  in scope of the review.
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Approved scanning tools include OWASP ZAP, Burp Suite or Qualys WAS.&lt;/li&gt;
  &lt;li&gt;You must correct any high-severity issues the scan detects.&lt;/li&gt;
  &lt;li&gt;
    Salesforce retired its hosted Chimera scanner on 2025-06-16, so you run the dynamic
    scan yourself and submit the report. See
    &lt;a
      href=&quot;https://tekunda.com/blog/Salesforce-Security-Review%3A-Running-Your-Own-Dynamic-Scans-After-Chimera&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener&quot;
      &gt;Running Your Own Dynamic Scans After Chimera&lt;/a
    &gt;.
  &lt;/li&gt;
  &lt;li&gt;
    Provide clean scan results, or supplement the results with documentation that
    explains false positives.
  &lt;/li&gt;
  &lt;li&gt;
    Alternatively, if no issues are detected, provide a screenshot of the endpoint
    scanned.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Provide any necessary authentication credentials, such as username/passwords or API
  keys, that the Security Review Team might need to test these external integrations.
&lt;/p&gt;
&lt;h2&gt;Identity challenge is enabled workaround&lt;/h2&gt;
&lt;p&gt;
  Identity challenge is enabled on your org. As a workaround, you&apos;ll need to safelist
  Salesforce IP ranges.
&lt;/p&gt;
&lt;p&gt;
  You can spin up a new org with the IP addresses whitelisted and multi-factor
  authentication (MFA) disabled by following the steps in
  &lt;a href=&quot;https://quip.com/pfqeA8kRTraY&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;this link&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
  Alternatively, follow the steps below in
  &lt;span class=&quot;outlook-search-highlight&quot; data-markjs=&quot;true&quot;&gt;your&lt;/span&gt; current org:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    Disable MFA with the steps below:
    &lt;ol&gt;
      &lt;li&gt;Log into the org and go to the setup section.&lt;/li&gt;
      &lt;li&gt;
        Search for &amp;ldquo;Session Settings&amp;rdquo; in the search bar on the top left.
      &lt;/li&gt;
      &lt;li&gt;Go to session settings, then &amp;ldquo;Session Security Levels&amp;rdquo;&lt;/li&gt;
      &lt;li&gt;Select Two-Factor Authentication from High Assurance and click remove.&lt;/li&gt;
      &lt;li&gt;Press save at the bottom of the page.&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;
    Safelist the
    &lt;a
      href=&quot;https://help.salesforce.com/s/articleView?id=000384438&amp;amp;type=1&quot;
      target=&quot;_blank&quot;
      rel=&quot;noopener noreferrer&quot;
      &gt;Salesforce IP ranges&lt;/a
    &gt;&amp;nbsp;and as well as the following ranges and addresses:
    &lt;ul&gt;
      &lt;li&gt;13.108.0.0 - 13.111.255.255&lt;/li&gt;
      &lt;li&gt;62.17.146.0 - 62.17.146.255&lt;/li&gt;
      &lt;li&gt;85.222.134.0 - 85.222.134.255&lt;/li&gt;
      &lt;li&gt;104.161.246.0 - 104.161.246.255&lt;/li&gt;
      &lt;li&gt;182.71.125.154 - 182.71.125.155&lt;/li&gt;
      &lt;li&gt;182.72.29.238 and 136.232.119.246&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Enforce sharing rules in classes&lt;/h2&gt;
&lt;p&gt;
  Enforce sharing in your classes that access/modify salesforce standard/custom objects.
&lt;/p&gt;
&lt;p&gt;
  In order to avoid this vulnerability, you will need to declare &quot;with sharing&quot; these
  classes.
&lt;/p&gt;
&lt;p&gt;
  Note: Sharing is enforced or not in the class that perform the DML queries, if a class
  with sharing call another class &quot;without sharing&quot;, and does the queries, the objects
  retrieved/modified will be without sharing enforcement.
&lt;/p&gt;
&lt;p&gt;
  Object (CRUD) and Field Level Security (FLS) are configured on profiles and permission
  sets and can be used to restrict access to standard and custom objects and individual
  fields. Force.com developers should design their applications to enforce the
  organization&apos;s CRUD and FLS settings on both standard and custom objects, and to
  gracefully degrade if a user&apos;s access has been restricted.
&lt;/p&gt;
&lt;p&gt;Some use cases where it might be acceptable to bypass CRUD/FLS are:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    For creating roll up summaries or aggregates that don&amp;rsquo;t directly expose the
    data
  &lt;/li&gt;
  &lt;li&gt;
    Modifying custom objects or fields like logs or system metadata that shouldn&amp;rsquo;t
    be directly accessible to the user via CRUD/FLS
  &lt;/li&gt;
  &lt;li&gt;
    Cases where granting direct access to the custom object creates a less secure
    security model.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Make sure to document these use cases as a part of your submission.&lt;/p&gt;
&lt;h2&gt;
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Sensitive Information in Debug&lt;/a
  &gt;
&lt;/h2&gt;
&lt;p&gt;
  Revealing information in debug statements can help reveal potential attack vectors to
  an attacker. Debug statements can be invaluable for diagnosing issues in the
  functionality of an application, but they should not publicly disclose sensitive or
  overly detailed information (this includes PII, passwords, keys, and stack traces as
  error messages, among other things).&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;No sensitive or PII data should be logged using the system.debug method.&lt;/p&gt;
&lt;h2&gt;Sharing Violation Vulnerability&lt;/h2&gt;
&lt;p&gt;
  The Force.com platform makes extensive use of data sharing rules. Each object can have
  unique permissions for which users and profiles can read, create, edit, and delete.
  These restrictions are enforced when using all standard controllers. When using a
  custom Apex class, the built-in profile permissions and field-level security
  restrictions are not respected during execution. The default behavior is that an apex
  class has the ability to read and update all data with the organization. Because these
  rules are not enforced, developers who use Apex must take care that they do not
  inadvertently expose sensitive data that would normally be hidden from users by
  profile-based permissions, field-level security, or organization-wide defaults. This
  is particularly true for Visualforce pages. Classes should explicitly declare with
  sharing when possible.
&lt;/p&gt;
&lt;h2&gt;Conduct a Comprehensive Review&lt;/h2&gt;
&lt;p&gt;
  Conduct a comprehensive review of your application using the above as a guide to
  identify similar issues.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
  Most cases when the security review starts their checks, they are unable to identify
  every instance of each type of vulnerability. As a result, their report will generally
  contain one example of each type of vulnerability found, and it will be up to you to
  check for other similar instances throughout your application.
&lt;/p&gt;
&lt;h2&gt;Re-visit Security Resources.&amp;nbsp;&lt;/h2&gt;
&lt;p&gt;
  Visit the
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.secure_coding_guide.meta/secure_coding_guide/secure_coding_guidelines.htm&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    Salesforce Security Resources
  &lt;/a&gt;
  secure coding guidelines, tools, and training, and the
  &lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.packagingGuide.meta/packagingGuide/security_review_resources.htm&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
  &gt;
    ISV Security Review Resources
  &lt;/a&gt;
  to prepare for the AppExchange security review process.
&lt;/p&gt;
&lt;p&gt;
  In addition to manual testing, run automated scans with tools such as Salesforce Code
  Analyzer, OWASP ZAP, and Checkmarx.&lt;br /&gt;&lt;a
    href=&quot;https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/guide/code-analyzer.html&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Salesforce Code Analyzer - Overview &amp;amp; Guide&lt;/a
  &gt;
  &lt;br /&gt;&lt;a
    href=&quot;https://security.my.salesforce-sites.com/security/tools/webapp/zaprunningscan&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Web Application Scanner (ZAP)&lt;/a
  &gt;
  &lt;br /&gt;&lt;a
    href=&quot;https://security.my.salesforce-sites.com/sourcescanner/&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Checkmarx - Security Code Scanner&lt;/a
  &gt;
&lt;/p&gt;
&lt;h3&gt;&lt;strong&gt;Additional Resources:&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;
  More info here&amp;nbsp;&lt;a
    href=&quot;https://developer.salesforce.com/docs/atlas.en-us.securityImplGuide.meta/securityImplGuide/review_and_certification.html&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Security Guidelines for Apex and Visualforce Development&lt;/a
  &gt;&lt;br /&gt;&lt;br /&gt;For more in-depth, interactive training materials, check out the new
  trailhead for
  &lt;a href=&quot;https://trailhead.salesforce.com/content/learn/modules/isv_security_review&quot;
    &gt;&lt;span class=&quot;s1&quot;&gt;ISV Security Review&lt;/span&gt;&lt;/a
  &gt;
&lt;/p&gt;
&lt;p&gt;
  You can keep up-to-date on alerts, participate in discussions, and post comments and
  questions in the&amp;nbsp;&lt;a
    href=&quot;https://partners.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F9300000001s8Y&quot;
    &gt;&lt;span class=&quot;s1&quot;&gt;Security Review Collaboration Group&lt;/span&gt;&lt;/a
  &gt;
  of the Partner Community.
&lt;/p&gt;
&lt;p&gt;
  Generate a submission checklist that is customized to your solution. Using the&amp;nbsp;&lt;a
    href=&quot;https://checklistbuilder.herokuapp.com/&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;&lt;span class=&quot;s1&quot;
      &gt;Security Review Submission Requirements Checklist Builder&lt;/span
    &gt;&lt;/a
  &gt;.
&lt;/p&gt;
&lt;p&gt;
  If you submitted a package version for review and failed with some feedback from the
  security team, make sure when you&apos;re ready to schedule follow-up Security Review
  consider those two important points.
&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;
    &amp;nbsp;If you changed code that runs on the Salesforce platform, you must upload a
    new version of your managed package.
    &lt;ul&gt;
      &lt;li&gt;From the Publishing Console, click the &apos;Listings&apos; tab.&lt;/li&gt;
      &lt;li&gt;Click on your listing.&lt;/li&gt;
      &lt;li&gt;
        Link your newly uploaded managed package version to your listing by clicking the
        green &apos;Select Package&apos; button.
      &lt;/li&gt;
      &lt;li&gt;
        Go to the &apos;Packages&apos; tab and click the &apos;Start Review&apos; link next to the Security
        Review field on your newest version.
      &lt;/li&gt;
      &lt;li&gt;
        Go through the security review wizard and follow the normal submission
        process.&lt;br /&gt;&lt;br /&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &amp;nbsp;If you fixed only code that runs externally to Salesforce, edit your existing
    security review submission information:
    &lt;ul&gt;
      &lt;li&gt;
        From the Publishing Console, click the &apos;Listings&apos; tab if your app does not have
        any Salesforce package (otherwise, click on the &apos;Packages&apos; tab).
      &lt;/li&gt;
      &lt;li&gt;
        Click on your listing in the &apos;Listings&apos; tab or, if in the &apos;Packages&apos; tab, scroll
        to your most recently submitted package version.
      &lt;/li&gt;
      &lt;li&gt;
        Click the &quot;Edit Review&quot; link (either in the &apos;APP&apos; tab of the listing, or next to
        the package version in the &apos;Packages&apos; tab). The link might also say &quot;Submitted&quot;
        instead of &quot;Edit Review&quot;.
      &lt;/li&gt;
      &lt;li&gt;
        Go through the security review wizard and update any information that has
        changed.
      &lt;/li&gt;
      &lt;li&gt;
        It is required to&amp;nbsp;&lt;a
          href=&quot;https://help.salesforce.com/s/case-submission?supportType=Partner_Program_Support&quot;
          target=&quot;_blank&quot;
          rel=&quot;noopener&quot;
          &gt;Log a case&lt;/a
        &gt;&amp;nbsp;and&amp;nbsp;select &quot;Partner Community &amp;amp; AppExchange&quot; for the Product and
        &quot;Security Review&quot; for the Topic&amp;nbsp;to let the Security Review Operations Team
        know you are re-submitting your product for review. Include your package name,
        ID, and version (or listing link) in the case description.
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Can I use a trial Dev Hub for the security review?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Managed 2GPs created from a trial Dev Hub are not reviewable. Build the package
  from the Dev Hub in your Partner Business Org, and request activation so the org moves
  from trial to active.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which scanners does the Salesforce security review accept?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  OWASP ZAP, Burp Suite and Qualys WAS are all accepted; Salesforce judges the report,
  not the brand. Since Chimera retired on 2025-06-16 you run the dynamic scan yourself,
  correct the high-severity findings, and document any false positives you cannot
  remove.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Are third-party endpoints in scope of the security review?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes, if they are integrated with your app in any way, including callouts, storing
  Salesforce data or authentication. Submit their scan results and any credentials the
  review team needs to test them.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do I give the review team access to my test org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  If identity challenge is enabled, safelist the Salesforce IP ranges and remove
  two-factor authentication from High Assurance in Session Settings. You can also spin
  up a new org that already has those settings.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What happens if my app fails the security review?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  You fix the findings and re-submit. If you changed code that runs on the platform,
  upload a new package version and link it to your listing; if only external code
  changed, edit the existing submission and log a case.
&lt;/p&gt;
&lt;h2 id=&quot;section_7&quot;&gt;
  &lt;strong
    &gt;&lt;u
      &gt;We&apos;re glad to share any helpful information and would recommend you knowing more
      about our impact to the release cycle in Salesforce&lt;/u
    &gt;&lt;/strong
  &gt;
&lt;/h2&gt;
&lt;p&gt;
  &lt;a href=&quot;#contact&quot; target=&quot;_self&quot; rel=&quot;noopener&quot;&gt;&lt;u&gt;Schedule a demo&lt;/u&gt;&lt;/a&gt; to find
  out more about how
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt; can
  supercharge your Salesforce DevOps Strategy today!
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt; by Tekunda
  offers some excellent tools to help your DevOps teams, including built-in version
  control, continuous deployment and release systems, merge tools, and tons of different
  testing tools.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[The Secrets of Salesforce Second Generation Managed Package]]></title>
            <description><![CDATA[Releases could take a lot of time & effort, specially if they fail, sometimes they do not provide all that meaningful errors to help you resolve the issue!]]></description>
            <link>https://serpent.cloud/resources/The-Secrets-of-Salesforce-Second-Generation-Managed-Package</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/The-Secrets-of-Salesforce-Second-Generation-Managed-Package</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:41 GMT</pubDate>
            <content:encoded>&lt;section
  id=&quot;blog-details&quot;
  class=&quot;blog-details latest-blog-area wow fadeIn&quot;
  data-wow-duration=&quot;2s&quot;
  data-wow-delay=&quot;0.2s&quot;
&gt;
  &lt;div class=&quot;container&quot;&gt;
    &lt;div class=&quot;row&quot;&gt;
      &lt;div class=&quot;col-md-10&quot;&gt;
        &lt;div
          class=&quot;single-blog-box wow fadeInUp&quot;
          data-wow-duration=&quot;2s&quot;
          data-wow-delay=&quot;.50s&quot;
        &gt;
          &lt;div id=&quot;post-body&quot; class=&quot;blog-box-content&quot;&gt;
            &lt;p&gt;
              We will cover a couple of topics to make your life easier whether you
              already are using second generation managed packages or you are new to
              this topic.
            &lt;/p&gt;
            &lt;p&gt;
              Whenever you create a new release, it could take a lot of time &amp;amp;
              effort, and when it fails, sometimes it does not provide all that
              meaningful errors to help you resolve the issue! I really wish it gave
              more detailed error messages like the sfdx deploy command. Still,
              that&amp;rsquo;s not the ugly part yet, It gets even more tricky when your
              package is already created and ready for use, however when you try
              installing it in your test org, you find out that there are a lot of
              features not working as expected!
            &lt;/p&gt;
            &lt;p&gt;
              If you want to avoid this mess or already facing it, then you are in the
              right place to learn from our challenges and mistakes saving you the
              needless headache.
            &lt;/p&gt;
            &lt;h2 id=&quot;section_1&quot;&gt;
              &lt;strong&gt;&lt;u&gt;Apex Access Modifiers&lt;/u&gt;&lt;/strong&gt;
            &lt;/h2&gt;
            &lt;p&gt;
              Let&apos;s start by getting to know the different access modifiers in apex
              classes so it can help you choose how to implement your code:
            &lt;/p&gt;
            &lt;h3 id=&quot;section_1_2&quot;&gt;&lt;strong&gt;Private&lt;/strong&gt;&lt;/h3&gt;
            &lt;p&gt;
              This access modifier is the default, and means that the method or variable
              is accessible only within the Apex class in which it&amp;rsquo;s defined. If
              you don&amp;rsquo;t specify an access modifier, the method or variable is
              private.
            &lt;/p&gt;
            &lt;h3 id=&quot;section_1_3&quot;&gt;&lt;strong&gt;Protected&lt;/strong&gt;&lt;/h3&gt;
            &lt;p&gt;
              This means that the method or variable is visible to any inner classes in
              the defining Apex class, and to the classes that extend the defining Apex
              class. You can only use this access modifier for instance methods and
              member variables. This setting is strictly more permissive than the
              default (private) setting, just like Java.
            &lt;/p&gt;
            &lt;h3 id=&quot;section_1_4&quot;&gt;&lt;strong&gt;Public&lt;/strong&gt;&lt;/h3&gt;
            &lt;p&gt;
              This means that the method or variable is accessible by all Apex within a
              specific package.
            &lt;/p&gt;
            &lt;blockquote&gt;
              In Apex, the public access modifier isn&amp;rsquo;t the same as it is in Java.
              This was done to discourage joining applications, to keep the code for
              each application separate. In Apex, if you want to make something public
              like in Java, you must use the global access modifier.
            &lt;/blockquote&gt;
            &lt;h4 id=&quot;section_1_4_1&quot;&gt;
              &lt;strong&gt;@NamespaceAccessible&lt;/strong&gt;&lt;strong&gt;&amp;nbsp;annotation&lt;/strong&gt;
            &lt;/h4&gt;
            &lt;p&gt;
              For accessibility by all second-generation (2GP)
              &lt;a
                href=&quot;https://serpent.cloud/resources/Managed-vs-Unmanaged-Packages-in-Salesforce%3A-Key-Differences&quot;
                &gt;managed packages&lt;/a
              &gt;&amp;nbsp;that share a namespace, use public with the @NamespaceAccessible
              annotation. Using the public access modifier in no-namespace packages
              implicitly renders the Apex code as @NamespaceAccessible.
            &lt;/p&gt;
            &lt;h3 id=&quot;section_1_5&quot;&gt;&lt;strong&gt;Global&lt;/strong&gt;&lt;/h3&gt;
            &lt;p&gt;
              This means the method or variable can be used by any Apex code that has
              access to the class, not just the Apex code in the same application. This
              access modifier must be used for any method that must be referenced
              outside of the application, either in SOAP API or by other Apex code. If
              you declare a method or variable as global, you must also declare the
              class that contains it as global.
            &lt;/p&gt;
            &lt;blockquote&gt;
              We recommend using the global access modifier rarely, if at all.
              Cross-application dependencies are difficult to maintain.
            &lt;/blockquote&gt;
            &lt;h2 id=&quot;section_2&quot;&gt;
              &lt;strong&gt;&lt;u&gt;AuraEnabled Annotation&lt;/u&gt;&lt;/strong&gt;
            &lt;/h2&gt;
            &lt;p&gt;
              The @AuraEnabled annotation enables client-side and server-side access to
              an Apex controller method. Providing this annotation makes your methods
              available to your Lightning components (both Lightning web components and
              Aura components). Only methods with this annotation are exposed.
            &lt;/p&gt;
            &lt;p&gt;
              In API version 44.0 and later, you can improve runtime performance by
              caching method results on the client by using the annotation
              @AuraEnabled(cacheable=true). You can cache method results only for
              methods that retrieve data but don&amp;rsquo;t modify it. Using this
              annotation eliminates the need to call setStorable() in JavaScript code on
              every action that calls the Apex method.
            &lt;/p&gt;
            &lt;p&gt;
              In API version 55.0 and later, you can use the annotation
              @AuraEnabled(cacheable=true scope=&apos;global&apos;) to enable Apex methods to be
              cached in a global cache.
            &lt;/p&gt;
            &lt;div&gt;
              &lt;div&gt;
                &lt;div&gt;
                  If you have an Apex class in your base package&amp;nbsp;&lt;br /&gt;&lt;br /&gt;
                &lt;/div&gt;
                &lt;div&gt;
                  &lt;pre
                    spellcheck=&quot;false&quot;
                  &gt;global with sharing class TestClass{ &lt;br&gt;@AuraEnabled
global static void testMethod{}
}&lt;/pre&gt;
                  You can reference this method from a different package in your
                  Lightning Web Component like this&lt;br /&gt;&lt;br /&gt;
                  &lt;div&gt;
                    &lt;pre spellcheck=&quot;false&quot;&gt;
import logExceptionLWC from &quot;@salesforce/apex/TestClass.testMethod&quot;;&lt;/pre
                    &gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
              &lt;div&gt;
                Global access modifier would is the trick to be able to reference it
                from another package. However if you&apos;re referencing the Lightning Web
                Component from an Apex Class within the same package, then a Public
                access modifier would be fine in this case.
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;h2 id=&quot;section_2&quot;&gt;
              &lt;strong&gt;&lt;u&gt;JSON Access Annotation&lt;/u&gt;&lt;/strong&gt;
            &lt;/h2&gt;
            &lt;p&gt;
              One of the most important tricks is when you create a custom model in your
              apex code and you might need to serialize or deserialize it later, then
              you will definitely need to add the Json Access annotation for your custom
              model. Hint: make sure to add the annotation to your child objects as well
              ;)
            &lt;/p&gt;
            &lt;p&gt;
              So what is Json Access annotation? And what is it&apos;s serialization &amp;amp;
              deserialization options and considetaions?
            &lt;/p&gt;
            &lt;p&gt;
              The @JsonAccess annotation defined at Apex class level controls whether
              instances of the class can be serialized or deserialized. If the
              annotation restricts the JSON serialization and deserialization, a runtime
              JSONException exception is thrown.
            &lt;/p&gt;
            &lt;p&gt;
              The serializable and deserializable parameters of the @JsonAccess
              annotation enforce the contexts in which Apex allows serialization and
              deserialization.
            &lt;/p&gt;
            &lt;p&gt;
              You can specify one or both parameters, but you can&amp;rsquo;t specify the
              annotation with no parameters. The valid values for the parameters to
              indicate whether serialization and deserialization are allowed:
            &lt;/p&gt;
            &lt;h6 id=&quot;section_2_1&quot;&gt;&lt;/h6&gt;
            &lt;ul&gt;
              &lt;li&gt;&lt;strong&gt;never:&lt;/strong&gt;&amp;nbsp;never allowed&lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;sameNamespace:&lt;/strong&gt;&amp;nbsp;allowed only for Apex code in the
                same namespace
              &lt;/li&gt;
              &lt;li&gt;
                &lt;strong&gt;samePackage:&lt;/strong&gt;&amp;nbsp;allowed only for Apex code in the
                same package (impacts only second-generation packages)
              &lt;/li&gt;
              &lt;li&gt;&lt;strong&gt;always:&lt;/strong&gt;&amp;nbsp;always allowed for any Apex code&lt;/li&gt;
            &lt;/ul&gt;
            &lt;h3 id=&quot;section_3&quot;&gt;&lt;strong&gt;JSON Access Considerations&lt;/strong&gt;&lt;/h3&gt;
            &lt;p&gt;
              If an Apex class annotated with JsonAccess is extended, the extended class
              doesn&amp;rsquo;t inherit this property. If the toString method is applied on
              objects that mustn&apos;t be serialized, private data can be exposed. You must
              override the toString method on objects whose data must be protected. For
              example, serializing an object stored as a key in a Map invokes the
              toString method. The generated map includes key (string) and value
              entries, thus exposing all the fields of the object.
            &lt;/p&gt;
            &lt;pre spellcheck=&quot;false&quot;&gt;
@JsonAccess(serializable=&apos;always&apos; deserializable=&apos;always&apos;)
global class FullDetails{
  global String fullName {get; set;} 
  global Address address {get; set;} 

@JsonAccess(serializable=&apos;always&apos; deserializable=&apos;always&apos;)
global class Address{
  global String streetName {get; set;} 
  global String postalCode {get; set;} 
  }
}
&lt;/pre
            &gt;
            &lt;h2 id=&quot;section_4&quot;&gt;
              &lt;strong&gt;&lt;u&gt;Referencing Apex Classes from a Managed Package&lt;/u&gt;&lt;/strong&gt;
            &lt;/h2&gt;
            &lt;p&gt;
              What if you are creating some unpackaged apex classes in your project and
              you might reference another apex class or an interface that is part of the
              managed package? Just make sure to set these classes as global and
              reference the class by &amp;lt;Namespace&amp;gt;.&amp;lt;ClassName&amp;gt;
            &lt;/p&gt;
            &lt;h2 id=&quot;section_5&quot;&gt;
              &lt;strong&gt;&lt;u&gt;Named Credentials&lt;/u&gt;&lt;/strong&gt;
            &lt;/h2&gt;
            &lt;p&gt;
              The usual callout reference would
              be&amp;nbsp;&lt;strong&gt;callout:&amp;lt;NamedCredentialsApiName&amp;gt;&lt;/strong&gt;, but if
              you&apos;re using named credentials as part of your package for your callout
              classes, you&apos;ll need to update it to&amp;nbsp;&lt;strong
                &gt;callout:&amp;lt;NampeSpace&amp;gt;__&amp;lt;NamedCredentialsApiName&amp;gt;&lt;/strong
              &gt;
            &lt;/p&gt;
            &lt;h2 id=&quot;section_6&quot;&gt;
              &lt;strong
                &gt;&lt;u
                  &gt;&lt;a
                    href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
                    target=&quot;_blank&quot;
                    rel=&quot;noopener&quot;
                    &gt;Connected App&lt;/a
                  &gt;&lt;/u
                &gt;&lt;/strong
              &gt;
            &lt;/h2&gt;
            &lt;p&gt;
              If you are adding the
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;connected app &lt;/a
              &gt;component to your package, here are the exact steps to do it and avoid
              some common bugs
            &lt;/p&gt;
            &lt;ol&gt;
              &lt;li&gt;Create a developer org&lt;/li&gt;
              &lt;li&gt;Go to package manager&lt;/li&gt;
              &lt;li&gt;Check namespace availability then add it&lt;/li&gt;
              &lt;li&gt;
                Link namespace developer org to your DevHub (If while trying to connect,
                it fails after the part of the allow access popup, make sure to wait for
                10 to 15 minutes then re-try)
              &lt;/li&gt;
              &lt;li&gt;
                Go to app manager and create a new
                &lt;a
                  href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
                  target=&quot;_blank&quot;
                  rel=&quot;noopener&quot;
                  &gt;connected app&lt;/a
                &gt;
              &lt;/li&gt;
              &lt;li&gt;
                Assign either full permissions or api, web, and refresh permissions
              &lt;/li&gt;
              &lt;li&gt;
                After creation of the
                &lt;a
                  href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
                  target=&quot;_blank&quot;
                  rel=&quot;noopener&quot;
                  &gt;connected app,&lt;/a
                &gt;
                you can add metadata in your dx project
              &lt;/li&gt;
            &lt;/ol&gt;
            &lt;pre spellcheck=&quot;false&quot;&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
&amp;lt;ConnectedApp xmlns=&quot;http://soap.sforce.com/2006/04/metadata&quot;&amp;gt;
  &amp;lt;developerName&amp;gt;YourNamespace__ConnectedAppName&amp;lt;/developerName&amp;gt;
  &amp;lt;contactEmail&amp;gt;ConnectedAppContactEmail&amp;lt;/contactEmail&amp;gt;
  &amp;lt;label&amp;gt;ConnectedAppLabelName&amp;lt;/label&amp;gt;
  &amp;lt;version&amp;gt;ConnectedAppVersion&amp;lt;/version&amp;gt;
&amp;lt;/ConnectedApp&amp;gt;
&lt;/pre
            &gt;
            &lt;p&gt;
              If you followed the exact same steps and in the process of creation of
              package version it fails with the error that says
            &lt;/p&gt;
            &lt;blockquote&gt;
              ERROR running force:package:version:create: &amp;lt;ConnectedAppName&amp;gt;:
              Installing an app (&amp;lt;ConnectedAppName&amp;gt;) that has been deleted.
            &lt;/blockquote&gt;
            &lt;p&gt;
              Trust me we&apos;ve been there, you will need to create a new package first,
              then create a new package version! To validate this before starting,
              create a new dummy dx project and create a new package, add the same
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-Development-with-Salesforce-CLI&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
                &gt;connected app&lt;/a
              &gt;
              you already created, and finally create your package version and let me
              know if that works with you!
            &lt;/p&gt;
            &lt;h2 id=&quot;section_7&quot;&gt;
              &lt;strong&gt;&lt;u&gt;Rest of Salesforce Components&lt;/u&gt;&lt;/strong&gt;
            &lt;/h2&gt;
            &lt;p&gt;
              Finally you need to go through all your fields, objects, triggers,
              permission sets, custom metadata...etc and add &amp;lt;Namespace&amp;gt;__
            &lt;/p&gt;
            &lt;h2 id=&quot;section_7&quot;&gt;
              &lt;strong
                &gt;&lt;u&gt;Installation of Managed Package Challenges and Tricks&lt;/u&gt;&lt;/strong
              &gt;
            &lt;/h2&gt;
            &lt;p&gt;
              If you found a similar error resulting in failure of installation your
              package in any environment, instead of spending hours and days trying to
              figure it out, just remove those standard Quick Actions from your layout,
              and then re-add them once the package is installed successfully.
            &lt;/p&gt;
            &lt;div&gt;
              &lt;div&gt;
                &lt;pre
                  spellcheck=&quot;false&quot;
                &gt;(ObjectName-Layout) In field: QuickAction - no QuickAction named NewCase found&lt;br&gt;(ObjectName-Layout) In field: QuickAction - no QuickAction named NewTask found&lt;br&gt;(ObjectName-Layout) In field: QuickAction - no QuickAction named LogACall found&lt;br&gt;Component [flexipage:filterListCard] attribute [filterName]: Error retrieving filter [My_ChatterGroups] for entity [CollaborationGroup]&lt;/pre&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;p&gt;
              Another one to think about, if your source code is dependant on Salesforce
              built-in Components, then ensure to give access to those components as
              part of your pre-deployment steps before installation of the package
              version. Like in here, enabling of omni channel.
            &lt;/p&gt;
            &lt;div&gt;
              &lt;div&gt;
                &lt;pre spellcheck=&quot;false&quot;&gt;
Your org doesn&apos;t have access to component runtime_service_omnichannel:omniWidget.&lt;/pre
                &gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;p&gt;
              Finally, if you have standardValueSets in the your source code and your
              package version metadata is dependant on it, then ensure to deploy those
              value sets as pre-deployment step before installation of package version.
              Like in here, deploying custom status pick-list value named TestValue.
            &lt;/p&gt;
            &lt;div&gt;
              &lt;div&gt;
                &lt;pre spellcheck=&quot;false&quot;&gt;
Component [lst:dynamicRelatedList] attribute [adminFilters]: TestValue isn&apos;t a valid picklist value.&lt;/pre
                &gt;
              &lt;/div&gt;
            &lt;/div&gt;
            &lt;p&gt;
              You can reference
              &lt;a
                href=&quot;https://developer.salesforce.com/docs/success/metadata-coverage-report/references/coverage-report/metadata-coverage-report.html&quot;
                target=&quot;_blank&quot;
                rel=&quot;noopener&quot;
              &gt;
                Metadata Coverage Documentation
              &lt;/a&gt;
              to know which components is packageable!
            &lt;/p&gt;
            &lt;h2&gt;FAQ&lt;/h2&gt;
            &lt;p&gt;
              &lt;strong&gt;Why can&apos;t another package call my public Apex method?&lt;/strong&gt;
            &lt;/p&gt;
            &lt;p&gt;
              In Apex, public means visible only inside the same package. To reach a
              method from another package, declare it global, or use public with
              @NamespaceAccessible when the packages share a namespace.
            &lt;/p&gt;
            &lt;p&gt;&lt;strong&gt;What does @NamespaceAccessible do in a 2GP package?&lt;/strong&gt;&lt;/p&gt;
            &lt;p&gt;
              It lets other second-generation packages that share your namespace call
              public Apex. In packages without a namespace, public code is already
              treated as @NamespaceAccessible.
            &lt;/p&gt;
            &lt;p&gt;&lt;strong&gt;Why does my Apex class throw a JSONException?&lt;/strong&gt;&lt;/p&gt;
            &lt;p&gt;
              A class is only serializable or deserializable if its @JsonAccess
              annotation allows it in that context. Add the annotation to the class and
              to every inner class it contains.
            &lt;/p&gt;
            &lt;p&gt;&lt;strong&gt;How do I call a named credential inside a package?&lt;/strong&gt;&lt;/p&gt;
            &lt;p&gt;
              Prefix the API name with your namespace:
              callout:Namespace__NamedCredentialApiName. The plain
              callout:NamedCredentialApiName form only applies to credentials that are
              not part of the package.
            &lt;/p&gt;
            &lt;p&gt;&lt;strong&gt;Why does package creation fail on a connected app?&lt;/strong&gt;&lt;/p&gt;
            &lt;p&gt;
              Version creation can fail with an error about installing an app that has
              been deleted. Create a new package, add the same connected app, then
              create the package version again.
            &lt;/p&gt;
            &lt;h2 id=&quot;section_7&quot;&gt;
              &lt;strong
                &gt;&lt;u
                  &gt;We&apos;re glad to share any helpful information and would recommend you
                  knowing more about our impact to the release cycle in Salesforce&lt;/u
                &gt;&lt;/strong
              &gt;
            &lt;/h2&gt;
            &lt;p&gt;
              &lt;a href=&quot;#contact&quot; rel=&quot;noopener&quot;&gt;&lt;u&gt;Schedule a demo&lt;/u&gt;&lt;/a&gt; to find out
              more about how
              &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;
              can supercharge your
              &lt;a
                href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
                rel=&quot;noopener&quot;
                &gt;Salesforce DevOps&lt;/a
              &gt;
              Strategy today!
              &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;
              by Tekunda offers some excellent tools to help your DevOps teams,
              including built-in version control, continuous deployment and release
              systems, merge tools, and tons of different testing tools.
            &lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/section&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[The 5 Pillars of Salesforce DevOps]]></title>
            <description><![CDATA[The process of combining the principles of Agile, continuous integration, and continuous delivery to streamline the delivery of high-quality applications.]]></description>
            <link>https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/The-5-Pillars-of-Salesforce-DevOps</guid>
            <dc:creator><![CDATA[Tekunda Team]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:41 GMT</pubDate>
            <content:encoded>&lt;p&gt;
  &lt;a
    href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Salesforce DevOps&lt;/a
  &gt;
  is a software development process that combines the principles of Agile, continuous
  integration, and continuous delivery to streamline the delivery of high-quality
  applications. In this article, we will explore the 5 pillars of a successful
  &lt;a
    href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
    &gt;Salesforce DevOps&lt;/a
  &gt;
  process and how to implement them in your organisation.
&lt;/p&gt;
&lt;p&gt;
  DevOps is crucial to the development life cycle, it allows your team to move faster
  and safer while empowering them to recover from a bad release or data loss quickly and
  effectively.
  &lt;a
    href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Salesforce DevOps&lt;/a
  &gt;
  is unique in that it requires knowledge of the SFDC domain and sfdx tools besides the
  regular DevOps knowledge, which makes finding the right tool or creating one from
  scratch, quite the challenge. That&apos;s why we created
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt;, it
  increases your agility, shortens release cycles, and reduces deployments to minutes;
  empowering you to stay ahead of your competition!
&lt;/p&gt;
&lt;p&gt;
  &lt;a href=&quot;#contact&quot;&gt;Schedule a demo&lt;/a&gt; to find out more about how
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt; can
  supercharge your Salesforce DevOps Strategy today! Tekunda offers some excellent tools
  to help your DevOps teams, including built-in
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;version control&lt;/a
  &gt;, continuous deployment systems, merge tools, and tons of different testing tools.
&lt;/p&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/the-5-pillars-of-salesforce-devops-the-5-pillars-of-salesforce-devops-body-6.svg&quot;
    alt=&quot;Devops Icon 1&quot;
  /&gt;
&lt;/p&gt;
&lt;h2 id=&quot;section_1&quot;&gt;What is Salesforce DevOps?&lt;/h2&gt;
&lt;p&gt;
  DevOps is the combination of practices, and tools that increases an organisation&apos;s
  ability to deliver applications and services at high velocity. Evolving and improving
  products at a faster pace than organisations using manual software development and
  infrastructure management processes.
&lt;/p&gt;
&lt;p&gt;
  DevOps optimises your team collaboration as you build and deploy Salesforce apps,
  integrate with
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;version control&lt;/a
  &gt;, automate workflows, and release with confidence using CI tools and the Metadata
  API. We will highlight how Tekunda uncomplicates and streamlines these practices.
&lt;/p&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/the-5-pillars-of-salesforce-devops-the-5-pillars-of-salesforce-devops-body.png?width=82&amp;amp;height=82&quot;
    alt=&quot;Devops Icon 2&quot;
  /&gt;
&lt;/p&gt;
&lt;h2 id=&quot;section_2&quot;&gt;How is Salesforce DevOps different?&lt;/h2&gt;
&lt;p&gt;
  Salesforce developers can choose from wide variety of environments to work in; scratch
  orgs, developer orgs, sandboxes, partial and full copy sandboxes, and of course
  production where all your important customer data lives.
&lt;/p&gt;
&lt;p&gt;
  You also have the choice between multiple ways to package a release depending upon the
  project&apos;s needs and its target audience. You could use changesets, managed packages,
  unmanaged packages, unlocked packages, metadata deployment, or Salesforce DX to load a
  new application into an organisation.
&lt;/p&gt;
&lt;p&gt;
  These are just some of the ways that approaching DevOps from a Salesforce perspective
  can differ from DevOps practices with other programs. If all these different methods
  of managing and deploying your applications seems a little hectic, check out
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt; and
  eliminate that operational headache immediately!
&lt;/p&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/the-5-pillars-of-salesforce-devops-the-5-pillars-of-salesforce-devops-body.svg&quot;
    alt=&quot;Devops Icon 3&quot;
  /&gt;
&lt;/p&gt;
&lt;h2 id=&quot;section_3&quot;&gt;Why is DevOps Important?&lt;/h2&gt;
&lt;p&gt;
  It gives you the most important edge in technology,&amp;nbsp;&lt;strong&gt;agility&lt;/strong&gt;! It
  allows you to source control, build, deploy, release much more faster and manage
  changes more efficiently. It empowers your software team to manage the whole process
  end to end with minimal code effort resulting in a much more simplified development
  process between the team.
&lt;/p&gt;
&lt;p&gt;
  DevOps comes with the great value of eliminating the traditional and manual grunt
  tasks which are complicated and really time consuming. It does so by introducing a lot
  of automated processes like running automation, integration, and unit tests, deploying
  to the right environment without intervention and many more. This results in faster
  releases with lower risks empowering you to achieve your ROI even faster.
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2 id=&quot;section_4&quot;&gt;Pillars of a Successful Salesforce DevOps&lt;/h2&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/the-5-pillars-of-salesforce-devops-the-5-pillars-of-salesforce-devops-body-4.svg&quot;
    alt=&quot;Devops Pillar 1&quot;
  /&gt;
&lt;/p&gt;
&lt;h3 id=&quot;section_4_1&quot;&gt;
  Pillar 1:
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Version Control&lt;/a
  &gt;
&lt;/h3&gt;
&lt;p&gt;
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Version control &lt;/a
  &gt;refers to the tracking of changes and keeping records of previous versions of an
  application&amp;rsquo;s code, metadata, and releases. Developing with
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;version control&lt;/a
  &gt;
  is pivotal in any environment because you need to be able to revert changes at a
  moment&amp;rsquo;s notice. If a new change breaks production due to unforeseen bug(s),
  then you need to be able to restore to your previous stable version of the application
  at a moment&amp;rsquo;s notice minimising operational downtime.
&lt;/p&gt;
&lt;p&gt;
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Version control &lt;/a
  &gt;also enables seamless team collaboration, since oftentimes there is not just one
  member working on an application. When multiple developers make changes to the code,
  any changes need to be separately tracked and accessible and visible to the whole
  group or risk having them clash in overlap. It&amp;rsquo;s for this alone that
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;version control &lt;/a
  &gt;is singularly considered to be the most important component of any DevOps setup.
&lt;/p&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/the-5-pillars-of-salesforce-devops-the-5-pillars-of-salesforce-devops-body-8.svg&quot;
    alt=&quot;Devops Pillar 2&quot;
  /&gt;
&lt;/p&gt;
&lt;h3 id=&quot;section_4_2&quot;&gt;Pillar 2: Release Management&lt;/h3&gt;
&lt;p&gt;
  It&apos;s important to have proper process to handle of your release cycle! Going directly
  from development to production could cost you everything and endless loop of unstable
  software, and that&amp;rsquo;s where release management comes in. Release management
  focuses on handing over the software from the development phase to the go-live phase
  for the users to use. In order to finally go-live, the software undergoes through a
  series of tests to ensure that the software is working as it should be. Release
  management is responsible for providing the needed environments for performing these
  random regression tests allowing you to apply any needed fixes until the rollout
  occurs.
&lt;/p&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/the-5-pillars-of-salesforce-devops-the-5-pillars-of-salesforce-devops-body-2.svg&quot;
    alt=&quot;Devops Pillar 3&quot;
  /&gt;
&lt;/p&gt;
&lt;h3 id=&quot;section_4_3&quot;&gt;
  Pillar&amp;nbsp;3:
  &lt;a
    href=&quot;https://serpent.cloud/resources/Mastering-Salesforce-DevOps%3A-Tools%2C-Examples%2C-and-Best-Practices&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Continuous Integration and Continuous Delivery&lt;/a
  &gt;
&lt;/h3&gt;
&lt;p&gt;
  CI/CD for short falls under the umbrella of release management. From automatically
  running unit tests on newly opened pull requests verifying that everything still works
  as expected, to automating deployment to the right environment when new code is
  merged. CI/CD is the glue that guaranties your whole DevOps flows smoothly from one
  step to the next without wasting developers time, allowing them to do what they do
  best, develop!
&lt;/p&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/the-5-pillars-of-salesforce-devops-the-5-pillars-of-salesforce-devops-body-3.svg&quot;
    alt=&quot;Devops Pillar 4&quot;
  /&gt;
&lt;/p&gt;
&lt;h3 id=&quot;section_4_4&quot;&gt;Pillar 4: Speed&lt;/h3&gt;
&lt;p&gt;
  Do you prefer to work fast or precisely? What if both can be achieved together while
  lowering the risks! DevOps strategy allows you to mitigate the risks of making a fault
  change spread out across different organisations instantly and affecting the end-user.
  In addition it gives the option to always have a rollback strategy of your development
  changes while having a
  &lt;a
    href=&quot;https://serpent.cloud/blog/Scaling-Pains%3A-DevOps-and-Data-Management-for-Growing-Salesforce-Teams&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;proper backup.&lt;/a
  &gt;
&lt;/p&gt;
&lt;p&gt;
  DevOps ensure that engineering teams are implementing their work without the fear of
  dependability and breaking stuff, definitely nobody wants to redo work, and by
  implementing smart DevOps solutions you eliminate that factor, and continuously focus
  on your next big releases to your clients.
&lt;/p&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/the-5-pillars-of-salesforce-devops-the-5-pillars-of-salesforce-devops-body-5.svg&quot;
    alt=&quot;Devops Pillar 5&quot;
  /&gt;
&lt;/p&gt;
&lt;h3 id=&quot;section_4_5&quot;&gt;Pillar 5: Collaboration&lt;/h3&gt;
&lt;p&gt;
  With
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;version control&lt;/a
  &gt;, multiple team members can work on the same application simultaneously eliminating
  the factor of dependencies.
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;Version control&lt;/a
  &gt;
  facilitates coordination, sharing, and collaboration across the entire software
  development team by enabling teams to work in distributed and asynchronous
  environments. It allows you to manage changes and maintain different versions of your
  code and artifacts, and resolve merge conflicts and related anomalies which will speed
  up your Salesforce Apps time to production.
&lt;/p&gt;
&lt;p&gt;
  &lt;img
    src=&quot;https://serpent.cloud/content-assets/blogs/serpent/body/the-5-pillars-of-salesforce-devops-the-5-pillars-of-salesforce-devops-body-7.svg&quot;
    alt=&quot;Devops Pillar 6&quot;
  /&gt;
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;What are the 5 pillars of Salesforce DevOps?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Version control, release management, continuous integration and continuous delivery,
  speed, and collaboration. They reinforce each other: version control makes a change
  reversible, and release management gives CI/CD somewhere safe to deploy.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Which pillar should a Salesforce team implement first?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Version control. Without a tracked history of your code and metadata you cannot review
  a change, restore a previous stable version, or let two people work on the same
  application without clashing. Every other pillar builds on it.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How is Salesforce DevOps different from regular DevOps?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Salesforce layers its own environment and packaging models on top of standard
  practice. Teams choose between scratch orgs, developer orgs, sandboxes and production,
  and between change sets, managed, unmanaged and unlocked packages or metadata
  deployment.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Is CI/CD the same as release management?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  No. Release management is the wider process of moving a change from development to
  go-live, including the environments it is tested in. CI/CD is the automation inside
  that process, running tests on new pull requests and deploying merged code.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What does release management cover in Salesforce DevOps?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  It covers the handover from development to live use: providing the environments a
  change is tested in, running regression tests, and applying fixes before rollout. It
  exists so nothing goes straight from a developer&apos;s org into production.
&lt;/p&gt;
&lt;h2 id=&quot;section_5&quot;&gt;
  Your All-in-one DevOps Solution. Powerful. Secure. Fast. Easy to use.
&lt;/h2&gt;
&lt;p&gt;
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt; was built
  specifically for the Salesforce development and release cycles. It allows users to
  seamlessly orchestrate changes across their development ecosystem, eliminating pain
  points experienced when using traditional dev tools.
  &lt;a href=&quot;https://serpent.cloud&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Serpent&lt;/a&gt; handles the
  full development-release lifecycle including running unit tests, merging components,
  &lt;a
    href=&quot;https://serpent.cloud/resources/Managing-Salesforce-Metadata%3A-Tips-for-Developers&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;version control,&lt;/a
  &gt;
  continuous integrations, continuous deployments, code analysis,
  &lt;a
    href=&quot;https://serpent.cloud/blog/Scaling-Pains%3A-DevOps-and-Data-Management-for-Growing-Salesforce-Teams&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;roll-back and backups&lt;/a
  &gt;.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[From Change Sets to Source Control: The Shift You Can’t Ignore Anymore]]></title>
            <description><![CDATA[Org-dependent unlocked packages let org SF teams start using Git and versioning without refactoring everything. Start small and modernise safely.]]></description>
            <link>https://serpent.cloud/resources/From-Change-Sets-to-Source-Control%3A-The-Shift-You-Can%E2%80%99t-Ignore-Anymore</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/From-Change-Sets-to-Source-Control%3A-The-Shift-You-Can%E2%80%99t-Ignore-Anymore</guid>
            <dc:creator><![CDATA[Andrew Hanna]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:39 GMT</pubDate>
            <content:encoded>&lt;p data-start=&quot;0&quot; data-end=&quot;376&quot;&gt;
  When Salesforce first introduced
  &lt;strong data-start=&quot;33&quot; data-end=&quot;46&quot;&gt;packaging&lt;/strong&gt;, it wasn&amp;rsquo;t seen as a
  development strategy. It was a way to bundle components for distribution, primarily
  for ISVs building apps for AppExchange.
&lt;/p&gt;
&lt;p data-start=&quot;0&quot; data-end=&quot;376&quot;&gt;
  Most internal teams still relied on change sets, manual deployments, and metadata
  migration tools. The concept of&amp;nbsp;&lt;strong data-start=&quot;318&quot; data-end=&quot;352&quot;
    &gt;modular, versioned development&lt;/strong
  &gt;
  was far from reality.
&lt;/p&gt;
&lt;p data-start=&quot;378&quot; data-end=&quot;766&quot;&gt;
  Over time, however, the
  &lt;strong data-start=&quot;402&quot; data-end=&quot;447&quot;
    &gt;Salesforce ecosystem changed dramatically&lt;/strong
  &gt;. What began as an
  &lt;strong data-start=&quot;466&quot; data-end=&quot;513&quot;
    &gt;optional feature for a small subset of ISVs&lt;/strong
  &gt;
  has evolved into a central pillar of how modern Salesforce engineering teams build,
  deploy, and maintain systems.
&lt;/p&gt;
&lt;p data-start=&quot;378&quot; data-end=&quot;766&quot;&gt;
  Understanding that journey explains why&amp;nbsp;&lt;strong data-start=&quot;672&quot; data-end=&quot;763&quot;
    &gt;packaging is no longer just &amp;ldquo;nice to have&amp;rdquo;&lt;/strong
  &gt;&lt;strong&gt;;&amp;nbsp;&lt;/strong
  &gt;&lt;strong data-start=&quot;672&quot; data-end=&quot;763&quot;
    &gt;it&amp;rsquo;s the foundation of scalable development&lt;/strong
  &gt;.
&lt;/p&gt;
&lt;h2 data-start=&quot;768&quot; data-end=&quot;821&quot;&gt;
  &lt;strong&gt;The early days: 1st generation managed packages&lt;/strong&gt;
&lt;/h2&gt;
&lt;p data-start=&quot;823&quot; data-end=&quot;1204&quot;&gt;
  Before &lt;strong data-start=&quot;830&quot; data-end=&quot;847&quot;&gt;Salesforce DX&lt;/strong&gt; existed,
  development happened directly inside orgs. Teams built features in
  &lt;strong data-start=&quot;924&quot; data-end=&quot;937&quot;&gt;sandboxes&lt;/strong&gt;, used
  &lt;strong data-start=&quot;944&quot; data-end=&quot;974&quot;&gt;change sets or ANT scripts&lt;/strong&gt; to deploy
  metadata, and often had
  &lt;strong data-start=&quot;1009&quot; data-end=&quot;1038&quot;&gt;no single source of truth&lt;/strong&gt;.
  &lt;strong data-start=&quot;1040&quot; data-end=&quot;1083&quot;
    &gt;First-generation managed packages (1GP)&lt;/strong
  &gt;
  allowed ISVs to distribute applications and control their intellectual property, but
  they came with major constraints.
&lt;/p&gt;
&lt;p data-start=&quot;1206&quot; data-end=&quot;1635&quot;&gt;
  Package creation and versioning were tied to the packaging org itself. Code lived in
  the org, and developers had to manually manage dependencies. There was no real
  connection to Git or CI/CD, which meant collaboration was slow and error-prone.
&lt;/p&gt;
&lt;p data-start=&quot;1206&quot; data-end=&quot;1635&quot;&gt;
  For most internal Salesforce teams, packaging felt like overkill. They stuck to direct
  deployments because that was faster, at least until systems grew large enough that it
  wasn&amp;rsquo;t.
&lt;/p&gt;
&lt;h2 data-start=&quot;1637&quot; data-end=&quot;1683&quot;&gt;
  &lt;strong data-start=&quot;1637&quot; data-end=&quot;1681&quot;
    &gt;The shift: Salesforce DX and the CLI era&lt;/strong
  &gt;
&lt;/h2&gt;
&lt;p data-start=&quot;1685&quot; data-end=&quot;1955&quot;&gt;
  The turning point came with
  &lt;strong data-start=&quot;1713&quot; data-end=&quot;1737&quot;&gt;Salesforce DX (SFDX)&lt;/strong&gt; and the
  &lt;strong data-start=&quot;1746&quot; data-end=&quot;1764&quot;&gt;Salesforce CLI&lt;/strong&gt;. It introduced a
  &lt;strong data-start=&quot;1782&quot; data-end=&quot;1810&quot;&gt;developer-first approach&lt;/strong&gt;:
  &lt;strong data-start=&quot;1812&quot; data-end=&quot;1885&quot;
    &gt;source-driven development, scratch orgs, and external version control&lt;/strong
  &gt;. For the first time, the
  &lt;strong data-start=&quot;1911&quot; data-end=&quot;1952&quot;
    &gt;org stopped being the source of truth&lt;/strong
  &gt;.
&lt;/p&gt;
&lt;p data-start=&quot;1957&quot; data-end=&quot;2321&quot;&gt;
  This shift redefined how packages were created and maintained.
  &lt;strong data-start=&quot;2020&quot; data-end=&quot;2121&quot;
    &gt;Metadata could be extracted, stored in Git, and deployed consistently through
    automated pipelines&lt;/strong
  &gt;. Salesforce introduced the concept of
  &lt;strong data-start=&quot;2160&quot; data-end=&quot;2181&quot;&gt;unlocked packages&lt;/strong&gt; for customers and
  partners, designed to
  &lt;strong data-start=&quot;2222&quot; data-end=&quot;2286&quot;
    &gt;break large monolithic orgs into smaller, modular components&lt;/strong
  &gt;
  that could evolve independently.
&lt;/p&gt;
&lt;h2 data-start=&quot;768&quot; data-end=&quot;821&quot;&gt;
  &lt;strong data-start=&quot;2323&quot; data-end=&quot;2393&quot;
    &gt;Unlocked packages were followed by org-dependent unlocked packages&lt;/strong
  &gt;
&lt;/h2&gt;
&lt;p data-start=&quot;2323&quot; data-end=&quot;2517&quot;&gt;
  which helped teams transition gradually from traditional org development without
  needing to refactor everything at once.
&lt;/p&gt;
&lt;p data-start=&quot;2519&quot; data-end=&quot;2807&quot;&gt;
  If you&amp;rsquo;ve been building directly in orgs your whole Salesforce career, this is
  where the shift starts to make sense. You don&amp;rsquo;t need to move everything
  overnight. You can begin small,&amp;nbsp;&lt;strong data-start=&quot;2702&quot; data-end=&quot;2763&quot;
    &gt;package a single feature, a module, or a business process&lt;/strong
  &gt;, and start tracking it in source control.
&lt;/p&gt;
&lt;p data-start=&quot;2809&quot; data-end=&quot;3069&quot;&gt;
  Have you ever wished you could roll back a change without losing hours of work? Or
  &lt;strong data-start=&quot;2896&quot; data-end=&quot;2941&quot;
    &gt;see exactly what changed between releases&lt;/strong
  &gt;? Or
  &lt;strong data-start=&quot;2946&quot; data-end=&quot;3014&quot;
    &gt;deploy with confidence knowing every dependency is accounted for&lt;/strong
  &gt;? That&amp;rsquo;s what org-dependent unlocked packages enable.
&lt;/p&gt;
&lt;p data-start=&quot;3071&quot; data-end=&quot;3327&quot;&gt;
  They let you adopt
  &lt;strong data-start=&quot;3090&quot; data-end=&quot;3146&quot;
    &gt;versioning, modular development, and CI/CD practices&lt;/strong
  &gt;
  without breaking your existing structure.
  &lt;strong data-start=&quot;3189&quot; data-end=&quot;3325&quot;
    &gt;No massive refactor. No full metadata migration. &lt;/strong
  &gt;Just a practical path&lt;strong data-start=&quot;3189&quot; data-end=&quot;3325&quot;&gt;
    from org-based building to modern, source-driven development.&lt;/strong
  &gt;
&lt;/p&gt;
&lt;p data-start=&quot;3329&quot; data-end=&quot;3503&quot;&gt;
  These steps marked a clear direction:
  &lt;strong data-start=&quot;3367&quot; data-end=&quot;3501&quot;
    &gt;Salesforce wanted every team, not just ISVs, to move toward modular,
    source-controlled delivery at a pace that fits their reality.&lt;/strong
  &gt;
&lt;/p&gt;
&lt;h2 data-start=&quot;3505&quot; data-end=&quot;3575&quot;&gt;
  &lt;strong data-start=&quot;3505&quot; data-end=&quot;3573&quot;
    &gt;Second-Generation Managed Packages: built for modern development&lt;/strong
  &gt;
&lt;/h2&gt;
&lt;p data-start=&quot;3577&quot; data-end=&quot;3876&quot;&gt;
  The introduction of
  &lt;strong data-start=&quot;3597&quot; data-end=&quot;3641&quot;
    &gt;second-generation managed packages (2GP)&lt;/strong
  &gt;
  solidified this evolution. Instead of building and managing everything inside a single
  packaging org, developers could now
  &lt;strong data-start=&quot;3765&quot; data-end=&quot;3873&quot;
    &gt;create packages directly from their local source, version them through Git, and
    release them via the CLI&lt;/strong
  &gt;.
&lt;/p&gt;
&lt;p data-start=&quot;3878&quot; data-end=&quot;4163&quot;&gt;
  This was a &lt;strong data-start=&quot;3889&quot; data-end=&quot;3905&quot;&gt;major change&lt;/strong&gt;. It made
  packaging
  &lt;strong data-start=&quot;3925&quot; data-end=&quot;4009&quot;
    &gt;compatible with CI/CD tools, automated testing, and modern development
    practices&lt;/strong
  &gt;. 2GP also
  &lt;strong data-start=&quot;4020&quot; data-end=&quot;4088&quot;
    &gt;improved dependency handling, namespace management, and security&lt;/strong
  &gt;
  while aligning closely with how most SaaS platforms now manage releases.
&lt;/p&gt;
&lt;p data-start=&quot;4165&quot; data-end=&quot;4526&quot;&gt;
  Today,
  &lt;strong data-start=&quot;4172&quot; data-end=&quot;4236&quot;
    &gt;second-generation packaging is the default path for new ISVs&lt;/strong
  &gt;
  and increasingly for
  &lt;strong data-start=&quot;4258&quot; data-end=&quot;4332&quot;
    &gt;enterprise teams who want maintainable, scalable development workflows&lt;/strong
  &gt;.
  &lt;strong data-start=&quot;4334&quot; data-end=&quot;4394&quot;
    &gt;Salesforce continues to invest in improving this tooling,&lt;/strong
  &gt;
  from the &lt;strong data-start=&quot;4404&quot; data-end=&quot;4420&quot;&gt;DevHub model&lt;/strong&gt; and
  &lt;strong data-start=&quot;4425&quot; data-end=&quot;4441&quot;&gt;scratch orgs&lt;/strong&gt; to the
  &lt;strong data-start=&quot;4449&quot; data-end=&quot;4476&quot;&gt;DevOps Center interface&lt;/strong&gt; that
  abstracts much of the CLI work for admins.
&lt;/p&gt;
&lt;h2 data-start=&quot;4528&quot; data-end=&quot;4560&quot;&gt;From optional to essential&lt;/h2&gt;
&lt;p data-start=&quot;4562&quot; data-end=&quot;4905&quot;&gt;
  For years,
  &lt;strong data-start=&quot;4573&quot; data-end=&quot;4610&quot;&gt;packaging was treated as optional&lt;/strong&gt;,
  something you&amp;rsquo;d only adopt once your org reached a certain size or complexity.
  That view is quickly becoming outdated. The reality is that
  &lt;strong data-start=&quot;4751&quot; data-end=&quot;4776&quot;&gt;every Salesforce team&lt;/strong&gt;, whether
  building for internal use or commercial distribution,
  &lt;strong data-start=&quot;4840&quot; data-end=&quot;4902&quot;
    &gt;benefits from having source control and versioned packages&lt;/strong
  &gt;.
&lt;/p&gt;
&lt;p data-start=&quot;4907&quot; data-end=&quot;5323&quot;&gt;
  The advantages go beyond deployment speed.
  &lt;strong data-start=&quot;4950&quot; data-end=&quot;5040&quot;
    &gt;Source-driven development ensures reproducibility, easier auditing, and safer
    releases&lt;/strong
  &gt;. It eliminates the
  &lt;strong data-start=&quot;5060&quot; data-end=&quot;5107&quot;
    &gt;&amp;ldquo;works in sandbox but breaks in production&amp;rdquo;&lt;/strong
  &gt;
  problem by enforcing
  &lt;strong data-start=&quot;5129&quot; data-end=&quot;5164&quot;&gt;consistent metadata definitions&lt;/strong&gt;
  across environments. It also
  &lt;strong data-start=&quot;5194&quot; data-end=&quot;5226&quot;&gt;reduces maintenance overhead&lt;/strong&gt; by
  letting teams manage upgrades and dependencies through versions instead of manual
  patching.
&lt;/p&gt;
&lt;p data-start=&quot;5325&quot; data-end=&quot;5459&quot;&gt;
  In short,
  &lt;strong data-start=&quot;5335&quot; data-end=&quot;5457&quot;
    &gt;packaging has matured from an AppExchange distribution mechanism into the backbone
    of sustainable Salesforce delivery.&lt;/strong
  &gt;
&lt;/p&gt;
&lt;h2 data-start=&quot;5461&quot; data-end=&quot;5498&quot;&gt;
  &lt;strong data-start=&quot;5461&quot; data-end=&quot;5496&quot;&gt;What teams should be asking now&lt;/strong&gt;
&lt;/h2&gt;
&lt;p data-start=&quot;5500&quot; data-end=&quot;5620&quot;&gt;
  The conversation is no longer
  &lt;strong data-start=&quot;5530&quot; data-end=&quot;5618&quot;
    &gt;&amp;ldquo;Should we use packages?&amp;rdquo; but rather &amp;ldquo; How do we start, and how
    fast can we migrate?&amp;rdquo;&lt;/strong
  &gt;
&lt;/p&gt;
&lt;p data-start=&quot;5622&quot; data-end=&quot;5655&quot;&gt;Some key questions to consider:&lt;/p&gt;
&lt;ul data-start=&quot;5656&quot; data-end=&quot;6034&quot;&gt;
  &lt;li data-start=&quot;5656&quot; data-end=&quot;5733&quot;&gt;
    &lt;p data-start=&quot;5658&quot; data-end=&quot;5733&quot;&gt;
      Is your team still
      &lt;strong data-start=&quot;5677&quot; data-end=&quot;5699&quot;&gt;deploying manually&lt;/strong&gt; through
      change sets or scripts?
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li data-start=&quot;5734&quot; data-end=&quot;5799&quot;&gt;
    &lt;p data-start=&quot;5736&quot; data-end=&quot;5799&quot;&gt;
      Do you have a
      &lt;strong data-start=&quot;5750&quot; data-end=&quot;5778&quot;&gt;reliable source of truth&lt;/strong&gt; for
      your metadata?
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;
      How quickly can you &lt;strong&gt;reproduce a full environment&lt;/strong&gt; from the source?
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li data-start=&quot;5870&quot; data-end=&quot;5950&quot;&gt;
    &lt;p data-start=&quot;5872&quot; data-end=&quot;5950&quot;&gt;
      Are your dependencies and integrations
      &lt;strong data-start=&quot;5911&quot; data-end=&quot;5947&quot;&gt;tracked, versioned, and testable&lt;/strong
      &gt;?
    &lt;/p&gt;
  &lt;/li&gt;
  &lt;li data-start=&quot;5951&quot; data-end=&quot;6034&quot;&gt;
    &lt;p data-start=&quot;5953&quot; data-end=&quot;6034&quot;&gt;
      Can your developers
      &lt;strong data-start=&quot;5973&quot; data-end=&quot;6031&quot;
        &gt;work in parallel without overwriting each other&amp;rsquo;s work&lt;/strong
      &gt;?
    &lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p data-start=&quot;6036&quot; data-end=&quot;6254&quot;&gt;
  If your answer to any of these is &amp;ldquo;not yet,&amp;rdquo; it&amp;rsquo;s time to think
  about modernising.
  &lt;strong data-start=&quot;6119&quot; data-end=&quot;6165&quot;
    &gt;Migration doesn&amp;rsquo;t have to happen overnight&lt;/strong
  &gt;, but every incremental move toward source-driven, package-based delivery pays
  off.&lt;br /&gt;&lt;strong data-start=&quot;6171&quot; data-end=&quot;6252&quot;&gt;&lt;br /&gt;&lt;/strong&gt;Here is everything
  you need to know about the shift&apos;s importance &amp;amp; implementation. &quot;&lt;a
    href=&quot;/resources/The-Secrets-of-Salesforce-Second-Generation-Managed-Package&quot;
    &gt;The Secrets of Salesforce Second Generation Managed Package&lt;/a
  &gt;&quot;
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;What is the difference between 1GP and 2GP packages?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  With first-generation packages, creation and versioning are tied to a packaging org
  and the code lives inside it. Second-generation packages are built from your local
  source, versioned in Git and released through the CLI.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What are org-dependent unlocked packages for?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  They let you package part of an existing org without refactoring everything first,
  because the package can rely on metadata already present in the target org. That makes
  them a practical stepping stone out of org-based development.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do you need packaging if you are not an ISV?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Yes. Source-driven development gives reproducibility, easier auditing and safer
  releases, and it removes the &quot;works in sandbox but breaks in production&quot; gap by
  keeping metadata definitions consistent across environments.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do you start moving from change sets to source control?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Start small rather than all at once. Package a single feature, module or business
  process, track it in source control, and extend from there as the team gets
  comfortable.
&lt;/p&gt;
&lt;h2 data-start=&quot;6036&quot; data-end=&quot;6254&quot;&gt;
  &lt;strong data-start=&quot;6171&quot; data-end=&quot;6252&quot;&gt;&lt;br /&gt;&lt;/strong
  &gt;&lt;strong data-start=&quot;6256&quot; data-end=&quot;6291&quot;&gt;Where tools like Serpent fit in&lt;/strong&gt;
&lt;/h2&gt;
&lt;p data-start=&quot;6295&quot; data-end=&quot;6692&quot;&gt;
  The technical foundation is now solid, but setting up CI/CD, version control, and
  packaging workflows still takes time. This is where solutions like
  &lt;strong data-start=&quot;6448&quot; data-end=&quot;6470&quot;&gt;Serpent by Tekunda&lt;/strong&gt; can make the
  transition easier.
  &lt;strong data-start=&quot;6503&quot; data-end=&quot;6544&quot;
    &gt;Serpent streamlines Salesforce DevOps&lt;/strong
  &gt;
  by automating
  &lt;strong data-start=&quot;6559&quot; data-end=&quot;6618&quot;
    &gt;packaging, version management, and deployment processes&lt;/strong
  &gt;
  through a simple interface built around
  &lt;strong data-start=&quot;6659&quot; data-end=&quot;6689&quot;&gt;Git and the Salesforce CLI&lt;/strong&gt;.
&lt;/p&gt;
&lt;p data-start=&quot;6694&quot; data-end=&quot;7020&quot;&gt;
  With
  &lt;strong data-start=&quot;6699&quot; data-end=&quot;6777&quot;
    &gt;guided onboarding, automated release pipelines, and native Git integration&lt;/strong
  &gt;, Serpent helps teams move from
  &lt;strong data-start=&quot;6809&quot; data-end=&quot;6863&quot;
    &gt;manual org development to fully automated delivery&lt;/strong
  &gt;, without adding unnecessary complexity. For teams considering their next step in
  packaging evolution,
  &lt;strong data-start=&quot;6966&quot; data-end=&quot;7018&quot;
    &gt;it&amp;rsquo;s a fast way to see the benefits in practice.&lt;/strong
  &gt;
  Tools that only mirror org changes into Git cover a narrower slice of the same
  problem; the &lt;a href=&quot;/compare/blue-canvas&quot;&gt;Serpent and Blue Canvas comparison&lt;/a&gt;
  shows where that line falls.
&lt;/p&gt;
&lt;h2 data-start=&quot;7022&quot; data-end=&quot;7040&quot;&gt;
  &lt;strong data-start=&quot;7022&quot; data-end=&quot;7038&quot;&gt;The takeaway&lt;/strong&gt;
&lt;/h2&gt;
&lt;p data-start=&quot;7042&quot; data-end=&quot;7327&quot;&gt;
  &lt;strong data-start=&quot;7042&quot; data-end=&quot;7097&quot;
    &gt;Salesforce package development has come a long way.&lt;/strong
  &gt;
  What started as a
  &lt;strong data-start=&quot;7116&quot; data-end=&quot;7134&quot;&gt;niche ISV tool&lt;/strong&gt; has evolved into a
  &lt;strong data-start=&quot;7154&quot; data-end=&quot;7219&quot;
    &gt;core part of how professional Salesforce engineering is done.&lt;/strong
  &gt;
  The question is no longer whether your team should use packaging,
  &lt;strong data-start=&quot;7286&quot; data-end=&quot;7325&quot;&gt;but how quickly you can embrace it.&lt;/strong&gt;
&lt;/p&gt;
&lt;p data-start=&quot;7329&quot; data-end=&quot;7586&quot; data-is-last-node=&quot;&quot; data-is-only-node=&quot;&quot;&gt;
  &lt;strong data-start=&quot;7329&quot; data-end=&quot;7468&quot;
    &gt;Moving toward source control and modular packages is not just a best
    practice&lt;/strong
  &gt;&lt;strong&gt;; &lt;/strong
  &gt;&lt;strong data-start=&quot;7329&quot; data-end=&quot;7468&quot;
    &gt;it&amp;rsquo;s the direction Salesforce itself is building toward.&lt;/strong
  &gt;
  The sooner you align, the faster your releases, the cleaner your architecture, and the
  smoother your scaling will be.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[From Change Sets to Continuous Delivery: SF DevOps Playbook]]></title>
            <description><![CDATA[Learn how modern Salesforce teams move from change sets to CI/CD without complexity. The practical DevOps playbook powered by Serpent.]]></description>
            <link>https://serpent.cloud/resources/From-Change-Sets-to-Continuous-Delivery%3A-SF-DevOps-Playbook</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/From-Change-Sets-to-Continuous-Delivery%3A-SF-DevOps-Playbook</guid>
            <dc:creator><![CDATA[Serpent Team]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:38 GMT</pubDate>
            <content:encoded>&lt;h2 data-start=&quot;477&quot; data-end=&quot;535&quot;&gt;
  &lt;strong data-start=&quot;481&quot; data-end=&quot;533&quot;
    &gt;Why Change Sets and Legacy Tools Hold Teams Back&lt;/strong
  &gt;
&lt;/h2&gt;
&lt;p data-start=&quot;536&quot; data-end=&quot;732&quot;&gt;Change sets were never meant for scale.&lt;/p&gt;
&lt;p data-start=&quot;536&quot; data-end=&quot;732&quot;&gt;
  They served as a manual bridge for small orgs until teams grew, features multiplied,
  and parallel workstreams made &amp;ldquo;click-to-deploy&amp;rdquo; impossible to manage.
&lt;/p&gt;
&lt;p data-start=&quot;734&quot; data-end=&quot;1012&quot;&gt;
  Today, even DevOps platforms that replaced change sets often fall into the same trap:
  too many steps, too much configuration, and too little context.
&lt;/p&gt;
&lt;p data-start=&quot;734&quot; data-end=&quot;1012&quot;&gt;
  Instead of enabling speed, they create overhead - forcing teams to juggle scripts,
  pipelines, and permissions for every release.
&lt;/p&gt;
&lt;p data-start=&quot;1014&quot; data-end=&quot;1147&quot;&gt;
  It&amp;rsquo;s time to move past both extremes.&amp;nbsp;The modern Salesforce DevOps playbook
  is simpler:
  &lt;strong data-start=&quot;1104&quot; data-end=&quot;1147&quot;
    &gt;continuous delivery without complexity.&lt;/strong
  &gt;
&lt;/p&gt;
&lt;p&gt;
  For a wider comparison of tools worth considering, see our
  &lt;a
    href=&quot;/resources/guide-best-salesforce-devops-platforms-and-tools-for-2026&quot;
    target=&quot;_blank&quot;
    rel=&quot;noopener&quot;
    &gt;guide to the best Salesforce DevOps platforms and tools for 2026&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h2&gt;
  &lt;strong data-start=&quot;1157&quot; data-end=&quot;1197&quot;
    &gt;The Evolution of Salesforce Releases&lt;/strong
  &gt;
&lt;/h2&gt;
&lt;div class=&quot;table-wrapper&quot;&gt;
  &lt;table id=&quot;ba08c2e6-5d49-4a5f-9a81-c7147bb426c5&quot; class=&quot;simple-table&quot;&gt;
    &lt;thead class=&quot;simple-table-header&quot;&gt;
      &lt;tr data-start=&quot;1199&quot; data-end=&quot;1255&quot;&gt;
        &lt;th data-start=&quot;1199&quot; data-end=&quot;1211&quot; data-col-size=&quot;sm&quot;&gt;
          &lt;strong data-start=&quot;1201&quot; data-end=&quot;1210&quot;&gt;Stage&lt;/strong&gt;
        &lt;/th&gt;
        &lt;th data-start=&quot;1211&quot; data-end=&quot;1221&quot; data-col-size=&quot;sm&quot;&gt;
          &lt;strong data-start=&quot;1213&quot; data-end=&quot;1220&quot;&gt;Era&lt;/strong&gt;
        &lt;/th&gt;
        &lt;th data-start=&quot;1221&quot; data-end=&quot;1236&quot; data-col-size=&quot;sm&quot;&gt;
          &lt;strong data-start=&quot;1223&quot; data-end=&quot;1235&quot;&gt;Approach&lt;/strong&gt;
        &lt;/th&gt;
        &lt;th data-start=&quot;1236&quot; data-end=&quot;1255&quot; data-col-size=&quot;sm&quot;&gt;
          &lt;strong data-start=&quot;1238&quot; data-end=&quot;1253&quot;&gt;Limitations&lt;/strong&gt;
        &lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody data-start=&quot;1317&quot; data-end=&quot;1627&quot;&gt;
      &lt;tr data-start=&quot;1317&quot; data-end=&quot;1421&quot;&gt;
        &lt;td data-start=&quot;1317&quot; data-end=&quot;1335&quot; data-col-size=&quot;sm&quot;&gt;1️⃣ Change Sets&lt;/td&gt;
        &lt;td data-col-size=&quot;sm&quot; data-start=&quot;1335&quot; data-end=&quot;1348&quot;&gt;Pre-DevOps&lt;/td&gt;
        &lt;td data-col-size=&quot;sm&quot; data-start=&quot;1348&quot; data-end=&quot;1382&quot;&gt;
          Manual selection and deployment
        &lt;/td&gt;
        &lt;td data-col-size=&quot;sm&quot; data-start=&quot;1382&quot; data-end=&quot;1421&quot;&gt;
          Prone to errors, no version control
        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr data-start=&quot;1422&quot; data-end=&quot;1521&quot;&gt;
        &lt;td data-start=&quot;1422&quot; data-end=&quot;1443&quot; data-col-size=&quot;sm&quot;&gt;2️⃣ Scripted CI/CD&lt;/td&gt;
        &lt;td data-col-size=&quot;sm&quot; data-start=&quot;1443&quot; data-end=&quot;1458&quot;&gt;Early DevOps&lt;/td&gt;
        &lt;td data-col-size=&quot;sm&quot; data-start=&quot;1458&quot; data-end=&quot;1490&quot;&gt;
          Pipelines, Git, and CLI tools
        &lt;/td&gt;
        &lt;td data-col-size=&quot;sm&quot; data-start=&quot;1490&quot; data-end=&quot;1521&quot;&gt;
          Requires dedicated engineer
        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr data-start=&quot;1522&quot; data-end=&quot;1627&quot;&gt;
        &lt;td data-start=&quot;1522&quot; data-end=&quot;1550&quot; data-col-size=&quot;sm&quot;&gt;
          3️⃣ Task-Based Automation
        &lt;/td&gt;
        &lt;td data-col-size=&quot;sm&quot; data-start=&quot;1550&quot; data-end=&quot;1559&quot;&gt;Modern&lt;/td&gt;
        &lt;td data-col-size=&quot;sm&quot; data-start=&quot;1559&quot; data-end=&quot;1586&quot;&gt;
          Unified, visual workflow
        &lt;/td&gt;
        &lt;td data-col-size=&quot;sm&quot; data-start=&quot;1586&quot; data-end=&quot;1627&quot;&gt;
          Built for real-world Salesforce teams
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;p data-start=&quot;1629&quot; data-end=&quot;1802&quot;&gt;
  Most teams are stuck between Stage 1 and 2, either spending hours on manual work or
  maintaining complex CI/CD scripts that few people truly understand.&lt;br
    data-start=&quot;1779&quot;
    data-end=&quot;1782&quot;
  /&gt;Stage 3 solves both.
&lt;/p&gt;
&lt;h2&gt;
  &lt;strong data-start=&quot;1812&quot; data-end=&quot;1853&quot;
    &gt;The Modern Salesforce DevOps Playbook&lt;/strong
  &gt;
&lt;/h2&gt;
&lt;p data-start=&quot;1855&quot; data-end=&quot;1906&quot;&gt;
  Here&amp;rsquo;s what the new model looks like, step-by-step.
&lt;/p&gt;
&lt;h3 data-start=&quot;1908&quot; data-end=&quot;1947&quot;&gt;
  &lt;strong data-start=&quot;1912&quot; data-end=&quot;1947&quot;&gt;1. Centralize Tasks and Stories&lt;/strong&gt;
&lt;/h3&gt;
&lt;p data-start=&quot;1948&quot; data-end=&quot;2164&quot;&gt;
  Every change begins as a task tied to a story.&lt;br
    data-start=&quot;1994&quot;
    data-end=&quot;1997&quot;
  /&gt;By connecting work items directly to metadata, you align development and release
  cycles automatically.&lt;br data-start=&quot;2099&quot; data-end=&quot;2102&quot; /&gt;Serpent does this
  natively - no manual mapping, no spreadsheets.
&lt;/p&gt;
&lt;h3 data-start=&quot;2166&quot; data-end=&quot;2209&quot;&gt;
  &lt;strong data-start=&quot;2170&quot; data-end=&quot;2209&quot;&gt;2. Connect Orgs and Version Control&lt;/strong&gt;
&lt;/h3&gt;
&lt;p data-start=&quot;2210&quot; data-end=&quot;2372&quot;&gt;
  Integrate your sandboxes, production org, and Git once.&lt;br
    data-start=&quot;2265&quot;
    data-end=&quot;2268&quot;
  /&gt;Serpent manages GitFlow behind the scenes, linking each task to its own branch and
  keeping orgs in sync.
&lt;/p&gt;
&lt;h3 data-start=&quot;2374&quot; data-end=&quot;2416&quot;&gt;
  &lt;strong data-start=&quot;2378&quot; data-end=&quot;2416&quot;&gt;3. Automate Validation and Testing&lt;/strong&gt;
&lt;/h3&gt;
&lt;p data-start=&quot;2417&quot; data-end=&quot;2563&quot;&gt;
  Every task runs pre-deployment checks before promotion.&lt;br
    data-start=&quot;2472&quot;
    data-end=&quot;2475&quot;
  /&gt;If something breaks, you know exactly which component caused it - and rollback is
  instant.
&lt;/p&gt;
&lt;h3 data-start=&quot;2565&quot; data-end=&quot;2604&quot;&gt;
  &lt;strong data-start=&quot;2569&quot; data-end=&quot;2604&quot;&gt;4. Deploy by Task, Not Metadata&lt;/strong&gt;
&lt;/h3&gt;
&lt;p data-start=&quot;2605&quot; data-end=&quot;2764&quot;&gt;
  Instead of packaging components manually, deploy per task.&lt;br
    data-start=&quot;2663&quot;
    data-end=&quot;2666&quot;
  /&gt;This approach brings context: you&amp;rsquo;re promoting specific work, not guessing
  which XML files matter.
&lt;/p&gt;
&lt;h3 data-start=&quot;2766&quot; data-end=&quot;2812&quot;&gt;
  &lt;strong data-start=&quot;2770&quot; data-end=&quot;2812&quot;
    &gt;5. Enable Rollback and Drift Detection&lt;/strong
  &gt;
&lt;/h3&gt;
&lt;p data-start=&quot;2813&quot; data-end=&quot;2979&quot;&gt;
  Drift happens when orgs evolve separately.&lt;br
    data-start=&quot;2855&quot;
    data-end=&quot;2858&quot;
  /&gt;Serpent automatically compares and alerts you when configurations diverge,
  preventing failed releases before they happen.
&lt;/p&gt;
&lt;h3 data-start=&quot;2981&quot; data-end=&quot;3019&quot;&gt;
  &lt;strong data-start=&quot;2985&quot; data-end=&quot;3019&quot;&gt;6. Measure Deployment Velocity&lt;/strong&gt;
&lt;/h3&gt;
&lt;p data-start=&quot;3020&quot; data-end=&quot;3156&quot;&gt;
  Visibility turns DevOps from art into science.&lt;br
    data-start=&quot;3066&quot;
    data-end=&quot;3069&quot;
  /&gt;Track how long tasks take from commit to deployment, and measure improvement over
  time.
&lt;/p&gt;
&lt;h2 data-start=&quot;3163&quot; data-end=&quot;3193&quot;&gt;
  &lt;strong data-start=&quot;3166&quot; data-end=&quot;3193&quot;&gt;Why This Playbook Works&lt;/strong&gt;
&lt;/h2&gt;
&lt;p data-start=&quot;3195&quot; data-end=&quot;3357&quot;&gt;
  Traditional DevOps focuses on automation
  &lt;em data-start=&quot;3236&quot; data-end=&quot;3243&quot;&gt;steps&lt;/em&gt;; modern DevOps focuses on
  &lt;em data-start=&quot;3270&quot; data-end=&quot;3281&quot;&gt;alignment&lt;/em&gt;.&lt;br
    data-start=&quot;3282&quot;
    data-end=&quot;3285&quot;
  /&gt;By treating tasks, orgs, and branches as one connected system, you gain:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li data-start=&quot;3361&quot; data-end=&quot;3416&quot;&gt;
    Predictable releases that don&amp;rsquo;t depend on one person.
  &lt;/li&gt;
  &lt;li data-start=&quot;3419&quot; data-end=&quot;3449&quot;&gt;Faster recovery from errors.&lt;/li&gt;
  &lt;li data-start=&quot;3452&quot; data-end=&quot;3496&quot;&gt;Complete traceability across environments.&lt;/li&gt;
  &lt;li data-start=&quot;3499&quot; data-end=&quot;3544&quot;&gt;
    Confidence to deploy daily instead of weekly.
  &lt;/li&gt;
&lt;/ul&gt;
&lt;p data-start=&quot;3546&quot; data-end=&quot;3654&quot;&gt;
  Teams that follow this playbook cut release time by up to
  &lt;strong data-start=&quot;3604&quot; data-end=&quot;3610&quot;&gt;6&amp;times;, &lt;/strong&gt;without adding headcount
  or infrastructure.
&lt;/p&gt;
&lt;h2 data-start=&quot;3661&quot; data-end=&quot;3692&quot;&gt;
  &lt;strong data-start=&quot;3664&quot; data-end=&quot;3692&quot;&gt;Real Teams, Real Results&lt;/strong&gt;
&lt;/h2&gt;
&lt;h3 data-start=&quot;3694&quot; data-end=&quot;3906&quot;&gt;
  &lt;strong data-start=&quot;3694&quot; data-end=&quot;3713&quot;&gt;ISV Case Study:&lt;/strong&gt;
&lt;/h3&gt;
&lt;p&gt;
  A 4-developer ISV team replaced manual change sets with Serpent&amp;rsquo;s task-based
  workflow.&lt;br data-start=&quot;3802&quot; data-end=&quot;3805&quot; /&gt;They moved from weekly releases to
  twice-daily deployments and eliminated 90 % of post-release fixes.
  &lt;a href=&quot;https://serpent.cloud/blog/Case-Study:-Syntilio-Transformation-with-Serpent&quot;
    &gt;Read a detailed case study&lt;/a
  &gt;.
&lt;/p&gt;
&lt;h3&gt;&lt;strong data-start=&quot;3908&quot; data-end=&quot;3932&quot;&gt;Consultancy Example:&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;
  A boutique partner automated testing and drift detection through Serpent&amp;rsquo;s Org
  Management feature.&lt;br data-start=&quot;4033&quot; data-end=&quot;4036&quot; /&gt;QA cycles dropped from two
  days to two hours.
&lt;/p&gt;
&lt;p data-start=&quot;4083&quot; data-end=&quot;4193&quot;&gt;
  These results aren&amp;rsquo;t outliers,they&amp;rsquo;re what happens when DevOps aligns with
  how Salesforce teams actually work.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Why do change sets stop working as a team grows?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Change sets were a manual bridge for small orgs. Once features multiply and several
  workstreams run in parallel, selecting components by hand is slow, error prone, and
  leaves no version history to fall back on.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What are the stages of Salesforce release management?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Change sets, where deployment is manual selection. Scripted CI/CD, which adds
  pipelines, Git and CLI tools but usually needs a dedicated engineer. Task-based
  automation, which puts the same work into one unified workflow.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What does deploying by task mean?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  It means promoting a specific work item and the components attached to it, rather than
  hand-picking XML files into a package. Each deployment carries the context of what was
  built and why, which makes review and rollback far easier.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is configuration drift between Salesforce orgs?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Drift is what happens when environments evolve separately and their configurations
  stop matching. Comparing orgs and alerting on divergence catches the mismatch before
  it turns into a failed release.
&lt;/p&gt;
&lt;h2 data-start=&quot;4200&quot; data-end=&quot;4231&quot;&gt;
  &lt;strong data-start=&quot;4203&quot; data-end=&quot;4231&quot;&gt;The Unified Path Forward&lt;/strong&gt;
&lt;/h2&gt;
&lt;p data-start=&quot;4233&quot; data-end=&quot;4384&quot;&gt;
  Change sets built habits. Legacy tools built walls.&amp;nbsp;The future builds
  &lt;strong data-start=&quot;4307&quot; data-end=&quot;4319&quot;&gt;momentum, &lt;/strong&gt;a connected workflow that
  anyone can run and everyone can trust.
&lt;/p&gt;
&lt;p data-start=&quot;4386&quot; data-end=&quot;4572&quot;&gt;
  Serpent delivers that unified path: task-based, visual, and intelligent.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;One
  tool for planning, deploying, and analyzing Salesforce releases without the friction
  of traditional DevOps.
&lt;/p&gt;
</content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Authentication Your Complete Migration Guide]]></title>
            <description><![CDATA[Salesforce Summer ’25 blocks OAuth Device Flow. Discover security risks, migration steps, and how to move to secure OAuth2 PKCE authentication.]]></description>
            <link>https://serpent.cloud/resources/Salesforce-Authentication-Your-Complete-Migration-Guide</link>
            <guid isPermaLink="false">https://serpent.cloud/resources/Salesforce-Authentication-Your-Complete-Migration-Guide</guid>
            <dc:creator><![CDATA[Tekunda Team]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 03:50:36 GMT</pubDate>
            <content:encoded>&lt;h2&gt;Navigating Salesforce Authentication Evolution, Your Complete Migration Guide&lt;/h2&gt;
&lt;p&gt;
  In September 2025, Salesforce is implementing major changes to Connected App security
  that will impact how your applications authenticate. Two big shifts are happening:
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The OAuth 2.0 Device Flow will be blocked.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;strong
    &gt;Uninstalled Connected Apps will no longer be accessible to most users.&lt;/strong
  &gt;
&lt;/p&gt;
&lt;p&gt;
  This blog explains the migration away from the Device Login flow toward Connected App
  OAuth2 Flow with PKCE, why this change matters, and how to prepare with confidence.
&lt;/p&gt;
&lt;h2&gt;Why Salesforce Is Blocking Device Flow&lt;/h2&gt;
&lt;p&gt;
  The Device Flow (RFC8628) has a known vulnerability: it can be initiated with just a
  client_id. A malicious actor could exploit this in social engineering attacks,
  tricking users into approving untrusted apps.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Real-World Impact:&lt;/strong&gt; Recent high-profile breaches at companies
  including KLM Airfrance, Adidas, Google, Qantas, and Allianz Life were executed by
  threat groups like UNC6040/ShinyHunters using exactly this attack vector. These
  attackers used social engineering (phone calls impersonating IT staff) to trick
  employees into authorizing malicious Connected Apps via Device Flow.
&lt;/p&gt;
&lt;p&gt;
  Salesforce has confirmed this vulnerability has been exploited in production
  environments, making the deprecation a security necessity rather than just a technical
  upgrade.
&lt;/p&gt;
&lt;h2&gt;Moving to Connected App OAuth2 Flow with PKCE&lt;/h2&gt;
&lt;p&gt;
  The secure replacement is PKCE (Proof Key for Code Exchange), an enhancement to the
  Authorization Code Flow that prevents interception of the authorization code.
&lt;/p&gt;
&lt;h3&gt;Step 1: Generate PKCE Parameters&lt;/h3&gt;
&lt;p&gt;
  Create a code_verifier (random, cryptographically secure string, 43-128 characters).
&lt;/p&gt;
&lt;p&gt;Hash it with SHA256 and base64url-encode it &amp;rarr; code_challenge.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Important:&lt;/strong&gt; Use base64url encoding (not standard base64). This
  replaces &lt;code&gt;+&lt;/code&gt; with &lt;code&gt;-&lt;/code&gt;, &lt;code&gt;/&lt;/code&gt; with &lt;code&gt;_&lt;/code&gt;, and
  removes padding &lt;code&gt;=&lt;/code&gt; characters for URL safety.
&lt;/p&gt;
&lt;h3&gt;Step 2: Build Authorization URL&lt;/h3&gt;
&lt;p&gt;
  Ensure you include the critical parameter that&apos;s essential for PKCE implementation:
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;code_challenge_method=S256&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;
https://login.salesforce.com/services/oauth2/authorize?
client_id=YOUR_CLIENT_ID&amp;amp;
response_type=code&amp;amp;
redirect_uri=YOUR_CALLBACK_URL&amp;amp;
scope=full refresh_token&amp;amp;
code_challenge_method=S256&amp;amp;
code_challenge=YOUR_CODE_CHALLENGE&amp;amp;
state=YOUR_RANDOM_STATE&lt;/pre
&gt;
&lt;h3&gt;Step 3: Exchange Authorization Code for Tokens&lt;/h3&gt;
&lt;p&gt;Send the code and code_verifier back to Salesforce:&lt;/p&gt;
&lt;pre&gt;
POST /services/oauth2/token
grant_type=authorization_code
client_id=YOUR_CLIENT_ID
code=AUTH_CODE
code_verifier=ORIGINAL_CODE_VERIFIER
redirect_uri=CALLBACK_URL&lt;/pre
&gt;
&lt;h2&gt;Step 4: Update Permissions&lt;/h2&gt;
&lt;p&gt;
  Salesforce is adding new permissions with specific rules based on your org&apos;s
  configuration:
&lt;/p&gt;
&lt;h3&gt;If API Access Control is DISABLED (most orgs):&lt;/h3&gt;
&lt;p&gt;Users can access uninstalled apps with either permission:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Approve Uninstalled Connected Apps&lt;/strong&gt; (new in Summer &apos;25) -
    recommended for most cases
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Use Any API Client&lt;/strong&gt; - broader permission, use sparingly&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;If API Access Control is ENABLED:&lt;/h3&gt;
&lt;p&gt;
  Only the &lt;strong&gt;Use Any API Client&lt;/strong&gt; permission will work for accessing
  uninstalled apps.
&lt;/p&gt;
&lt;h2&gt;Data Loader Specific Changes&lt;/h2&gt;
&lt;p&gt;
  &lt;strong&gt;Critical Deadline:&lt;/strong&gt; September 2, 2025 - OAuth Device Flow support ends
  in Data Loader.
&lt;/p&gt;
&lt;h3&gt;Required Actions:&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;strong&gt;Switch authentication methods&lt;/strong&gt; before September 2: &amp;nbsp; &amp;nbsp;
    &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;strong&gt;Password authentication&lt;/strong&gt; (username + password + security token)
      &lt;/li&gt;
      &lt;li&gt;&lt;strong&gt;OAuth Web Server Flow&lt;/strong&gt; (recommended)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Update Data Loader&lt;/strong&gt; - Salesforce will release a new version before
    September 2 with Device Flow support completely removed
  &lt;/li&gt;
  &lt;li&gt;
    &lt;strong&gt;Note:&lt;/strong&gt; Command line usage with encrypted passwords is unaffected
  &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Common Migration Challenges&lt;/h2&gt;
&lt;p&gt;
  &lt;strong&gt;PKCE errors (&quot;invalid code verifier&quot;):&lt;/strong&gt; Usually caused by missing
  &lt;code&gt;code_challenge_method=S256&lt;/code&gt; parameter or incorrect base64url encoding.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Blocked user access post-September:&lt;/strong&gt; Fixed by assigning the
  appropriate permission based on your API Access Control status.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Data Loader login failures:&lt;/strong&gt; Migrate authentication method before
  September 2, 2025.
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Improper Connected App configuration:&lt;/strong&gt; When installing apps, set
  &quot;Permitted Users&quot; to &quot;Admin approved users are pre-authorized&quot; for better security
  control.
&lt;/p&gt;
&lt;h2&gt;Timeline and Action Plan&lt;/h2&gt;
&lt;h3&gt;Immediate Actions (Before Sept 2, 2025)&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Audit Connected Apps:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Navigate to Setup &amp;rarr; Connected Apps OAuth Usage&lt;/li&gt;
  &lt;li&gt;Look for &quot;Install&quot; buttons in the Actions column (indicates uninstalled apps)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Identify Device Flow usage:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Focus on Data Loader users&lt;/li&gt;
  &lt;li&gt;Check any custom applications using Device Flow&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Plan PKCE implementation:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Review current OAuth flows&lt;/li&gt;
  &lt;li&gt;Prepare development resources for PKCE migration&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Migration Phase (Aug-Sep 2025)&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Implement PKCE-enabled OAuth flow:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Ensure proper base64url encoding&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/li&gt;
  &lt;li&gt;Include &lt;code&gt;code_challenge_method=S256&lt;/code&gt; parameter&lt;/li&gt;
  &lt;li&gt;Test authorization and token exchange flows&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Test in Salesforce sandbox:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Validate PKCE implementation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/li&gt;
  &lt;li&gt;Test user permission assignments&lt;/li&gt;
  &lt;li&gt;Verify Data Loader alternatives&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Configure Connected Apps properly:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Install trusted uninstalled apps using the &quot;Install&quot; button&lt;/li&gt;
  &lt;li&gt;Set &quot;Permitted Users&quot; to &quot;Admin approved users are pre-authorized&quot;&lt;/li&gt;
  &lt;li&gt;Assign access via Permission Sets following principle of least privilege&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Prepare for Data Loader migration:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Train users on new authentication methods&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/li&gt;
  &lt;li&gt;Update documentation and procedures&lt;/li&gt;
  &lt;li&gt;Test password authentication or Web Server Flow&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Post-Migration (After Sept 2025)&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Monitor authentication logs:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Watch for failed authentication attempts&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/li&gt;
  &lt;li&gt;Track Connected App usage patterns&lt;/li&gt;
  &lt;li&gt;Monitor for security incidents&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Provide user support:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Address access issues promptly&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/li&gt;
  &lt;li&gt;Help users with new authentication methods&lt;/li&gt;
  &lt;li&gt;Document common troubleshooting steps&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Review security policies quarterly:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Audit Connected App permissions regularly&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/li&gt;
  &lt;li&gt;Review user access to sensitive integrations&lt;/li&gt;
  &lt;li&gt;Consider enabling API Access Control for enhanced security&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Enhanced Security Recommendations&lt;/h2&gt;
&lt;h3&gt;Optional but Recommended: Enable API Access Control&lt;/h3&gt;
&lt;p&gt;Contact Salesforce Support to enable this feature, which provides:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Allowlist-based Connected App access&lt;/li&gt;
  &lt;li&gt;Granular control over which apps users can access&lt;/li&gt;
  &lt;li&gt;Proactive blocking of unauthorized applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;User Education is Critical&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Train users to recognize social engineering attempts&lt;/li&gt;
  &lt;li&gt;Establish clear procedures for requesting Connected App access&lt;/li&gt;
  &lt;li&gt;Regularly communicate security best practices&lt;/li&gt;
  &lt;li&gt;Remind users never to approve unfamiliar applications&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Governance Framework&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Define clear ownership for each Connected App&lt;/li&gt;
  &lt;li&gt;Establish approval processes for new integrations&lt;/li&gt;
  &lt;li&gt;Implement regular access reviews&lt;/li&gt;
  &lt;li&gt;Engage security teams in Connected App policies&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Important Exception to Note&lt;/h2&gt;
&lt;p&gt;
  &lt;strong&gt;Existing Authorizations:&lt;/strong&gt; Users who previously authorized Connected
  Apps can continue using them after September 2025, &lt;strong&gt;EXCEPT&lt;/strong&gt; if those
  apps were authorized using Device Flow. All Device Flow authorizations will be
  immediately blocked regardless of previous usage.
&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;
  Salesforce&apos;s deprecation of the Device Flow isn&apos;t just a technical upgrade - it&apos;s a
  critical security response to real-world attacks that have compromised major
  organizations. The recent breaches at high-profile companies demonstrate the urgent
  need for these security enhancements.
&lt;/p&gt;
&lt;p&gt;
  By migrating to Connected App OAuth2 Flow with PKCE and properly configuring
  permissions, organizations can:
&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Protect against authorization code interception attacks&lt;/li&gt;
  &lt;li&gt;Maintain compliance with Salesforce&apos;s evolving security requirements&lt;/li&gt;
  &lt;li&gt;Reduce the attack surface available to social engineering campaigns&lt;/li&gt;
  &lt;li&gt;Ensure business continuity for critical integrations&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Key Success Factors:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Start migration immediately - don&apos;t wait until September&lt;/li&gt;
  &lt;li&gt;Test thoroughly in sandbox environments&lt;/li&gt;
  &lt;li&gt;Focus on user education and governance&lt;/li&gt;
  &lt;li&gt;Consider additional security layers like API Access Control&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
  Preparing early, testing thoroughly, and implementing proper governance will minimize
  disruption while significantly strengthening your organization&apos;s security posture.
&lt;/p&gt;
&lt;h2&gt;FAQ&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Why did Salesforce block the OAuth 2.0 Device Flow?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Because a Device Flow request can be started with nothing but a client_id. Attackers
  used that to phone employees, pose as IT, and get them to approve a malicious
  Connected App, so the flow was withdrawn rather than patched.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What replaces Device Flow for Salesforce authentication?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  The Authorization Code Flow with PKCE. You generate a code_verifier, send its SHA256
  base64url hash as the code_challenge, and return the original verifier when you
  exchange the authorization code for tokens.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What causes an &quot;invalid code verifier&quot; error with PKCE?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Usually a missing &lt;code&gt;code_challenge_method=S256&lt;/code&gt; parameter, or standard
  base64 used where base64url is required. Base64url swaps &lt;code&gt;+&lt;/code&gt; and
  &lt;code&gt;/&lt;/code&gt; for &lt;code&gt;-&lt;/code&gt; and &lt;code&gt;_&lt;/code&gt; and drops the padding.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Do existing Connected App authorisations still work?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Authorisations granted through other flows keep working. Anything a user authorised
  through Device Flow is blocked regardless of how long it has been in use, so those
  integrations have to be re-authorised.
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How do you find uninstalled Connected Apps in your org?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  Go to Setup and open Connected Apps OAuth Usage. An &quot;Install&quot; button in the Actions
  column marks an app that is authorised but not installed, which is exactly the set you
  need to review.
&lt;/p&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;a
      href=&quot;https://help.salesforce.com/s/articleView?id=005132365&amp;amp;language=en_US&amp;amp;type=1&quot;
      &gt;Salesforce Help: Prepare for Connected App Usage Restrictions Change&lt;/a
    &gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a
      href=&quot;https://help.salesforce.com/s/articleView?id=005132367&amp;amp;language=en_US&amp;amp;type=1&quot;
      &gt;Salesforce Help: Data Loader OAuth 2.0 Device Flow Removal&lt;/a
    &gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;https://tools.ietf.org/html/rfc7636&quot;
      &gt;IETF RFC 7636: Proof Key for Code Exchange (PKCE)&lt;/a
    &gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a href=&quot;https://tools.ietf.org/html/rfc8628&quot;
      &gt;IETF RFC 8628: OAuth 2.0 Device Authorization Grant&lt;/a
    &gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;a
      href=&quot;https://admin.salesforce.com/blog/2025/get-ready-for-changes-to-connected-app-usage-restrictions&quot;
      &gt;Salesforce Admin Blog: Connected App Usage Restrictions&lt;/a
    &gt;
  &lt;/li&gt;
&lt;/ul&gt;
</content:encoded>
        </item>
    </channel>
</rss>