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 ---

Tuesday, November 1, 2016

How to Remove "Record Type" from Chatter Profiles?

If a custom object have one or more record types and associated to chatter profiles. Now, if you want to remove record type(s) from chatter profile then you can not remove as can remove from other profiles. So, we can achieve this by doing URL hacking as shown below.

https://xxx.salesforce.com/setup/ui/profilerecordtypeedit.jsp?id={Profile ID}&tid={Custom Object ID}&pn={Profile Name}


xxx : Server name[Exp: ap1,na2,cs3,etc...] or Domain name.

{Profile ID} : ID of profile from which you want to remove record type.
{Custom Object ID} : ID of object of record type.
{Profile Name} : Name of profile from which you want to remove record type.


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