Accounting Apex API Developer Reference

c2g.RemindersEmailService

global with sharing class RemindersEmailService

The service class related to Reminder emails.

Methods

sendEmails

global static Id sendEmails(Set<Id> tliIds, Id reminderRuleId)

Method to run Reminder batch process.

Input Parameters

Name Type Description
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

Name Type Description
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

Name Type Description
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

Name Type Description
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

Name Type Description
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

Name Type Description
IncludedTliId Id Included Tli Id.

Methods

TliInclusion

global TliInclusion(Id includedTliId)

© Copyright 2009–2019 FinancialForce.com, inc. Confidential – all rights reserved. Various trademarks held by their respective owners.