Thursday, November 3, 2016

Ways to identify type of edition of your salesforce org?

We can identify which type of edition we are using in multiple ways as shown below.

1. Click on Administer or any link under Administer from sidebar setup page then you can see the name of the edition.
2. Navigation: Setup ---> Administer ---> Company Profile ---> Company Information.

3. On different browsers:
a). Google Chrome, Internet Explorer, Mozilla Firefox: Hover the mouse over the tab where salesforce org is opened as shown below.

4. Using below SOQL from Query Editor in Developer Console or in Apex code.
SOQL Query: SELECT Organizationtype FROM organization

We can find different type of editions using Schema object from "Execute Anonymous Window" in Developer Console or in Apex code.

Code snippet:

Schema.DescribeFieldResult dfr =Schema.sObjectType.Organization.fields.OrganizationType;
List<String> values = new List<String>();
for(Schema.PicklistEntry ple : dfr.getPicklistValues()){
    values.add(ple.getValue());
}
system.debug(JSON.serialize(values));
Where Team Edition and Base Edition are called as Group Edition and Performance Edition respectively.


--- Thank you for referring the post ---

Wednesday, November 2, 2016

How to "Skip Record Type Selection Page" on overridden "New" button of object

If an object(Standard/Custom) have multiple record types and "New" button has overridden by Visualforce Page then we can
1. Check "Skip Record Type Selection Page" checkbox if you do not want to redirect user to record type selection page.
2. Uncheck "Skip Record Type Selection Page" checkbox if you want to redirect user to record type selection page.

For Standard object navigation: Setup ----> Build  ---> Customize ---> Object name ---> Buttons, Links and Actions ---> Click Edit link next to "New".

For Custom object navigation: Setup ----> Build  ---> Create ---> Objects ---> Object name ---> Buttons, Links and Actions ---> Click Edit link next to "New".


  • We can not in-active the record type if it is default record type for any profile.
  • We can not delete the record type if it is active.
  • We can not select "Master" record type if any other record type(s) already selected.
--- Thank you for referring the post ---