c2g.AllocationScheduleServiceglobal inherited sharing class AllocationScheduleService The service class relating to Allocation Schedules. EnumsRetrieveTransactionsOptionThe list of valid options for the range of periods to retrieve transactions from when using a RetrieveTransactionsOption of RetrieveTransactionsByPeriod.
RetrieveTransactionsByPeriodThe list of valid options for the range of periods to retrieve transactions from when using a RetrieveTransactionsOption of RetrieveTransactionsByPeriod.
RetrieveTransactionsByMonthThe list of valid options for the range of months to retrieve transactions from when using a RetrieveTransactionsOption of RetrieveTransactionsByMonth.
PostingDateOptionThe list of valid options for the calculation of the posting date.
PeriodOptionThe list of valid options for how the transaction period will be calculated.
ScheduleExpiresOptionThe list of valid options for defining when the schedule will end.
Methods
getAllAllocationSchedulesglobal static List<c2g.AllocationScheduleService.AllocationSchedule> getAllAllocationSchedules() Return a list of all the allocation schedules. Use ManageAllocations (Manage Allocations) custom permission to grant permissions on this method. Return ValueThis service returns a list of c2g.AllocationScheduleService.AllocationSchedule objects. Sample Code
getAllSchedulableTemplatesglobal static List<c2g.AllocationScheduleService.AllocationTemplate> getAllSchedulableTemplates() Returns all templates available for selection. A template is only available for selection if it has 100% of its total retrieve value distributed. All templates with a company the user has access to will be retrieved. If in single company mode, all companies created in single company mode will also be retrieved. Return ValueThis service returns a list of c2g.AllocationScheduleService.AllocationTemplate objects. Sample Code
deleteAllocationSchedulesglobal static Set<Id> deleteAllocationSchedules(Set<Id> ids) Delete all the allocation schedules with the given ids. Use ManageAllocations (Manage Allocations) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns a set of Id objects. Sample Code
saveglobal static Set<c2g.AllocationScheduleService.AllocationSchedule> save(Set<c2g.AllocationScheduleService.AllocationSchedule> dtos) Save the given allocation schedules. Active schedules will get scheduled. Each active schedule counts towards the Salesforce limit of scheduled Apex jobs. Use ManageAllocations (Manage Allocations) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns a set of c2g.AllocationScheduleService.AllocationSchedule objects. Sample Code
runNowglobal static Set<c2g.AllocationScheduleService.AllocationSchedule> runNow(Set<c2g.AllocationScheduleService.AllocationSchedule> dtos) Run the given allocation schedules now. Each active schedule counts towards the Salesforce limit of scheduled Apex jobs. Use ManageAllocations (Manage Allocations) custom permission to grant permissions on this method. Input Parameters
Return ValueThis service returns a set of c2g.AllocationScheduleService.AllocationSchedule objects. Sample Code
c2g.AllocationScheduleService.AllocationScheduleglobal with sharing class AllocationSchedule This data type allows you to specify an Allocation Schedule. Sample Code
Properties
c2g.AllocationScheduleService.AllocationScheduleTemplateglobal with sharing class AllocationScheduleTemplate This data type allows you to specify an Allocation Schedule Template. A list of Allocation Schedule Templates will be held by every Allocation Schedule. An Allocation Schedule Template is simply an Allocation Template with a sequence number. Sample Code
Properties
c2g.AllocationScheduleService.AllocationTemplateglobal with sharing class AllocationTemplate This data type represents an Allocation Template. An Allocation Template will be held on every Allocation Schedule Template. An Allocation Schedule Template simply holds the id of an allocation template and its name. A list of all available Allocation Templates can be retrieved via AllocationScheduleService.getAllSchedulableTemplates. Sample Code
Properties
|