MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
| /** | |
| * BusinessDays Class | |
| * Use this class to operate only on business days | |
| * and easily skip weekends and holidays from your logic | |
| * @author - Manish Choudhari | |
| * */ | |
| public class BusinessDays | |
| { | |
| public BusinessHours bHours; | |
| /** |
| public class EmailLogic { | |
| public static String renderTemplate(sObject sobj, String template) { | |
| for (String fieldName : fields(sobj.getSObjectType())) { | |
| String key = '{!' + fieldName + '}'; | |
| while (template.containsIgnoreCase(key)) { | |
| try { | |
| Integer foundPosition = template.indexOfIgnoreCase(key, 0); | |
| template = template.left(foundPosition) + | |
| String.valueOf(sobj.get(fieldName)) + |