CatProcurementCache::getRequisitionerEmployerDepartments Method
Gets all the requisitioner data on whose behalf that the originator that corresponds to the given user ID can shop.
Syntax
client server public static container getRequisitionerEmployerDepartments(boolean _checkCacheForPreview, [UserId _userId])
Run On
Called
Parameters
- _checkCacheForPreview
Type: boolean
A Boolean value that indicates whether the existing cache will be checked to find whether the user is previewing a catalog.
- _userId
Type: UserId Extended Data Type
The user ID of the corresponding originator from which to get the requisitioner data.
Return Value
Type: container
A container.
Remarks
The following list explains the contents of the container:
The first element in the container is the CatProcurementErrorCode enumeration value that indicates what error has caused the resulting data to differ from the expected values.
The second element is the HcmWorker record ID for the given user.
The third element is also a container:
The first element is the HcmWorker record ID of the requisitioner.
The second element is the CompanyInfo (employer) record ID of the requisitioner.
The third element is the OMOperatingUnit (department) record-ID of the requisitioner.
The fourth element is the DirPerson (person) name of the requisitioner.
The fifth element is the CompanyInfo (employer) data area of the requisitioner.
The sixth element is the OMOperatingUnit (department) name of the requisitioner.
The return value has the first element so that caller (EP code) can get all the needed data in one trip to the server.