Magulan Duraipandian

Salesforce

CSS is not working

If applied CSS is not working, then try to avoid blank spaces in the CSS. Good CSS: #popup{display:none;position:absolute;height:100px;width:100px;background:#E6E6FA;      border: 2px solid black;overflow:auto;} Bad CSS: #popup{     display:none;    position:absolute;    height:100px;    width:100px;    ....

Salesforce

How to find object type from Salesforce record id?

Sample Code to execute in Developer Console: Id myId = '0035A00003MuvnuQAB';   String sObjName = myId.getSObjectType().getDescribe().getName();   system.debug('Object Name is ' + sObjName);   Output: ( Or ) Sample Code: Visualforce page: <apex:page Controller="sample" sidebar="false" > <apex:form > <apex:pageblock id="pg" > <apex:pageblockSection > <apex:pageBlockSectionItem ....