Posts

How to resolve Bootstrap clash with Salesforce

Is it possible to use Bootstrap in a Visualforce page without having to use  standardStylesheets="false"  and  showHeader="false" ? Answer is YES. Here is the actual problem being faced while using bootstrap with salesforce. Is it possible to use Bootstrap in a VFP without having to use standardStylesheets="false" and showHeader="false"? When I solely add in the stylesheets tag, my whole page is altered a little bit. The font is much larger but that is the only change. Even if I put in a styleClass="btn btn-primary on a button, I get no response from Bootstrap. That is until I add in the two tags, standardStylesheet=false and showHeader=false. I also am unable to override the standard style with inline style editing or style tags in the header. So is it possible to use Bootstrap in conjunction with the standard Salesforce styles? Without having to overwrite the page with an iFrame? The reason the CSS goes all over the pla...

Salesforce Cron Expression for Schedulling class

Image
CRON JOB and CRON String  The  System.Schedule  method takes three arguments: a name for the job, an expression used to represent the time and date the job is scheduled to run, and the name of the class.  This expression has the following syntax: 1 Seconds  Minutes Hours Day_of_month Month Day_of_week Optional_year Salesforce schedules the class for execution at the specified time. Actual execution may be delayed based on service availability. The  System.Schedule  method uses the user's timezone for the basis of all schedules. The following are the values for the expression: Name Values Special Characters Seconds 0–59 None Minutes 0–59 None Hours 0–23 None Day_of_month 1–31 , - * ? / L W Month 1–12 or the following: JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC , - * / Day_of_week 1–7 or the following: SUN MON TUE WED THU FRI SAT , - * ? / L # optional_year null or 1970–2099 , - *...

Sample Package.xml for salesforce

Many a time we search the format and list of components which can be retrieved by package.xml. Below list will help in such scenario. <package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>Case-page layout name</members> <name> Layout </name> </types> <types> <name> WebLink </name> </types> <types> <members>*</members> <name>ApexPage</name> </types> <types> <members>*</members> <name>ApexClass</name> </types> <types> <members>Triggger_name</members> <name>ApexTrigger</name> </types> <types> <members>ESD_Report_Data_Archive__c</members> <members>*</members> <name>CustomObject</name> </types> <types> <members>object_api_nam...

Disable Chatter Digest Emails

Image
Personalize Chatter Email settings Follow below steps to modify Email settings for the Chatter. 1.      Login to SFDC and navigate to Tab ‘Chatter’ 2.      Click on ‘Groups’ link. 3.      From the list choose the group to stop/modify notification for. 4.      On left hand side click on ‘email me’ link. 5.      Now you can choose one of below. Also you can fine tune more settings by clicking on ‘Email settings’ link. Hope this helps.