c2g.RemindersEmailService
global with sharing class RemindersEmailService
Methods
sendEmails
global static Id sendEmails(Set<Id> tliIds, Id reminderRuleId)
Method to run Reminder batch process.
Input Parameters
| tliIds |
Set<Id> |
Ids of TransactionLineItems for which you want to send reminders. |
| reminderRuleId |
Id |
Id of ReminderRule record. |
Return Value
This service returns Id of Reminder__c object.
sendEmails
global static Id sendEmails(Set<Id> tliIdsSelected, Set<Id> tliIdsExcluded, Id reminderRuleId, Id reminderId, Boolean isReSendingErrored)
Method to run Reminder batch process having some TLIs selected and some excluded. Same method is used to re-run batch for excluded and errored records.
Input Parameters
| tliIdsSelected |
Set<Id> |
Ids of TransactionLineItems for which you want to send reminders. |
| tliIdsExcluded |
Set<Id> |
Ids of TransactionLineItems for which you want to exclude sending reminders. |
| reminderRuleId |
Id |
Id of ReminderRule record. |
| reminderId |
Id |
This parameter is used only if you are sending reminders for excluded or errored TLIS. Specify Id of Reminder record which was created suring first run. |
| isReSendingErrored |
Boolean |
Speficy true only if you are sending reminders for errored TLIs. Set the value to null otherwise. |
Return Value
This service returns Id of Reminder__c object.
|