Posts

Deployment in Salesforce using Change sets

Image
Deployments in Salesforce Deployments in Salesforce Deployment is the migration of metadata changes between one Salesforce org to another Salesforce org. There are many tools available for Deployment in Salesforce. In this post, we will discuss about Changesets. To use the changesets feature, we need to enable the deployment connection in our org. This would specify the Inbound and Outbound changesets on the Deployment connections page. In Production org, Go to Setup → Type Deployment Settings → Then it will take us to the Deployment Settings page where, it will show the orgs that were connected to this Production org for deployment purpose. By the same way, if we check the Sandbox org “sfdemo1” also, we can be able to see the connected org for deployment as shown below, Sandbox org “sfdemo1” Now, we are going to deploy the things from Sandbox to Production. That means, we are developing the things in Sandbox and going to deploy the same in the Production org. So

Create Sandboxes in Salesforce

Image
Sandboxes in Salesforce Sandboxes in Salesforce A Sandbox is a replica of your Production org and we can create multiple Sandboxes as per the Salesforce edition. The Sandbox orgs are the isolated ones and the operations that we perform in any Sandbox org would not impact the production org. There are several Types of Sandboxes present in Salesforce.  Developer Sandbox Developer Pro Sandbox Partial Copy Sandbox Full Sandbox A B C D E 1 SANDBOX TYPE REFRESH INTERVAL STORAGE LIMIT WHAT’S COPIED SANDBOX TEMPLATES 2 Developer Sandbox 1 day Data storage: 200 MB Metadata only Not available 3 File storage: 200 MB 4 Developer Pro Sandbox 1 day Data storage: 1 GB Metadata only Not available 5 File storage: 1 GB 6 Partial Copy Sandbox 5 days Data storage: 5 GB Metadata and sample data Required 7 File storage: 5 GB 8 Full Sandbox 29 days Same as your production org Metadata and all data Available How to create a Sandbox

REST API using Workbench

Image
REST API using Workbench We can use Workbench tool to test the REST API in any Salesforce org.  Let us discuss some popular scenarios to play with using Workbench tool in our Org. In order to play with Rest API, we need to login to our Salesforce org --> Then go to Workbench ( https://workbench.developerforce.com )  and --> Go to menu Utilities --> Select the REST Explorer . - After selecting the Rest Explorer, we would have so many HTTP methods to choose and to perform any action to our org. - Depending upon the requirement, we might use different methods at different scenarios. Some of the important methods as mentioned below, HTTP Method Description GET Retrieve data identified by a URL. POST Create a resource or post data to the server. DELETE Delete a resource identified by a URL. PUT Create or replace the resource sent in the request body. Scenario 1:  Fetch the complete list of objects in a salesforce org. - Just frame the URI

Apex Code Character Limit (Part II)

Increase Apex Code Character Limit We all know about Salesforce Apex Code Character limit and how to check the limit that we exhausted in our org.  USE CASE :- For suppose, if I reached the maximum code character limit in my org and I would like to code further, but the system is not allowing me to do so. In this situation, can I reach out to Salesforce Support to get this limit increased for me? The answer is YES. But conditions apply. Increasing the Apex Code Character Limit is not an easy task for Salesforce support. We need to ensure that we followed all best practices and need to check for any anti-patterns, Invalid test practices and Invalid classes. After performing all these checks from our end, then we are good to raise a case with Salesforce to increase the code character limit for my org. Points to Note:- The Code character limit count includes the spaces, tabs and other formatting characters inside the code. The code comes with any managed package

Apex Code Character Limit (Part I)

Image
Apex Code Character Limit What is Apex Code Character Limit? As we know, Salesforce works on a multi-tenant environment. So it provides common resources to every org. If we speak in terms of writing Apex code in our Org, due to multi-tenant architecture design, we do have a limit on code characters for every org.  That means, Salesforce literally counts each and every character that we use to write any code. This limit is called Apex Code Character Limit. The code character limit is almost the same for every org. As of now (after Summer'18 release), the code character limit would be 6 Million. This indicates that any developer can write and develop code in their org up to 6 Million characters. For suppose, if a developer has exhausted the provided code character limit, then an error would be thrown stating that " The total size of apex code in this application after removing comments exceeds the maximum character size of 6000000 ". So we cannot write

SOQL Query Plan Tool

Image
SOQL Query Plan Tool Salesforce provides its own query plan tool for our developers to increase the performance of SOQL queries.   How to enable the Query Plan Tool in my Org? - We can have the option to enable the Query plan tool in Developer Console. Login to the org --> Open the Developer Console --> In the Developer Console menu, Go to Help --> Preferences --> Look for the "Enable Query Plan" option --> Then double click on its value and select the Checkbox. That's it the Query Plan would get enabled. - That's it. Now we are able to see the Query Plan option while executing the SOQL query. How to use the Query Plan Tool? We can write any SOQL query and before executing the query, just click on the Query Plan button. We will get the detailed query analysis in the results section. Here in the above screenshot, after running the Query Plan, we got the detailed plan details for the mentioned query. Eac

Customize Salesforce Login Page

Image
Salesforce Login Page Customization Bored with the standard Salesforce login page? Can we customize the login page as per our wish? The answer is YES . We can completely customize the Salesforce login page. - The primary requirement to do this step is to enable the MyDomain in our Salesforce org. - Say for example, in my demo org, I have setup my domain as  "zeebra-line-234-dev-ed.my.salesforce.com".  - Hence, my custom domain URL would become, https://zeebra-line-234-dev-ed.my.salesforce.com/   With this URL, I can be able to login to my demo org. - With the traditional login URL, https://login.salesforce.com we can be to login to any org by just giving the username and password. Once after logging into the org, we can be able to see the enabled custom domain URL on the browser header. We can customize the Salesforce branding and the right side frame. Here are the steps to do the same, Login to the org and go to Setup --> Comp