PSA Apex API Developer Reference

pse.APIActualsService

global with sharing class APIActualsService

Methods

ProcessTransactionDeltas

global static pse.APICommonsService.BatchStatus ProcessTransactionDeltas()

Processes transaction deltas immediately.

Return Value

This service returns an APICommonsService.BatchStatus object

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.APICommonsService.BatchStatus bs = pse.ProcessTransactionDeltas();

RecalcProjectActualsByProjects

global static pse.APICommonsService.BatchStatus RecalcProjectActualsByProjects(pse.APIActualsService.ActualsContextRecalcProjectActualsByProjects ac)

Recalculates project actuals for the specified projects.

Input Parameters

Name Type Description
ac pse.APIActualsService.ActualsContextRecalcProjectActualsByProjects A structure containing the projects to recalculate actuals for.

Return Value

This service returns an APICommonsService.BatchStatus object.

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.APICommonsService.BatchStatus bs = pse.RecalcProjectActualsByProjects(ac);

RecalcProjectActualsWithActualsNeedsRecalc

global static pse.APICommonsService.BatchStatus RecalcProjectActualsWithActualsNeedsRecalc(pse.APIActualsService.ActualsContextRecalcProjectActualsWithActualsNeedsRecalc ac)

Recalculates project actuals on projects where the Actuals: Needs Recalc checkbox is selected.

Input Parameters

Name Type Description
ac pse.APIActualsService.ActualsContextRecalcProjectActualsWithActualsNeedsRecalc Structure containing the IDs of regions, practices, groups and accounts for which to recalculate project actuals where the Actuals Needs Recalc checkbox is selected.

Return Value

This service returns an APICommonsService.BatchStatus object.

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.APIActualsService.ActualsContextRecalcProjectActualsByProjects

global inherited sharing class ActualsContextRecalcProjectActualsByProjects extends APICommonsService.BatchContext

a structure containing the projects to recalculate actuals for. this class/type extends apicommonsservice.batchcontext.

This class extends pse.APICommonsService.BatchContext

Properties

Name Type Description
projectIDs set<ID> ids of the projects to filter actuals data for.

pse.APIActualsService.ActualsContextRecalcProjectActualsWithActualsNeedsRecalc

global inherited sharing class ActualsContextRecalcProjectActualsWithActualsNeedsRecalc extends APICommonsService.BatchContext

structure containing the ids of regions, practices, groups and accounts for which to recalculate project actuals where the actuals needs recalc checkbox is selected. this class/type extends apicommonsservice.batchcontext.

This class extends pse.APICommonsService.BatchContext

Properties

Name Type Description
regionID ID id of the region on which to filter projects on which to recalculate actuals.
practiceID ID id of the practice on which to filter projects on which to recalculate actuals.
groupID ID id of the group on which to filter project on which to recalculate actuals.
accountID ID ID of the account on which to filter project on which to recalculate actuals.
© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.