As developers or Admins, we have the challenge of building and deploying apps expeditiously. Salesforce provides tools like Salesforce DX, CLI, and Extensions Pack. These desktop-based tools require installing and setting it up on every workstation.
If you’re into Salesforce development, there’s an alternative I want you to think about — an online code editor and IDE! You can also call them cloud-based code editors. For example, Welkin Suite and many others.
Let’s quickly sum up the advantages of using an online code editor and IDE:
- Work from anywhere around the world
- No setup
- Data safety
- Easy integration with a source code repository like GitHub
What is Code Builder
Code Builder, powered by AWS, can be launched as a full-featured IDE in the browser from Salesforce org with clicks. Nothing to install or configure to the device.
Now Salesforce released (Beta) a new tool called Code Builder. Yes! You hear it right!! Salesforce Code Builder is a web-based integrated development environment with all the power and flexibility of Visual Studio Code, Salesforce Extensions for VS Code, and Salesforce CLI in your web browser. Code Builder is a development environment that can turn on in seconds, and it is custom to your Salesforce org and a specified project.
Code Builder works from a browser, allowing you to code virtually on any device with an internet connection. It has all the features of a modern IDE, such as code completion, refactoring, search, and support for Salesforce languages and frameworks.
What Makes Salesforce Code Builder Powerful
- You’ve to install Code Builder, a managed package with everything one needs to write code in Salesforce: VS Code, Salesforce extensions, and Salesforce CLI.
- It doesn’t allow you to install new extensions to the Code Builder development environment.
- Currently, Code Builder doesn’t support LWC Local Development (beta). You can’t preview LWC components locally but can deploy them to your org to view them.
- With Code Builder, you can work from anywhere. Bookmark your development environment or access the link from a different machine.
- Unlike a desktop IDE, Code Builder saves your work without you explicitly having to do so. However, the beta environment has a cap of 20 hours.
What Are the Core Features of Salesforce Code Builder?
- Ability to connect multiple Salesforce orgs
- Use Org Browser to explore org metadata easily
- Supports Salesforce-specific commands
- Create and deploy Apex and LWC
- Use SOQL Builder to write and execute SOQL queries
- Run Salesforce CLI commands using the Code Builder terminal
Steps to Setup and Configure Salesforce Code Builder
Perform the steps below to set up and configure Salesforce code builder (beta) in your org.
- First and foremost, install Code Builder (Beta) app from AppExchange.
- Click on Get it Now.
- Enter the user name of the org you want to install it.
- Click on Install in Production.
- Select the ‘I have read and agree to the terms and conditions.‘ checkbox.
- Click on Confirm and install button.
- Select Install for All Users and click on the Install button.
- Click Done.
Add Code Builder Permission Set to Right Users
Once Code Builder is successfully installed, it’s time to assign the Permission set to the users who suppose to use it.
- Click Setup. In the Quick Find box, type Permission Sets.
- Select Permission Sets, then click on Code Builder permission set.
- Click on Manage Assignments.
- Click Add Assignment and select the User to whom you want to assign Code Builder permission.
- Click Next, Assign, and Done.
Configure the Code Builder Environment
Start building the project using Code Builder (If you have a project on GitHub, you can Import it).
- Go to the App Launcher and search Code Builder and click on it.
- Click on Get Started.
- Click on New Project, and fill in the details
- Project Name: MyFirstSalesforceApp
- Project Type: Standard
- Click Next and Connect a Development Org ( you can also connect a Sandbox Org if you want to connect it).
- Click Next and pass the credentials to allow the org to connect with the code builder.
- Click on Next once the org is successfully connected.
- Give the Org Alias as DevOrg and click on Create.
Launch Salesforce Code Builder
We will launch on the code builder and execute the SOQL query.
- Click on Launch once the Code Builder environment is successfully created.
- You can execute SOQL queries, create LWC and Apex code.
I would love to hear about your experience working with Code Builder. How do you use it?
Leave a Reply