Streamlining Your Salesforce Development Process with Salesforce DevOps Center

on

|

views

and

comments

Introduction

If you’re a Salesforce developer, you know that streamlining your development process and collaborating with your team members can be challenging.

Fortunately, the Salesforce DevOps Center can help you with this.

It is a powerful tool that enables you to implement DevOps best practices in your Salesforce development process.

Which can shorten the development lifecycle and provide high-quality software delivery.

Table of Contents

What is DevOps

But what is DevOps exactly, and how can you use the Salesforce DevOps Center to optimize your development workflow?

DevOps is a methodology that combines software development (Dev) and IT operations (Ops) to improve collaboration, speed, and quality.

The Salesforce DevOps Center is a tool that can assist you in achieving these goals by allowing you to manage your code and metadata changes in a version-controlled environment and automate your development process.

So, how do you get started with Salesforce DevOps Center? Here are the steps you need to follow:

Enable DevOps Center in your Salesforce org

To enable DevOps Center, navigate to Setup -> DevOps Center and then enable the checkbox.

You will get an option to install the managed package inside your Salesforce Org. Install the managed package for the Admins only.

Once the DevOps center is installed in your Salesforce Org. The next step is to create the connected application so that the users can access the application.

Create the Connected App

  1. From Setup, search App Manager in the Quick Search box, then select App Manager.
  2. Click New Connected App.
  3. Provide the below information for the Basic Information section:
    1. Connected App NameDevOps Center
    2. Contact Email: your@email.com
    3. Logo Image URLhttps://tinyurl.com/doc-icon
    4. DescriptionManage your development and release processes
  4. Under the Web App Settings, enter the Start URL as/sf_devops/DevOpsCenter.app
  5. Click on Save
  1. Click on Manage while you are on the detail page of the Connected application.
  2. Click on Manage Permission Set
  3. Select “sf_devops_NamedCredentials” permission set from available permission sets.
  4. and Save the changes

Assign the DevOps Center Permission Sets to the Users

After installing the DevOps Center package, you will get permission sets inside your Org.

  1. DevOps Center – Assign to all DevOps Center users
  2. DevOps Center Manager – Assign to Team or Project Managers
  3. DevOps Center Release Manager – Assign to release manager and any team members who promote changes through the pipeline
  4. sf_devops_InitializeEnvironments – Assign to Team or Project Managers
  5. sf_devops_NamedCredentials – Assign to All DevOps Center User

If you are testing it in your Salesforce Developer Org. Assign all the permissions to your user.

Launch the DevOps Center

Click on the App Launcher and Search for DevOps Center.

Below is how your DevOps Center Space will look like.

Create Project in DevOps Center

After you have set up the DevOps Center, it’s time to create the Project so that the Work Items can be created and assigned to the developers/admins to work on that user story.

  1. Click on the “New Project” button from the top right
  2. If this is for the first time you are setting up the Project. Connect to GitHub

Note:- Every user has to connect to their GitHub Account to commit the Metadata

  1. You will be asked to log in to GitHub and allow access.
  2. After access to GitHub is granted, you will be back to the DevOps Center page
  3. Click on the “New Project” button again.
  4. Provide the project Name, and make sure your username is selected for the repo. (Do not make any changes)
  5. Click on Save

Connect To Release/Production Environment

After you have created the Project, now is the time to connect with the production environment because the production environment is the final destination for the metadata deployment.

Click on the “Click to Connect” button for the Release Environment Column next to the Project you created in the previous step.

Note:- The Release environment could be a Sandbox of Production org.

For this setup, we will connect to our Salesforce Developer Org. Provide the Valid name and click on Login.

You will be presented with the Salesforce Login Screen; provide the credentials and log in. After successful login, you will be redirected to the DevOps Center and see the base Url for Your Connected Org.

Add Development Environment

After we have connected with the release environment, the next step in our DevOps journey is to connect with the development environment where the Developers would be working.

To Connect with the development environment, click on the project name. It will take you to the pipeline.

Click the “Add Development Environment” button under the “Development Environments” section.

Provide the Environment Name and Click login.

Note:- You can only add the Developer or Developer Pro Sandbox or Scratch Org as a Development Environment,

If you are a release manager who is setting up the pipeline add all other environments like

  1. SIT
  2. Integration
  3. UAT

Activate the Pipeline

After you have added all the environments, click on Activate to activate the pipeline because it is essential for us to activate it before we start using it.

Create User Stories

Now, after the pipeline is activated, the time is to Create the User Stories and assign those to the developer so that they start working on the requirements.

  • Click on the Work Items tabs from the left
  • Click the “New Work Item” button from the top right
  • Fill the details and click on Save

Work with User Story

Click on the User Story name, select the Environment under “How would you like to work?” and Click Proceed.

Work in the Development Environment and click on pull changes under User Store details when you are ready.

OR You can also add the components manually.

Select your changes from the available components and then commit the changes. You can commit the changes multiple times if needed.

Once ready, click the Create Review button to create a PR.

This will create a Change Request and can be reviewed by your Team Lead or fellow developer.

Once your lead is satisfied, he/she will mark the User Story for Promotion so the change can be deployed to the following environment.

Create a PR using DevOps Center

Promote Changes to Higher Environment

After all the user stories have been reviewed and marked for promote. As a Release Manager, you can navigate to Pipelines and Click on the “Complete Promotion” Button.

You will see the success or error message in the pipeline if there are any.

You can also automate the deployment process using the SF CLI with project deployment commands. We will see this in the next blog post.

Watch Videos

Resources

Amit Singh
Amit Singhhttps://www.pantherschools.com/
Amit Singh aka @sfdcpanther/pantherschools, a Salesforce Technical Architect, Consultant with over 8+ years of experience in Salesforce technology. 21x Certified. Blogger, Speaker, and Instructor. DevSecOps Champion
Share this

Leave a review

Excellent

SUBSCRIBE-US

Book a 1:1 Call

Must-read

How to start your AI Journey?

Table of Contents Introduction Are you tired of the same old world? Do you dream of painting landscapes with your code, composing symphonies with data, or...

The Secret Weapon: Prompt Engineering: 🪄

Table of Contents Introduction Crafting the perfect prompt is like whispering secret instructions to your AI muse. But there's no one-size-fits-all approach! Exploring different types of...

How to Singup for your own Production org?

Let's see how we can have our salesforce enterprise Salesforce Org for a 30-day Trial and use it as a Production environment. With the...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here

5/5

Stuck in coding limbo?

Our courses unlock your tech potential