• Menu on the left side in Salesforce1 contains objects which “randomly” appear (based on some logic)
    • In this moment Salesforce1 organizes menu itself for every user based on the visit frequency and date of the object creation.This functionality belongs to the standard functionalities and cannot be changed.
    • What can be changed is whether the object will be shown in Salesforce1 menu.
  • Object visibility in Salesforce1 is controlled and set up through tab settings.
    • Tab settings determines if it appears to the user and how
    • Access on this tab can be modified based on the profile level and Permission Sets
    • Tabs contains three settings:
      • Default On
      • Default Off
      • Tab Hidden
  • Comparing to Salesforce classic version, where settings tab specifies when the user can see tab in top menu, in extension (+) or it is not visible anywhere, in Salesforce 1 it only determines if user can see the object in menu.
  • It follows that, it does not matter whether tab is set on “Default On” or “Default Off” – the item will be visible in menu
  • Only when tab is set on “Tab Hidden”, the item will not be visible in menu
  • Setting tab on Tab Hidden does not mean that user will not have access to the records in that object (always is controlled your Organization Wide Defaults and Sharing Settings) – it will only remove quick access to that object

Identify species the mobile device in Apex code:

  • After login on your mobile phone, parameter USER-AGENT passed in the URL shows what device we logged in.
  • Based on this parameter, we can display different pages for the various mobile.

Apex Example:

String device = ApexPages.currentPage().getHeaders().get(‘USER-AGENT’);

if(device.contains(‘iPhone’))deviceType = ‘iPhone’;

{//Your iphone code goes here}

else if(device.contains(‘BlackBerry’)) deviceType = ‘BlackBerry’;{//Your blackberry code goes here}