ffrr.RevenueScheduleServiceglobal with sharing class RevenueScheduleService BETA Contains methods for Revenue Schedule operations. Methodsgenerateglobal static List<Id> generate(Set<Id> sourceRecordIds) Disclaimer: Revenue Schedules are currently in development and not all use cases are supported (for full details refer to help). FinancialForce reserves the right to modify or remove the Revenue Schedules feature. There is no support for this feature while it is in development. Input Parameters
Return ValueThe Ids of the created RevenueSchedule__c's Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. // In this example the Revenue Schedule Service is used to create a Revenue Schedule for each // source record Id passed in to the service method, and return a list of associated Revenue Schedule Ids // Retrieve the Ids of the Performance obligations that will be used as the source Ids to generate Revenue Schedules List<ffrr__PerformanceObligation__c> sourceRecords = [SELECT Id FROM ffrr__PerformanceObligation__c WHERE ffrr__AccountName__c = 'FF']; Set<Id> sourceRecordIds = new Set<Id>(); for( ffrr__PerformanceObligation__c sourceRecord : sourceRecords ) { sourceRecordIds.add(sourceRecord.Id); } // Get the List of Revenue Schedule Ids that have been generated by this service List<Id> revenueScheduleIds = ffrr.RevenueScheduleService.generate(sourceRecordIds); |