This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AccountTriggerHandler extends TriggerHandler { | |
// Build method to bind events to functions | |
public void build() { | |
System.debug('Build Account Trigger'); | |
bind(TriggerManager.Evt.AfterUpdate, new AccountAfterUpdateHandler()); | |
bind(TriggerManager.Evt.AfterUpdate, new UpdateAccount()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardController="Case"> | |
<apex:outputPanel rendered="{!$Profile.Name != 'Community User'}" > | |
<apex:detail subject="{!Case.Id}" inlineEdit="true" showChatter="true" /> | |
</apex:outputPanel> | |
<apex:outputPanel rendered="{!$Profile.Name = 'Community User'}" > | |
<apex:detail subject="{!Case.Id}" inlineEdit="true" showChatter="false" /> | |
</apex:outputPanel> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This utility attempts to strip the reply portion of an email by looking for common reply seperators | |
* The reply separator depends on the email client, so it is not likely to strip all replies 100% | |
* This is a best effort for known email client formats. | |
* | |
* @param String original email message body | |
* @returns String email message with the reply lines stripped | |
*/ | |
public static String stripResponse(String email) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class Test { | |
@AuraEnabled(cacheable=true) | |
public static TestObj[] getList() { | |
TestObj[] tests = new TestObj[]{ | |
new TestObj('1', 'Item 1'), | |
new TestObj('2', 'Item 2'), | |
new TestObj('3', 'Item 3') | |
}; | |
return tests; |