pse.RevenueForecastVersionServiceglobal with sharing class RevenueForecastVersionService This service provides the functionality relating to revenue forecast versions. MethodscreateAsyncglobal static pse.RevenueForecastVersionService.CreateAsyncResponse createAsync(pse.RevenueForecastVersionService.CreateAsyncRequest request) Creates a revenue forecast version, and enqueues a batch Apex job to create its revenue forecast version details. Input Parameters
Return ValueThe result of the operation. 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. pse.RevenueForecastVersionService.CreateAsyncRequest request = new pse.RevenueForecastVersionService.CreateAsyncRequest(); pse.RevenueForecastVersionService.CreateAsyncResponse response = pse.RevenueForecastVersionService.createAsync(request); List<pse.RevenueForecastVersionService.JobInfo> jobInfos = response.JobInfos; Id jobId = jobInfos[0].ApexJobId; Id revenueForecastVersionId = jobInfos[0].RevenueForecastVersionId; pse.RevenueForecastVersionService.CreateAsyncRequestglobal with sharing class CreateAsyncRequest The request structure for creating revenue forecast versions. MethodsCreateAsyncRequestglobal CreateAsyncRequest() A constructor that creates a new CreateAsyncRequest instance. pse.RevenueForecastVersionService.CreateAsyncResponseglobal with sharing class CreateAsyncResponse The response structure from creating revenue forecast versions. Properties
MethodsCreateAsyncResponseglobal CreateAsyncResponse() A constructor that creates a new CreateAsyncResponse instance. pse.RevenueForecastVersionService.JobInfoglobal with sharing class JobInfo The structure that describes a newly created revenue forecast version. Properties
Methods |