Month: November 2014

Link in a formula text field – Explained with Use Case

Use Case:I have three objects-·         Application User·         Bank·         Credit Card.Application User is having master detail relationship with both Bank and Credit Card where in both the cases Application User is on the master side and Bank/Credit Card are on the details side.Schema is as below –Now when I click on the Credit Card tab, I would like to display the Application User’s detail in the list. So I need to credit a new view to include the Application User detail. I did that (View Name: All Credit Card)and below is what I can see-Now the problem is – with the above view, from “Credit Card Holder” column, I am not able to identify the Application User. I need to click on individual “Credit Card Holder” entry to go to the details page of the Application User object and then identify the user. OMG!!! Definitely not a good and efficient way. We have to be smart. So let’s think about something innovative –Why not display the “LastName, FirstName” in the Credit Card Holder column so that from this page only, I can understand the owner of the Credit Card. Great good idea. Let’s see how we can do that –Let’s create a formula field which will fetch the Application User’s LastName and FirstName and populate like below-Now let’s add the field in the previously created view i.e. All Credit Card....

Read More

Version Controlling in Salesforce with Git + Eclipse

I always prefer version control while doing coding. I can’t think of writing code without version controlling. But when I moved to Salesforce, the first thing that I was looking for is the version controlling to have better source code control.I worked with many version controlling tools like CVS, SVN etc. But I personally feel Git is the best version controlling option we are having now. I am a big fan of Git. Git is much more powerful than any other version controlling tool. Here in this post, I am not going to describe the advantages of Git. But if you want, you can refer below URLs to understand how powerful Git can be: in this post, I will explain how we can use Git + Eclipse for Version Controlling in Salesforce.Step 1: Once we download and install IDE, we need to install the Git plugin. The name of the plugin is: EGIT. We can download the same from 2: Get the salesforce code into your local worspace.Step 3: In this step, we will configure the “Local Repository”. What we need to do is: Right Click on Project | Team | Share Project.Step 4: We need to choose Git as an option and click on “Next”Step 5: Here we need to click on “Create”. Select “Parent Directory” and “Name” as below and click on “Finish”. This is the step where we will mention the local repository name and the path.Step...

Read More