pse.ResourceAssignmentServiceglobal with sharing class ResourceAssignmentService Contains methods and structures to hold, unhold, and assign resources against resource requests. EnumsSchedulingStrategy
Methods
holdResourceRequestsglobal static List<pse.ResourceAssignmentService.ResourceAssignmentResponse> holdResourceRequests(List<pse.ResourceAssignmentService.ResourceAssignmentRequest> resourceAssignRequests) Enables you to hold the resources on a resource request. You must have the Resource Request Entry permission control assigned to hold resources. Input Parameters
Return ValueReturns the list of pse.ResourceAssignmentService.ResourceAssignmentResponse. Sample Code
assignResourceRequestsglobal static List<pse.ResourceAssignmentService.ResourceAssignmentResponse> assignResourceRequests(List<pse.ResourceAssignmentService.ResourceAssignmentRequest> resourceAssignRequests) This services enables you to create Assignment with the requested resource on the Resource Request. You must have the Resource Request Entry and Staffing permission control assigned to create assignments. If scheduling strategy is not defined and the UseDefaultStrategy field is selected, then scheduling strategy is retrieved from the Default Scheduling Strategy field of the Assignment Settings custom setting. If Default Scheduling Strategy field is blank, then the 'Calculate End Date, Level Schedule' strategy will be used. Input Parameters
Return ValueReturns the list of pse.ResourceAssignmentService.ResourceAssignmentResponse. Sample Code
unholdResourceRequestsglobal static List<pse.ResourceAssignmentService.ResourceUnholdOrUnassignResponse> unholdResourceRequests(List<pse.ResourceAssignmentService.ResourceUnholdOrUnassignRequest> resourceUnholdRequests) Enables you to update the provided resource requests to unhold by updating the fields of the resource request. You must have the Resource Request Entry permission control assigned to hold resources. If an error occurs while processing any resource request, updates to other resource requests are rolled back and an error is returned. Input Parameters
Return ValueReturns the list of pse.ResourceAssignmentService.ResourceUnholdOrUnassignResponse. Sample Code
unassignResourceRequestsglobal static List<pse.ResourceAssignmentService.ResourceUnholdOrUnassignResponse> unassignResourceRequests(List<pse.ResourceAssignmentService.ResourceUnholdOrUnassignRequest> resourceUnassignRequests) Updates the provided resource requests to unassign by updating the fields of the resource request. If an error occurs when unassigning any resource request, the process is rolled back and an error is returned. Input Parameters
Return ValuePse.ResourceAssignmentService.ResourceUnholdOrUnassignResponse. Sample Code
pse.ResourceAssignmentService.ResourceAssignmentRequestglobal with sharing class ResourceAssignmentRequest Contains parameters for holding a resource on a resource request or assigning a resource request to a resource. The CustomHours and PercentAlloc fields are required for the CALCULATE_END_DATE_CUSTOM_SCHEDULING and PERCENT_ALLOCATION scheduling strategies, respectively. Properties
pse.ResourceAssignmentService.ResourceAssignmentResponseglobal with sharing class ResourceAssignmentResponse Returns information related to the resource request ID and resource ID. Properties
pse.ResourceAssignmentService.ResourceUnholdOrUnassignRequestglobal with sharing class ResourceUnholdOrUnassignRequest Contains parameters for unholding or unassigning the resource on a resource request. Properties
MethodsResourceUnholdOrUnassignRequestglobal ResourceUnholdOrUnassignRequest() pse.ResourceAssignmentService.ResourceUnholdOrUnassignResponseglobal with sharing class ResourceUnholdOrUnassignResponse Returns information related to the resource request. Properties
|