c2g.RemindersEmailService
global with sharing class RemindersEmailService
The service class related to Reminder emails.
Methods
- global static Id sendEmails(Set<Id> tliIds, Id reminderRuleId)
- global static Id sendEmails(Set<Id> tliIdsSelected, Set<Id> tliIdsExcluded, Id reminderRuleId, Id reminderId, Boolean isReSendingErrored)
- Deprecated
- global static Id sendEmails(List<c2g.RemindersEmailService.TliInclusion> includedTliWrappers, List<c2g.RemindersEmailService.TliExclusion> excludedTliWrappers, Id reminderRuleId, Id reminderId, Boolean isReSendingErrored)
- global static String getCongaBatchURLForRemindersAttachment(Set<Id> invoiceIds, Id reminderRuleId)
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
use another method
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.
sendEmails
global static Id sendEmails(List<c2g.RemindersEmailService.TliInclusion> includedTliWrappers, List<c2g.RemindersEmailService.TliExclusion> excludedTliWrappers, 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
| includedTliWrappers |
List<c2g.RemindersEmailService.TliInclusion> |
Wrapper of TransactionLineItems for which you want to send reminders. |
| excludedTliWrappers |
List<c2g.RemindersEmailService.TliExclusion> |
Wrapper 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.
getCongaBatchURLForRemindersAttachment
global static String getCongaBatchURLForRemindersAttachment(Set<Id> invoiceIds, Id reminderRuleId)
Method to return conga batch url to use in a button to attach conga templates to invoices.
Input Parameters
| invoiceIds |
Set<Id> |
Ids of invoices for which you want to attach conga templates. |
| reminderRuleId |
Id |
Id of ReminderRule record. |
Return Value
This service returns conga batch url to use in a button to attach conga templates to invoices.
c2g.RemindersEmailService.TliExclusion
global with sharing class TliExclusion
The service class relating to Excluded Transaction Line Item.
Properties
| ExcludedTliId |
Id |
Excluded Tli Id.
|
| ExclusionReason |
String |
Exclusion Reason.
|
Methods
TliExclusion
global TliExclusion(Id excludedTliId, String exclusionReason)
c2g.RemindersEmailService.TliInclusion
global with sharing class TliInclusion
The service class relating to Included Transaction Line Item.
Properties
| IncludedTliId |
Id |
Included Tli Id.
|
Methods
|