ProjResourceAvailabilityBaseQuery.getResourceAvailability Method [AX 2012]

Retrieves Worker resource availability information for the specified Project or Quotation, or Task within the specified date range.

public boolean getResourceAvailability(
    Num activityId, 
    smmActivityNumber taskId, 
    PSARSEntityType activityType, 
    date startDate, 
    date endDate, 
    guid userSession, 
   [boolean includeHardBookCapacity, 
    boolean includeSoftBookCapacity, 
    boolean includeScheduleStatus])

Run On

Server

Parameters

activityId
Type: Num Extended Data Type
Project or Quotation Id.
taskId
Type: smmActivityNumber Extended Data Type
Task Id.
activityType
Type: PSARSEntityType Enumeration
Determines whether specified ActivityId is a Project or Quotation.
startDate
Type: date
Start date of the date range.
endDate
Type: date
End date of the date range.
userSession
Type: guid
User session to use.
includeHardBookCapacity
Type: boolean
Determines whether Hard-booked capacity will be retrieved.
includeSoftBookCapacity
Type: boolean
Determines whether Soft-booked capacity will be retrieved.
includeScheduleStatus
Type: boolean
Determines whether Schedule status information will be retrieved.

Return Value

Type: boolean
true when Worker resource availability is retrieved successfully.

When UseDefault is set to TRUE, it will retrieve all availability information.

When UseDefault is set to FALSE, it will only retrieve Hard-booked capacity information.

Community Additions

ADD
Show: