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
{“Metadata” : { | |
“active” : true, | |
“businessProcess” : “Buyer Process”, | |
“compactLayoutAssignment” : null, | |
“description” : “This is used to capture Sales”, |
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
{ | |
“Metadata” : { | |
“businessOwnerGroup” : null, | |
“businessOwnerUser” : null, | |
“businessStatus” : null, |
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 CaseChangesPushNotification | |
{ | |
public static void sendAgentMessage(String message) | |
{ | |
Case_Event__e event = new Case_Event__e(Message__c=message); | |
Database.SaveResult result = EventBus.publish(event); | |
if (!result.isSuccess()) | |
{ | |
for (Database.Error error : result.getErrors()) | |
{ |
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
global class CalloutController{ | |
public static String requestLabel; | |
@RemoteAction | |
public static Object helpSupportAgents(String body){ | |
Map<String, Object> jsonPayload = new jsonPayload() | |
jsonPayload.put('searchKeyword', body); | |
String endpoint = '<long running callout endpoint>';//I can not provide url due to security issue | |
Continuation searchContinuation = makeContinuation('callbackMethod', 'POST', endpoint, JSON.serialize(jsonPayload)); | |
searchContinuation.state = searchContinuation.addHttpRequest(req); | |
return searchContinuation; |
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
/*_________________________________________________________________________________ | |
// BooleanExpression.evaluateExpression('false and (false or (true and (false or true)))') | |
//updated by ayub...may need to change | |
___________________________________________________________________________________ | |
*/ | |
public class BooleanExpressionCalculation{ | |
public static boolean evaluateExpression(String expression){ | |
system.debug(expression.containsIgnoreCase('false')+'__'+expression.containsIgnoreCase('true')); |