pse.UtilizationAnalyticsServiceglobal with sharing class UtilizationAnalyticsService This service provides the functionality relating to Utilization Analytics. Methods
runUtilizationglobal static pse.UtilizationAnalyticsService.RunUtilizationResponse runUtilization() Queues Utilization Analytics Apex jobs to asynchronously process objects required. For example, Timecards and Assignments. 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.UtilizationAnalyticsService.RunUtilizationResponse response = pse.UtilizationAnalyticsService.runUtilization(); if (!response.errors.isEmpty()){ System.debug('Errors: ' + response.errors); } runUtilizationglobal static pse.UtilizationAnalyticsService.RunUtilizationResponse runUtilization(Date startDate, Date endDate) Queues Utilization Analytics Apex jobs to asynchronously process objects required. For example, Timecards and Assignments. 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.UtilizationAnalyticsService.RunUtilizationResponse response = pse.UtilizationAnalyticsService.runUtilization(); if (!response.errors.isEmpty()){ System.debug('Errors: ' + response.errors); } runUtilizationglobal static pse.UtilizationAnalyticsService.RunUtilizationResponse runUtilization(pse__Utilization_Setup__c setup) Queues Utilization Analytics Apex jobs to asynchronously process objects required. For example, Timecards and Assignments. 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.UtilizationAnalyticsService.RunUtilizationResponse response = pse.UtilizationAnalyticsService.runUtilization(); if (!response.errors.isEmpty()){ System.debug('Errors: ' + response.errors); } pse.UtilizationAnalyticsService.RunUtilizationResponseglobal inherited sharing class RunUtilizationResponse The response structure from creating a utilization run. Properties
MethodsRunUtilizationResponseglobal RunUtilizationResponse() A constructor that creates a new RunUtilizationResponse instance. |