This file contains hidden or 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
| fetchNotifications(userId, options, time = +new Date(), pageSize, startKey) { | |
| return new Promise((resolve, reject) => { | |
| let query = this.model | |
| .query('assignee_id') | |
| .eq(userId) | |
| .where('create_time') | |
| .lt(new Date(time).getTime()); | |
| if (startKey && typeof startKey !== 'boolean') { | |
| query.startAt(startKey); | |
| } |
This file contains hidden or 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
| "[{\"salesforceId\":\"0010m00000CMHoUAAX\",\"Id\":\"0010m00000CMHoUAAX\",\"UniqueId__c\":\"practice-43\",\"Type\":\"Practice\",\"Website\":\"https://revelar-yanpix-portal-practitioner.azurewebsites.net\",\"Phone\":\"(592)-250-3249\",\"Email__c\":\"WillyWanka@dispostable.com\",\"Name\":\"Willy Wanka's Neverland\",\"attributes\":{\"url\":\"/services/data/v42.0/sobjects/Account/0010m00000CMHoUAAX\",\"type\":\"Account\"}},{\"salesforceId\":\"0010m00000CN7doAAD\",\"Id\":\"0010m00000CN7doAAD\",\"ParentId\":\"0010m00000CMHoUAAX\",\"UniqueId__c\":\"clinic-49\",\"Type\":\"Clinic\",\"ShippingState\":\"OR\",\"ShippingPostalCode\":\"97215\",\"ShippingCountry\":\"USA\",\"Phone\":\"(850) 508-0838\",\"Email__c\":\"\",\"Name\":\"Willy Wanka's playhouse\",\"attributes\":{\"url\":\"/services/data/v42.0/sobjects/Account/0010m00000CN7doAAD\",\"type\":\"Account\"}},{\"salesforceId\":\"0030m00000C5nX8AAJ\",\"Id\":\"0030m00000C5nX8AAJ\",\"AccountId\":\"0010m00000CMHoUAAX\",\"UniqueId__c\":\"practitioner-92\",\"ContactType__c\":\"Pr |
This file contains hidden or 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
| "[{\"salesforceId\":\"0010m00000CMHoUAAX\",\"Id\":\"0010m00000CMHoUAAX\",\"UniqueId__c\":\"practice-43\",\"Type\":\"Practice\",\"Website\":\"https://revelar-yanpix-portal-practitioner.azurewebsites.net\",\"Phone\":\"(592)-250-3249\",\"Email__c\":\"WillyWanka@dispostable.com\",\"Name\":\"Willy Wanka's Neverland\",\"attributes\":{\"url\":\"/services/data/v42.0/sobjects/Account/0010m00000CMHoUAAX\",\"type\":\"Account\"}},{\"salesforceId\":\"0010m00000CN7doAAD\",\"Id\":\"0010m00000CN7doAAD\",\"ParentId\":\"0010m00000CMHoUAAX\",\"UniqueId__c\":\"clinic-49\",\"Type\":\"Clinic\",\"ShippingState\":\"OR\",\"ShippingPostalCode\":\"97215\",\"ShippingCountry\":\"USA\",\"Phone\":\"(850) 508-0838\",\"Email__c\":\"\",\"Name\":\"Willy Wanka's playhouse\",\"attributes\":{\"url\":\"/services/data/v42.0/sobjects/Account/0010m00000CN7doAAD\",\"type\":\"Account\"}},{\"salesforceId\":\"0030m00000C5nX8AAJ\",\"Id\":\"0030m00000C5nX8AAJ\",\"AccountId\":\"0010m00000CMHoUAAX\",\"UniqueId__c\":\"practitioner-92\",\"ContactType__c\":\"Pr |
This file contains hidden or 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 String etFirstWarning { | |
| get { return [SELECT DeveloperName, Subject, Body FROM EmailTemplate WHERE DeveloperName = 'invoiceFirstWarning' LIMIT 1].Body;} | |
| set { etFirstWarning = value;} | |
| } | |
| public String etSecondWarning { | |
| get{ | |
| return [SELECT DeveloperName, Subject, Body FROM EmailTemplate WHERE DeveloperName = 'invoiceSecondWarning' LIMIT 1].Body; | |
| } | |
| set{ etSecondWarning = value; } |
This file contains hidden or 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:form > | |
| <apex:pageMessages /> | |
| <apex:pageBlock title="Late Invoice Email System" > | |
| <apex:pageBlockSection title="Email Settings" collapsible="false" columns="1"> | |
| <apex:pageBlockSectionItem > | |
| <apex:outputLabel value="First Warning Email Message" /> | |
| <apex:inputTextarea cols="120" rows="8" id="etFirstWarning" value="{!etFirstWarning}" /> | |
| </apex:pageBlockSectionItem> | |
| <apex:pageBlockSectionItem > | |
| <apex:outputLabel value="Second Warning Email Message" /> |
This file contains hidden or 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
| static TestMethod void dealApprovalHandler_Tests_UnitTest(){ | |
| Account acc = test_Helper.createAccount(); | |
| Contact cont = test_Helper.createContact( acc ); | |
| Opportunity deal = test_Helper.createOpportunity( acc, cont ); | |
| // create a new email and envelope object | |
| Messaging.InboundEmail.Header h = new Messaging.InboundEmail.Header(); | |
| h.Name = 'Test'; | |
| h.Value = ' 1 1 2000'; | |
| Messaging.InboundEmail email = new Messaging.InboundEmail(); |
This file contains hidden or 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 Task_Helper { | |
| public static Map<String, Schema.SObjectField> FIELD_MAP = Schema.SObjectType.Task.fields.getMap(); | |
| public static void afterInsert(List<Task> newList){ | |
| Map<Id, Datetime> dateMap = new Map<Id, Datetime>(); | |
| Map<Id, String> descriptionMap = new Map<Id, String>(); | |
| Map<Id, Id> userMap = new Map<Id, Id>(); | |
| Map<String, Integer> sumMap = new Map<String, Integer>(); |
This file contains hidden or 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
| { timestamp: 1518115547309, | |
| webhookEvent: 'jira:issue_updated', | |
| issue_event_type_name: 'issue_assigned', | |
| user: | |
| { self: 'https://testsalucro.atlassian.net/rest/api/2/user?username=admin', | |
| name: 'admin', | |
| key: 'admin', | |
| accountId: '557058:193b909b-2762-422e-b9e3-934a157fbec9', | |
| emailAddress: 'wluk@mkpartners.com', | |
| avatarUrls: |
This file contains hidden or 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
| { | |
| "timestamp":1517462323413, | |
| "webhookEvent":"jira:issue_updated", | |
| "issue_event_type_name":"issue_updated", | |
| "user":{ | |
| "self":"https://testsalucro.atlassian.net/rest/api/2/user?username': 'admin", | |
| "name":"admin", | |
| "key":"admin", | |
| "accountId":"557058:193b909b-2762-422e-b9e3-934a157fbec9", | |
| "emailAddress":"wluk@mkpartners.com", |
This file contains hidden or 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 static void createNotification(Opportunity o, Id submitterId, String distOptions, String text, List<Id> workItemIds){ | |
| List<CollaborationGroup> uList = [ | |
| SELECT Id,Name | |
| FROM CollaborationGroup | |
| WHERE Name = 'Bridge Underwriters' | |
| OR Name = 'Term Underwriters' | |
| OR Name = 'Capital Markets' | |
| ]; | |
| Map<String,Id> um = new Map<String,Id>(); |
NewerOlder