Play Games

Search This Blog

Friday, July 22, 2016

How to rename related List label in salesforce?

Problem: If we have a related list(LRR Documents) for Lead ,then the detail page will look as shown in the image below.

We need to rename "LRR Documents" as highlighted in the image above.
Steps :
Step 1: Go to the object which is a related list whose label we need to change.
In this example LRR_Document__c is a child of Lead object.So go to LRR_Document object.
Step 2: Click on the Edit link of lookup to parent object field as shown in the image below

Step 3: A new window is opened.Change the related list label under "Look up Options" section as you like and click "Save".


Step 4: That's it.Now you can observe that related label is changed as shown in image below.

Wednesday, July 13, 2016

Salesforce.com Acquisitions

list of acquisitions by salesforce.com:
1) Sendia (April 2006)
2) Kieden (August 2006)
3) Kenlet (January 2007)
4) Koral (March 2007)
5) Instranet (August 2008)
6) GroupSwim (December 2009)
7) Informavores (December 2009)
8) Jigsaw Data Corp. (April 2010)
9) Sitemasher (June 2010)
10) Navajo Security (August 2011)
11) Activa Live Chat (September 2010)
12) Heroku (December 2010)
13) Etacts (December 2010)
14) Dimdim (January 2011)
15) Manymoon (February 2011)
16) Radian6 (March 2011)
17) Assistly (September 21, 2011)
18) Model Metrics (November 2011)
19) Rypple (December 2011)
20) Stypi (May 2012)
21) Buddy Media (May 2012)
22) ChoicePass (June 2012)
23) Thinkfuse (June 2012)
24) BlueTail (July 2012)
25) GoInstant (July 2012)
26) Prior Knowledge (December 2012)
27) EntropySoft (February 2013)
28) clipboard.com (May 2013)
29) ExactTarget (announced June 4, 2013)
30) EdgeSpring (June 7, 2013)
31) RelateIQ (July 10, 2014)
32) Toopher (April 1, 2015)
33) Tempo (app) (May 29, 2015)
34) ÄKTA (September 2015)
35) MinHash (December 2015)
36) SteelBrick (December 2015)
37) Implisit (May 2016)
38) Demandware (July 2016)
For more information go through the wikipedia link Salesforce.com Wikipedia.

Sunday, July 10, 2016

How to change standard field name's datatype from text to autonumber?

Steps:
Step 1: Go to the standard field field label and click on "Edit" action before that field as shown in the image below.

Step 2: Select datatype as "Auto Number" ,automatically 2 other columns will be displayed.

Step 3: Fill the column 'Enter Display Format','starting Number' and then click "save" button.
Step 4: Thats it.The standard field "name" datatype is changed to autonumber.

Thursday, July 7, 2016

PageReference in Salesforce.

A PageReference is a reference to an instantiation of a page.
Use a PageReference object:
1)To view or set query string parameters and values for a page
2)To navigate the user to a different page as the result of an action method.

Use below code to navigate to specified url.
PageReference pageRef = new PageReference('specified url');

Use below code syntax to navigate to external url for example:google
PageReference pageRef = new PageReference('http://www.google.com');
Example:
Apex Class:
public class PageReferenceExample {
    Account account;
    public Account getAccount() {
        if(account == null) account = new Account();
        return account;
    }

    public PageReference save() {
        insert account;
        PageReference acctPage = new ApexPages.StandardController(account).view();
        acctPage.setRedirect(true);
        return acctPage;
    }

}
Visualforce Page:
<apex:page controller="PageReferenceExample" tabStyle="Account">
    <apex:sectionHeader title="New Account Edit Page" />
    <apex:form>
        <apex:pageBlock title="Create a New Account">
            <apex:pageBlockButtons location="bottom">
                <apex:commandButton action="{!save}" value="Save"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="Account Information">
                <apex:inputField id="accountName" value="{!account.name}"/>
                <apex:inputField id="accountSite" value="{!account.site}"/>
            </apex:pageBlockSection>
       </apex:pageBlock>
    </apex:form>

</apex:page>
Output:When we run the above vf page the following screen appears

Once you enter the details,Click on save button.

When a save button it is redirected to the record detail page as shown in the image below.




How to navigate from Salesforce Lightning to Salesforce Classic.

Steps:
Step 1:In lightning,at the top right, you find a symbol as shown in the image below.

Step 2:Click on that symbol,you will find a link "Switch to Salesforce Classic".
Step 3: Click on that link,you will be navigated back to salesforce classic.

How to switch from salesforce classic to lightning

Steps:
Step 1: Go to setup and search "Lightning Experience" as shown in the image below.

Step 2: Click on "Lightning Experience " link and search for "Enable the new Salesforce Experience" section.
Step 3: Enable the button to the right of "Lightning Experience" column as shown in the image below.

Step 4: You will get a pop window as shown in the image below.

Step 5: Click on "Enabling Lightning Experience" button.Thats it.You have enabled lightning Experience.
Step 6: Go to name at top and click on it.In the drop down ,you will find a link "Switch to Lightning Experience".

Click on this link to move to Lightning Experience.

Monday, July 4, 2016

How to use contains in javascript?

We cannot directly use contains in javascript. We need to use indexOf() as an alternate to contains in javascript
Example:
var str = "Hello world, welcome to the universe.";
var res = str.indexOf("world");
If the given string is present ,then indexOf() will return index of that string.
So, the above code gives 6 as output(6 is index of string 'world')
other Example:
var str = "Hello world, welcome to the universe.";
var res = str.indexOf("King");
The above code gives -1 as output as 'king' is not present in input string "str".
So,as an alternate to conatins() we need to use indexOf() like this
if(str.indexOf("world") != -1) {
if string matches,it comes into this block
} else {
if string doesn't match,it will come to this block
}

Note: Test the below piece of code by coping it into the following Editor.
<!DOCTYPE html>
<html>
<body>

<p>Click the button to locate the first occurance of the letter .</p>

<button onclick="myFunction()">Try it</button>

<p id="demo"></p>

<script>
function myFunction() {
   var str = "Hello world, welcome to the universe.";
var res = str.indexOf("world");
    document.getElementById("demo").innerHTML = res;
}
</script>

</body>
</html>