Professional Services Automation Apex API Developer Reference

pse.RevenueForecastVersionService

global with sharing class RevenueForecastVersionService

This service provides the functionality relating to revenue forecast versions.

Methods

createAsync

global 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

Name Type Description
request pse.RevenueForecastVersionService.CreateAsyncRequest The configuration for the operation.

Return Value

The 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.CreateAsyncRequest

global with sharing class CreateAsyncRequest

The request structure for creating revenue forecast versions.

Methods

CreateAsyncRequest

global CreateAsyncRequest()

A constructor that creates a new CreateAsyncRequest instance.

pse.RevenueForecastVersionService.CreateAsyncResponse

global with sharing class CreateAsyncResponse

The response structure from creating revenue forecast versions.

Properties

Name Type Description
JobInfos List<pse.RevenueForecastVersionService.JobInfo> The JobInfos that describe the newly created revenue forecast versions.

Methods

CreateAsyncResponse

global CreateAsyncResponse()

A constructor that creates a new CreateAsyncResponse instance.

pse.RevenueForecastVersionService.JobInfo

global with sharing class JobInfo

The structure that describes a newly created revenue forecast version.

Properties

Name Type Description
ApexJobId Id The ID of the batch Apex job that will create revenue forecast version details for the newly created revenue forecast version.
RevenueForecastVersionId Id The ID of the newly created revenue forecast version.

Methods

JobInfo

global JobInfo()

A constructor that creates a new JobInfo instance.

© Copyright 2009–2023 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.