Small Tricks & Tips:
1) To execute batch process from console -
System.schedule('Job1', 'ss mm hh * * ?', new BatchClassName());
2) Send Single Email using apex-
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setToAddresses(new String[]{email});
mail.setSenderDisplayName('Test Display Name');
mail.setSubject('Test Subject');
mail.setPlainTextBody('Test Body');
Messaging.sendEmail(new Messaging.SingleEmailMessage[] {mail});
2) If Date field open with pop up -
function setFocusOnLoad() {}
.dateFormat{
visibility:hidden;
}
.dateFormat{
visibility:hidden;
}
visibility:hidden;
}
Comments
Post a Comment