Salesforce Winter 24 Release Information

Salesforce Winter 24 Release Information

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

Salesforce Winter '24 Release

Salesforce Winter '24 Release is coming soon. In this post, I will share the information available today regarding this release, so you can be prepared in advance.

As more information comes in, I will be publishing those as well. So it is highly recommended that you please subscribe to my blog so that you will get the email right in your mailbox about all my upcoming blog posts.

The form you have selected does not exist.

Salesforce Winter '24 Release Date

Below are the dates when your production environment will be upgraded to Winter '24. These dates are definitely important, but at the same time, it is very important to know when your sandbox will get the new release. Because that's the environment where you will do all sorts of testing and make sure that new release will not cause any issues with your existing implementation.

The release date for Winter '24 will depend on your Salesforce instance. Here is the main release weekend.

    • September 2, 2023
    • October 7, 2023
    • October 14, 2023

You can always go to the Salesforce trust website, click on your instance name and hit "Maintenance". This will show the dates when your production environment will get Winter '24 release.

Salesforce Winter '24 Sandbox Preview

Salesforce normally has two release windows for Sandboxes. It totally depends on whether your Sandbox is a "Preview" instance or a "Non-Preview" instance. The official date is yet to be announced, but it looks like most sandboxes will be upgraded on Aug 26th 2023

Salesforce Winter '24 Pre-Release Org

Salesforce Pre-release orgs are a fantastic method to familiarize yourself with the new release before it arrives in your sandboxes. If you already have a preview orgs, it has been updated with the Winter '24 release, and you may log in to access the newest features.

Otherwise, you can sign up for a Winter '24 Pre-Release Org Link

Salesforce Winter '24 Release Notes

Salesforce Release Notes is the place where you will come to know all the new and enhanced features for the first time. You need to go through the notes and find out the new features or potential areas where you need to test your implementation. Release notes are very organized and for each cloud, you will find different sections. Winter 24 Release notes can be found here.

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

Mastering Salesforce DX CLI: Essential Commands for Developers

Mastering Salesforce DX CLI: Essential Commands for Developers

Samantha Hops

Samantha Hops

Sam is a digital marketing enthusiast, SEO guru, and newfound lover of all things Salesforce.

Salesforce DX CLI, or Command Line Interface, is a potent tool in the arsenal of Salesforce developers, streamlining and enhancing the development experience. It furnishes a unified, scriptable interface that allows developers to harness the full power of Salesforce's feature-rich platform directly from the command line.

Whether you're a new developer embarking on your Salesforce journey or an experienced pro seeking to refine your skills, this article will guide you through essential Salesforce DX CLI commands to optimize your workflow and master the art of Salesforce development.

Understanding Salesforce DX CLI

Salesforce Developer Experience (DX)CLI (Command Line Interface) is a comprehensive and indispensable tool that unifies the development and management of Salesforce orgs under a single, scriptable interface. Its capabilities go far beyond that of a standard command-line interface.

Let's delve into the Salesforce DX CLI.

The Salesforce DX CLI essentially serves as a conduit between developers and the Salesforce platform. It employs a collection of commands that developers use to create, convert, and manage Salesforce applications. This interface allows developers to interact with Salesforce directly from their terminal, eliminating the need to navigate through the web interface for a vast array of tasks.

Salesforce DX CLI offers a multitude of benefits for Salesforce developers. Here are some notable ones:

    • Streamlined Development Process: Salesforce DX CLI provides a set of commands that automate common tasks, thereby streamlining the development process and improving efficiency.
    • Ease of Org Management: It allows for easy creation, deletion, and management of scratch orgs, sandboxes, and other Salesforce orgs, simplifying the entire lifecycle management process.
    • Metadata and Data Manipulation: Developers can easily deploy, retrieve, convert, and manipulate metadata. They can also execute SOQL queries, manipulate data records, and perform bulk data imports or exports.
    • Test Execution: Salesforce DX CLI enables developers to execute Apex tests and view detailed results, including code coverage.
    • Scripting and Continuous Integration/Continuous Deployment (CI/CD): CLI commands can be used within scripts to automate workflows, making it a vital tool for CI/CD.
    • Compatibility: Salesforce DX CLI is platform-independent, meaning it can be used on different operating systems such as Windows, Mac, or Linux.
    • Plugin Support: It supports plug-ins, allowing developers to extend its functionality according to their needs and increase developer productivity.
    • Easy Integration with Version Control Systems: Salesforce DX CLI helps in maintaining a source-driven development model, facilitating easy integration with version control systems like Git.

Salesforce DX CLI is pivotal in optimizing the development process, providing the power to create and manage scratch orgs, synchronize source code, run tests, and even automate deployments.

Automation is one of the key features of the CLI, enabling developers to establish automated processes for repetitive tasks, freeing up valuable time, and reducing the scope for errors.

As Salesforce developers, harnessing the CLI's power can increase efficiency and streamline complex processes and development tasks. By learning to master the Salesforce DX CLI, you can take control of your Salesforce orgs, automate tasks, and elevate your productivity to new heights.

Getting Started with Salesforce DX CLI

Setting up Salesforce DX CLI is a straightforward process that will set the stage for a streamlined Salesforce development experience. Here's how you can get started:

Step 1: Install Salesforce DX CLI

The Salesforce CLI is available for Windows, MacOS, and Linux. Depending on your operating system, you can download the appropriate installer from the Salesforce CLI Setup Guide.

    • Windows users: You can download the installer directly from the link above and follow the prompts in the installation wizard.
    • MacOS users: You can install the Salesforce CLI using the installers from the link above or use Homebrew for the installation (brew install sfdx-cli).
    • Linux users: Use the installers from the link above, or you can use npm for the installation (npm install sfdx-cli -g).

Step 2: Verify the Installation

To verify that the Salesforce DX CLI has been installed correctly, you can open a command prompt or a terminal window and type in the following command:

            sfdx --version

If the installation was successful, the version number of the Salesforce DX CLI you installed should be displayed.

Setting Up Salesforce DX for the First Time

Now that you have installed Salesforce DX CLI, you need to link it to your Salesforce environment.

    • Authenticate your Dev Hub: A Dev Hub is the main Salesforce org that you will use for Salesforce DX. To authenticate, use the following command:

                                   sfdx auth:web:login -d -a MyDevHub

             Replace MyDevHub with a name that makes sense for your org.

    • Create a Scratch Org: Scratch Orgs are temporary Salesforce orgs where you can perform development and testing. To create one, use:

                                   sfdx force:org:create -s -f config/project-scratch-def.json -a MyScratchOrg

              Replace MyScratchOrg with a name suitable for your Scratch Org.

And there you have it! You've successfully installed and set up Salesforce DX CLI for the first time.

Essential Salesforce DX CLI Commands

Having installed Salesforce DX CLI and authenticated your Dev Hub, let's examine some essential commands that you, as a Salesforce developer, will find particularly useful.

sfdx force:org:create

This command is used to create a new scratch org from a configuration file. For instance:

sfdx force:org:create -s -f config/project-scratch-def.json -a NewScratchOrg

This command creates a new scratch org with the configuration specified in project-scratch-def.json and sets it as the default username for your project. NewScratchOrg is the alias you're assigning for easy reference.

sfdx force:org:list

This command lists all the authenticated orgs, both scratch orgs and non-scratch orgs.

sfdx force:org:list

It's an excellent way to keep track of all the orgs you have access to and their expiration dates (in case of scratch orgs).

sfdx force:auth:web:login

This command is used to authenticate a Salesforce org.

sfdx force:auth:web:login -a MyDevHub

In this example, MyDevHub is the alias you're assigning to the authenticated org.

sfdx force:source:push

This command is used to push source code from your local project to a scratch org.

sfdx force:source:push

This is a must-use command after making any changes in your source code to make sure they're reflected in your scratch org.

sfdx force:source:pull

This command is used to pull changes from the scratch org to your local project.

sfdx force:source:pull

Use this command whenever you make changes directly in the scratch org and want them reflected in your local source code.

6 Tips for Using These Commands Effectively

When using Salesforce DX CLI, a few expert tips can help you optimize your development process and harness the full potential of the command line interface:

  1. Utilize Command Aliases: Always create memorable aliases for your orgs during the creation or authentication process using the -a option. This allows for easier referencing of your orgs in future commands.
  2. Make Use of the Help Flag: When in doubt, use the -h or --help flag to display a help page with information about a command, its syntax, and the options it accepts.
  3. Regularly Monitor Your Orgs: Keep track of the status of your orgs using sfdx force:org:list. This allows you to effectively manage your scratch orgs' lifecycles.
  4. Embrace Command Autocompletion: Speed up your development process by installing the command auto-completion feature: sfdx plugins:install autocomplete.
  5. Leverage Scripting: Simplify repetitive tasks by wrapping sequences of commands into shell scripts. This can significantly automate your tasks and increase productivity.
  6. Check for Updates Regularly: Stay up-to-date with the latest features and bug fixes by regularly checking for updates: sfdx update.

Advanced Commands for Experienced Developers

For seasoned Salesforce developers looking to tackle more complex tasks and automate their workflows, Salesforce DX CLI offers a set of advanced commands. Let's dive into some of these:

sfdx force:mdapi:deploy

This command is used to deploy metadata to an org from a .zip file or a directory. It's particularly useful for moving metadata between orgs or migrating metadata to a DX format. Here's an example:

sfdx force:mdapi:deploy -d path/to/metadata -u TargetOrgAlias

This command deploys metadata from the specified directory to the target org represented by TargetOrgAlias.

sfdx force:mdapi:convert

This command converts metadata from the Metadata API format into a format compatible with Salesforce DX. For instance:

sfdx force:mdapi:convert -r path/to/metadata

This command converts the metadata in the specified directory and creates a new directory, force-app, in your project to store the converted source.

sfdx force:apex:test:run

This command is used to run Apex tests in your Salesforce org.

sfdx force:apex:test:run -u MyDevHub -r human -c -w 10

This command runs all tests in the MyDevHub org and waits up to 10 minutes for the tests to complete. The -r human option outputs the results in an easy-to-read format, and -c gives you code coverage results.

sfdx force:data:soql:query

This command is used to execute a SOQL query against your Salesforce org.

sfdx force:data:soql:query -q "SELECT Name, Email FROM Contact" -u MyDevHub

This command runs the specified SOQL query in the MyDevHub org and displays the results.

Troubleshooting Common Issues in Salesforce DX CLI

Like any software tool, Salesforce DX CLI can present some common issues or errors. Here's a table of a few such issues, their likely causes, and suggested solutions:

Issue/Error

Likely Cause

Suggested Solution

ERROR running force:org:create: You do not have access to the [scratch org feature]

You're not connected to a Dev Hub, or your Dev Hub does not have Dev Hub capabilities enabled.

Connect to a Dev Hub using sfdx force:auth:web:login, and ensure that the Dev Hub capabilities are enabled. If you are unsure how to enable this, refer to the Salesforce documentation.

ERROR running force:source:push: No org configuration found for name [MyScratchOrg]

The specified Scratch Org does not exist, or your current session has expired.

Verify the Scratch Org name or ID. Use sfdx force:org:list to see a list of all authenticated orgs. If the org exists but your session has expired, you can reauthenticate using sfdx force:auth:web:login.

ERROR running force:source:pull: Source was not pulled because the default scratch org is not set

The default Scratch Org is not set.

Set the default Scratch Org using the -s flag when creating the org: sfdx force:org:create -s -f config/project-scratch-def.json -a MyScratchOrg

sfdx force:data:soql:query ERROR: Unable to authenticate to the Dev Hub Org. Please check your default Dev Hub username

The default Dev Hub username is not set, or your current session has expired.

Ensure the default Dev Hub is set during authentication by using -d flag: sfdx force:auth:web:login -d -a MyDevHub. If the session has expired, reauthenticate.

Error: EACCES: permission denied, access '/usr/local/lib/node_modules/sfdx-cli'

You do not have the necessary permissions to install or update the Salesforce DX CLI.

Try using a version manager like nvm for Node.js, or change the permissions for the directory in question.

For further assistance or more complex issues, the Salesforce Developer forums and Stack Exchange are valuable resources. Additionally, Salesforce DX CLI's -h or --help flags can often provide insights into resolving command-specific issues.

Conclusion

Mastering Salesforce DX CLI is a critical part of efficient Salesforce development. With the ability to create and manage orgs, automate tasks, and streamline complex workflows, the Salesforce DX CLI is indeed a powerful tool for any Salesforce developer's toolkit.

However, as with any skill, proficiency comes with practice. Whether you're just starting out or you're an experienced developer diving into advanced commands, the key to unlocking the full potential of Salesforce DX CLI lies in continued exploration and practice. So, don't shy away from experimenting with new commands and techniques, and remember, each challenge you overcome is another step towards mastering Salesforce DX.

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

How To Troubleshoot Your Server Running On Google Cloud Virtual Machine

How To Troubleshoot Your Server Running On Google Cloud Virtual Machine

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

In Google Cloud, a Virtual Machine (VM) is a computing resource that emulates a physical computer within the cloud environment. It provides users with the ability to run applications and perform various computing tasks without the need for physical hardware.

In this blog post, I am going to share with you how you troubleshoot your server which is running on Google Cloud Virtual Machine.

Prerequisite - Create The Server Running On Google Cloud

I have a dedicated blog post where I have shown step-by-step approach to create your first server running on Google Cloud Virtual Machine. I highly recommend to go through that post to understand the basics first.

Here is the post

With that, let's find out how to do the troubleshooting.

Connection Refused

If you are seeing a Connection Refused error, it is possible that:

  • You are trying to access the VM using an https address. Check that your URL is http://[EXTERNAL_IP] rather than https://[EXTERNAL_IP].
  • The VM instance does not have the proper tag that allows Compute Engine to apply the appropriate firewall rules to your instance. See Ensure that your VM instance has the correct tags below.
  • Your project does not have a firewall rule that allows traffic to the external IP address for your instance. See Ensure that the correct firewall rule exists below.

Make Sure Virtual Machine Has The Correct Tags

  1. In the Google Cloud console, go to the VM instances page.

  2. Click the name of the instance that you are trying to connect to.

  3. Click Edit at the top of the page.

  4. Scroll down to Firewalls and make sure that Allow HTTP traffic is checked. If it is not checked, check it.

  5. Save your changes. This ensures that the correct tags are added to the VM instance.

Make Sure Correct Firewall Rule Exists

  1. In the Google Cloud console, go to Firewall rules.
  2. Look for a firewall rule that allows all IP ranges through tcp:80. Usually, this rule is named the default-allow-http rule.

  3. If a rule does not exist, create one.

  4. Click Create firewall rule.

  5. Enter a name for the rule, such as default-allow-http.

  6. Under Source IP ranges, enter 0.0.0.0/0 to allow traffic from all sources.

  7. Under Protocols and ports, check Specified protocols and ports and enter tcp:80.

  8. Create your firewall rule.

  9. Test your server again by going to the external IP address of the instance.

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

How To Install An Apache Web Server On a Linux VM Hosted in Google Cloud

How To Install An Apache Web Server On a Linux VM Hosted in Google Cloud

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

In Google Cloud, a Virtual Machine (VM) is a computing resource that emulates a physical computer within the cloud environment. It provides users with the ability to run applications and perform various computing tasks without the need for physical hardware.

In this blog post, I am going to share with you how you can create Linux Virtual Machine and Install Apache Web Server there.

Create A New Project

To start with, the first thing that you need to do is to create a new project. Here are the steps to create a new project.

  1. Open the Google Cloud Console: Go to the Google Cloud Console website (console.cloud.google.com) and sign in with your Google account.

  2. Select or create a Google Cloud organization: If you have multiple organizations, select the organization under which you want to create the project. If you don't have an organization, you can create one during the project creation process.

  3. Click on the project drop-down menu: On the top navigation bar, you'll see a drop-down menu with the current project name. Click on it to open the project selection menu.

  4. Click on "New Project": In the project selection menu, click on the "New Project" button.

  5. Enter project details: In the "New Project" dialog box, provide the following information:

    • Project name: Enter a name for your project (e.g., "My Project").
    • Project ID: Optionally, you can specify a project ID. If you don't provide one, Google Cloud automatically generates a unique project ID based on your project name.
    • Organization: If you have multiple organizations, select the desired organization to associate with the project. Otherwise, the default organization will be used.
  6. Click on "Create": Once you've entered the project details, click on the "Create" button to create the project.

  7. Wait for the project to be created: The project creation process may take a few moments. Once the project is created, you'll be redirected to the project's overview page.

Enable APIs

Once the project is created, you need to enable the API - Compute Engine API. Here are the steps -

  1. Open the Google Cloud Console: Go to the Google Cloud Console website (console.cloud.google.com) and sign in with your Google account.

  2. Select your project: In the top navigation bar, click on the project drop-down menu and select the project for which you want to enable the Compute Engine API.

  3. Open the API Library: In the left sidebar, click on "APIs & Services" and then select "Library" from the dropdown.

  4. Find the Compute Engine API: In the API Library, type "Compute Engine API" in the search bar or scroll down until you find it.

  5. Enable the Compute Engine API: Click on the "Compute Engine API" in the search results. This will take you to the Compute Engine API page.

  6. Click on "Enable": On the Compute Engine API page, click on the "Enable" button to enable the API for your project.

  7. Wait for the API to be enabled: The API activation process may take a few moments. Once the Compute Engine API is enabled, you'll see a notification confirming the activation.

Create The Server Virtual Machine

  1. On the Compute Engine page, click VM instances.
  2. Here click on "Create Instance".
  3. In the Name field, enter the name of your server. For example: my-linux-web-server.
  4. In the Region list, select your region or zone. To understand Regions, please read my blog here or watch my youtube video here
  5. In the Zone list, select the appropriate zone.
  6. In the Boot Disk section, click on Change and select the following -
    • Operating System: Debian
    • Version: Keep it default
    • Boot disk type: SSD persistent disk.
  7. In the Firewall section, select "Allow HTTP Traffic".
  8. Click on Create.

This will create the new instance of Virtual Machine.

Install An Apache Server

  1. To open a terminal to your instance, in the Connect column, click SSH.
  2. Update the package lists on your instance:
    • sudo apt-get update

  3. Install Apache2 HTTO Server:
    • sudo apt-get install apache2 php7.0

  4. Overwrite the Apache web server default web page with the following command:
    • echo '<!doctype html><html><body><h1>Hello World From Technical Potpourri!</h1></body></html>' | sudo tee /var/www/html/index.html

Test Your Server

  1. In the Google Cloud Console, go to the VM instances.
  2. Copy the VM's IP address from the External IP column.
  3. Paste the IP address in a new browser tab.

  4. You should see a page with message - Hello World from Technical Potpourri.

Delete

To avoid incurring charges to your Google Cloud account for the resources used in this tutorial, either delete the project that contains the resources, or keep the project and delete the individual resources.

Run the following command to delete the project:

gcloud projects delete <YOUR PROJECT NAME>

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments