Request A Demo
Back to All Blog Articles

FlexDeploy Loves Salesforce: Build and Deploy Salesforce DX Apps

FlexDeploy is an Enterprise DevOps platform with fully integrated support for Salesforce apps, metadata customizations, integrations and more. This is the fourth article in a blog series that will help you understand what makes FlexDeploy a perfect choice to implement DevOps, CI/CD, and release automation with Salesforce.

Here is a summary of the FlexDeploy Loves Salesforce series.

In the previous blog article, we saw how easy it is to retrieve, view differences, and deploy your changes to your test and production orgs with FlexDeploy. In this article, we will see how easy it is to deploy your changes from SFDX to your test and production orgs with FlexDeploy.

Salesforce Developer Experience

Salesforce Developer Experience (DX) is a new way to develop and manage Salesforce apps using scratch orgs and version control. Scratch orgs are available for the Dev Hub enabled Salesforce platforms. These scratch orgs consist of Salesforce code or metadata that can be easily created or destroyed, helping to speed up the standard development workflow.

Salesforce DX is primarily used by advanced developers with version control and using Visual Studio. FlexDeploy enables all DX features to administrators and no-code or low-code developers who are not often experienced using tools like version control or Visual Studio. At the same time, FlexDeploy provides all the features to embrace the new development process with best practices for advanced Salesforce developers to take advantage of full CI/CD automation. If you are thinking about moving to SFDX, but a lack of skills and process knowledge is stopping you, FlexDeploy helps you to transform to new SFDX without needing to learn new tools.

Once you enable the Dev Hub feature in your Salesforce org, you can manage scratch orgs and packages from FlexDeploy and integrate with version control seamlessly. FlexDeploy allows you to deploy to test and prod orgs using release and pipelines automation, ensuring quality, approvals, and visibility.

Enable Dev Hub Features in Your Org

Enabling Dev Hub in a development, production, or business org is safe and doesn’t cause any performance or customer issues. To enable Dev Hub in an org:

  • Log in as System Administrator to your Developer Edition, trial, or production org (for customers), or your business org (for ISVs).
  • From Setup, enter Dev Hub in the Quick Find box and select Dev Hub.
  • To enable Dev Hub, click Enable.

*NOTE: After you enable Dev Hub, you can’t disable it.

Manage Scratch Orgs

FlexDeploy’s Salesforce Org Management screen automatically brings up all the scratch orgs created if the Dev Hub org is selected. You can view and create your new scratch org by clicking on the + icon next to the “Select Scratch Org” drop-down.

The "Select Scratch Org" drop-down in FlexDeploy

After clicking the + to create new, you can enter the details for the new scratch org and click OK to create. Once the new scratch org is created, it will be available in the drop-down for comparing and pulling changes.

The Create Scratch Org details in FlexDeploy

Pull Changes from your Scratch Org

From the Salesforce Org Management screen, you can select your desired scratch org from the drop down, and retrieve all your changes made. This will allow you to compare changes with version control or with any org, such as a test or prod, and view the differences. On this screen you can view the new, modified, or deleted changes, compare each file, and view the differences. Once you review the changes, you can simply click a button to commit to your version control if you have it enabled for your enterprise.

Create and Manage Packages

FlexDeploy’s Packages screen enables you to view your packages and create or edit the existing packages.

If you are an advanced developer using Visual Studio or any other tool for your development, FlexDeploy allows you to view / edit your packages. As a result, all the packages are in sync with your source. If you edit existing or create new packages, FlexDeploy will update or create a new package in your code and you can view the changes in your tool.

For Administrator or no-code / low-code Salesforce development, you can completely manage your packages on the FlexDeploy Packages screen so that you can create new packages and manage them with few clicks.

Regardless of the type of development, users can:

  • Define unit test type for packages in FlexDeploy.
  • Manage dependencies by selecting multiple packages with desired order to deploy to target orgs.
  • Create package versions (Build) from FlexDeploy Package screen.
  • View what versions of packages are installed in various test and prod orgs.

The FlexDeploy Packages page

Package details screen show the details of the selected package.

The Package Details screen of FlexDeploy

Release Automation

Once you have changes pulled from scratch org and created packages in FlexDeploy, you can use CI/CD and release automation features. FlexDeploy helps automate the complete Salesforce release with a simple drag-and-drop for creating reusable pipelines so you can build and deploy Salesforce DX Apps with ease.

This process is similar to non-DX projects or any other technology in your enterprise. In addition to Salesforce, you can deploy changes to any technology like Mule Services, Web Applications, etc. The release pipelines can include automated and manual steps.

A release pipeline in FlexDeploy to build and deploy Salesforce DX apps

In conclusion, FlexDeploy allows you to transition from traditional Salesforce development to modern DX seamlessly. As a result, you can achieve high quality release of your changes with best practices and automated quality checks. If you are a DX developer, take advantage of all the advanced features to achieve high quality releases with speed.

Keep Reading

Read Part 5: Unit Test and Test Automation for Your Salesforce

DevOps for Salesforce eBook

Related Resources

Mastering Source Control: Streamlining Functional Setup Data Sync with FlexDeploy and Git Integration in Oracle FSM

Effective source control management (SCM) is pivotal in ensuring the seamless tracking and management of functional setup data. In this ...

Oracle Integration Cloud – Migrate Integrations, Connections and Lookups

Oracle Integration Cloud (OIC) serves as a unified platform for seamlessly integrating cloud and on-premises applications. FlexDeploy, a robust DevOps ...

Unlocking Precision in Oracle SaaS FSM: Dive into FlexDeploy’s Filter Criteria for Effortless Setup Migration

While Oracle’s Functional Setup Manager (FSM) UI facilitates export/import operations for transferring setups across environments, the process demands manual initiation, ...

Join DevOps leaders across the globe who receive analysis, tips, and trends in their inbox