How To Create Persistent State in Google Cloud Shell

How To Create Persistent State in Google Cloud Shell

Sudipta Deb

Sudipta Deb

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

In the ever-evolving landscape of cloud computing, Google Cloud Platform (GCP) stands out as a beacon of innovation and efficiency. Among its suite of robust tools, one particularly shines for its versatility and user-friendliness: the Google Cloud Shell. This dynamic feature serves as a gateway to managing and manipulating cloud resources with ease and precision.

Google Cloud Shell is essentially a browser-based command line interface that offers a consistent development environment in GCP. It eliminates the need for local installations and configurations, providing a ready-to-use development environment with access to a wide array of Google Cloud resources.

While working with glcoud command, we need to specify values like Region, Zone, or Project Id. Now entering these values with each commands is not a good experience. It also increases the chance of making typing errors.

So in this blog post, I am going to show you how you can set the common values in environment variables and use them instead of typing the actual values.

The form you have selected does not exist.

Get List of Available Regions

You can execute the below command in cloud console to get list of available regions.

gcloud compute regions list

From the list, select the region and copy the name.

Create Environment Variable for Region

Step 1

Create the environment variable and include the region you selected in the previous step. In the below command, I am using the region us-east1.

INFRACLASS_REGION=us-east1

Step 2

Validate the environment variable using echo command.

echo $INFRACLASS_REGION

Append the Environment Variable to a File

Step 1

Create subdirectory and a config file.

mkdir myenv

touch myenv/config

Step 2

Append the value of your Region environment variable to the config file.

echo INFRACLASS_REGION=$INFRACLASS_REGION >> ~/myenv/config

Create Environment Variable for Project Id

Step 1

Create the environment variable and include the Project Id.

INFRACLASS_PROJECT_ID=[YOUR PROJECT ID]

Step 2

Validate the environment variable using echo command.

echo $INFRACLASS_PROJECT_ID

Append the Environment Variable to a File

Step 1

Append the value of your Project Id environment variable to the config file.

echo INFRACLASS_PROJECT_ID=$INFRACLASS_PROJECT_ID >> ~/myenv/config

Set the Environment Variables

Finally use the source comand to set the environment variables and use the echo command to verify that the project variable was set:

source myenv/config

echo $INFRACLASS_PROJECT_ID

Modify the bash Profile & Create Persistence

Execute the belo command

nano .profile

Then add the line at the end of the file and save:

source myenv/config

Now if you close your could shell and open a new one (resetting the vm), you can execute the command and get the desired output

echo $INFRACLASS_PROJECT_ID

Final Thoughts

In conclusion, Google Cloud Shell is more than just a command-line interface; it's a comprehensive, secure, and efficient environment for managing your cloud resources. Its ease of use, coupled with robust features, makes it an indispensable tool for anyone working in the Google Cloud ecosystem.

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

Salesforce Spring ’24 New Features – Sneak Peak

Salesforce Spring ’24 New Features – Sneak Peak

Sudipta Deb

Sudipta Deb

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

As we step into a new year, it’s time to gear up for the much-anticipated Salesforce Spring '24 Release. This release promises a plethora of new features, enhancements, and innovations, designed to elevate your Salesforce experience to new heights. In this introductory post, I will give you a sneak peek into what Salesforce Spring '24 has in store for you.

Spring '24 preview orgs are live already and as I was playing in the preview org, I was able to find out some of the cool features already. In this blog post, I will share some of my findings with you. New preview orgs sign-up link will be live on December 14th, 2023. I will update the post with the link as soon as it is available. And also I will be publishing dedicated videos covering new features from Spring 24 release in my Youtube Channel - Technical Potpourri. You can subscribe to the channel here.

So without any further delay, let's share some of my findings below.

The form you have selected does not exist.

Availability of Cross-Object Fields in Dynamic Forms

A formula field had to be created or a "Quick Update" action had to be used in order to display data from a parent record onto a child record in the past. This information was then displayed on a Lightning Page. As long as the primary record and the other record have a lookup relationship, you may now easily add a field from one record to another on your Lightning Page with Spring '24.

For example - now you can include Account fields in Opportunity page layout without creating any formula field or custom action.

Multi-Select Picklist Warning

Multi-Select Picklist is always been a very tricky field type. In one hand it is very easy to implement from Admin standpoint, but there are many limitations associated with this field type which causes many downstream issues.

So going forward, starting Spring' 24, Salesforce will warn you with a message stating all the limitations with this field type when you will try to create Multi-Select picklist.

Validate Input Available in Flow Data Table

After Spring 24 Release, you can validate the selection from the Data Table and display error message accordingly. This was one of the questions people asked since the introduction of Data Table in Flow like when the Validate Input will be available.

Like as you can see in the screen, I can now configure and display an error message, if user selects an inactive account from the list of accounts displayed in Data Table. 

Changes in Process Automation Settings

Starting Spring 24 release, in the Process Automation section, you will find two new options -

  • Stop Sending Orchestration Work Item Default Email Notifications
  • Inherit orchestration run sharing rules to control orchestration run log record access

Repeater Component for Screen Flow

Spring 24 release is going to introduce Repeater (Beta) component. Using this component it will be easier to build screen flows to capture same information repetatively from the same single screen. And then take actions using loop when input taking is completed.

Final Thoughts

As we eagerly await the detailed release notes from Salesforce, stay tuned to my blog and youtube channel for in-depth analyses, feature breakdowns, and expert insights on how to make the most of the Salesforce Spring '24 Release. Whether you're a seasoned Salesforce professional or just beginning your CRM journey, the Spring '24 Release has something exciting for everyone.

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

Salesforce Spring ’24 Release Date + Preview Information

Salesforce Spring ’24 Release Date + Preview Information

Sudipta Deb

Sudipta Deb

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

Salesforce Spring '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.

What to Expect in Salesforce Spring '24

Salesforce’s commitment to continuous improvement and customer-centric innovation is evident in this latest release. Expect to see advancements across various Salesforce products and platforms, including Sales Cloud, Service Cloud, Marketing Cloud, and more. Key highlights include:

  1. Enhanced AI Capabilities: Salesforce continues to push the boundaries of artificial intelligence with enhanced Einstein AI features, offering more intuitive and predictive insights to drive your business forward.

  2. Improved User Experience: With a focus on user interface and experience, the Spring '24 release brings sleeker designs and more intuitive navigation, making Salesforce even more user-friendly.

  3. Deeper Integration Options: Expect deeper and more seamless integrations with third-party apps and systems, ensuring that Salesforce remains at the heart of your digital ecosystem.

  4. Advanced Customization: Tailor Salesforce to your unique business needs with more customizable options, allowing for greater flexibility and control.

  5. Enhanced Data Security: As always, Salesforce places a high priority on data security. The new release introduces advanced security features to keep your data safer than ever.

Why Stay Tuned?

The Salesforce Spring '24 Release is more than just an update; it’s a step into the future of CRM technology. Staying abreast of these updates ensures that your business leverages the most advanced tools available, keeping you ahead of the curve in a rapidly evolving digital landscape.

Information about The Release Dates for Salesforce Spring '24

The release date for Spring '24 will depend on your Salesforce instance. Here are the main release weekends.

    • January 12, 2024
    • February 2, 2024
    • February 9, 2024

Please refer Salesforce trust website, click on your instance name and hit "Maintenance". This will show the dates when your production environment will get Spring '24 release.

Information about Spring '24 Sandbox Preview

One of the most important thing that you might be wondering when my sandbox will be upgraded to Spring 24. This is the chance when you as an admin or developer can test your existing implementation making sure new release is not breaking any of your existing code base. 

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 January 6th, 2024

Information about Spring '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 Spring '24 release, and you may log in to access the newest features.

Otherwise, you can sign up for a Spring '24 Pre-Release Org starting December 14th, 2023. Here is the link.

Information about Salesforce Spring '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. Spring 24 Release notes will be available on December 20th, 2023. Link

Final Thoughts

As we eagerly await the detailed release notes from Salesforce, stay tuned to our blog for in-depth analyses, feature breakdowns, and expert insights on how to make the most of the Salesforce Spring '24 Release. Whether you're a seasoned Salesforce professional or just beginning your CRM journey, the Spring '24 Release has something exciting for everyone.

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