In Salesforce we don’t have an option to rename an Aura component. There are times when we want to rename our Aura component to something more appropriate to the functionality, then we have to create a new Aura component and copy the code to the new component and delete the old one. Isn’t that too much time taking ?
Here is a hack on how you can rename an Aura component. Before I gave you the solution, let me explain you how Salesforce stores all Aura component details.
In salesforce, there is a standard system object “AuraDefinitionBundle” which stores details…

Salesforce CLI is a powerful command line interface that simplifies development and build automation when working with Salesforce org. With Salesforce CLI, you can :
Create and Manage orgs
Create Scratch orgs
Synchronize metadata to and from org
Create & install packages
Create & execute tests
Import and export data
To download Salesforce CLI, visit https://developer.salesforce.com/tools/sfdxcli and download for your operating system.
To know more about CLI and most commonly used SFDX commands , checkout my blog post
http://blog.singhtarandeep.com/blog/2019/09/20/salesforce-cli/

Salesforce provides a very good feature to connect Salesforce with third party applications for extended use. Suppose a company requires a website on Wordpress or a Mobile Application, then using Salesforce SOAP web services you can bind third party applications with Salesforce to perform CRUD ( Create, Read, Update & Delete) operations.
Salesforce has ready to use plugins for mostly platforms like Android, iOS, PHP etc which user can download from Salesforce website and can connect with the platform. But if you want to use SOAP web services directly in your application then you can simply download the WSDL file…
Hi guys. Today i am going to share how we can post messages on Chatter using Apex code. This could be helpful when a user performed some action in Salesforce, they a post should be created on Chatter with the details so that other users can also get alerts. To do this we have to use FeedItem class which is responsible for creating Chatter Posts.
Code for creating chatter post on behalf of a particular Account is :
FeedItem feed = new FeedItem();
feed.ParentId = "Account Id";
feed.Body = "Message which you want to post";
insert feed;Once you call this method with the parentId as the User’s account Id and Body as the Message, it will automatically creates a Chatter post.
Originally published at Er.Tarandeep.
Hi All. Recently i came across a situation where we need to create a component in Lightning which should be visible in Salesforce 1 App as Menu Option. In that Component user can add Account Details and on click of Save it should save and redirect the user to created Record in SF1 itself. Today i thought of sharing the code and how to implement this in Salesforce.
Basic Introduction: For this functionality i have created a Lightning component that allow user to create a new Account and redirect to the record view screen. …
What is Web to Lead : Web to Lead is a feature given by Salesforce to setup a page on your website to capture new leads easily in your Salesforce Instance.
How Web to Lead is useful : Companies generally use Salesforce to capture, manage & analyse their business data. Lead is a very important data for any organisation which they can’t ignore. …
Lazy Loading using JQuery
Hello Guys. Today i am going to tell you how to use lazy loading in your website using JQuery. What is Lazy Loading ? Lazy Loading is a concept in which we load content of the website as per the requirement or use. On load of our website, what we generally do is that we load all the content from database, render all data on UI, create all HTML DOMs even if that is not visible to user. …

For passing values from one Activity to another activity you can use Intent’s Extras method.
What is Intent?
Intent is a way to switch from one activity to another. Syntax for Intent :
Intent intent = new Intent(MainActivity.this, new NewActivity());
startActivity(intent);where first parameter of Intent constructor is the current Activity and second parameter is the New Activity which you want to open.
Now when you want to send data while switching from one Activity to another then you can use Extras method of Intent. That data can be in the form of String, Integer, Serialized object etc. …

Hello guys. Recently i my company, i came across a situations where we need to create a visualforce page where user can add multiple contacts in one go. And on the same page, user can see all the contacts that is added by user with pagination option. Simple, correct ? Yes it is simple, but what makes this difficult is pagination. In pagination i have taken much time and finally implemented custom logic to make pagination work. I though of sharing the code and logic with your guys.
Basic Introduction: For this i have created 2 sections. In first section…

In Salesforce, we may come up with requirement where the data which was visible in visualforce pages need to be converted into PDF so that user can download that file. In such condition we have to render the Visualforce page as PDF. Here i am telling you how to achieve this functionality.
As we all know that the parent tag of a visualforce page is apex:page which binds the visualforce page with your controller. In apex:page we have a parameter renderAs and if you initialize this parameter as pdf then the visualforce page will render as PDF file.
Code for making VF Page render as PDF :
<apex:page standardController="Product2" renderAs="pdf" >
</apex:page>Note : I recommend you to use html tags instead of visualforce tags when you are rendering as PDF.
Originally published at Er.Tarandeep.

Java, Android, Salesforce, Mendix and CMS Developer with 6+ years of Experience.