WrkCtrTable::adjustWorkerResourceGroupMembership Method
Adjusts resource group memberships for a worker based on changes in the employment date.
Syntax
client server public static void adjustWorkerResourceGroupMembership(
WrkCtrWorker _worker,
RefRecId _legalEntity,
utcdatetime _utcOldValidFrom,
utcdatetime _utcOldValidTo,
utcdatetime _utcNewValidFrom,
utcdatetime _utcNewValidTo)
Run On
Called
Parameters
- _worker
Type: WrkCtrWorker Extended Data Type
The ID of the worker to adjust the membership for.
- _legalEntity
Type: RefRecId Extended Data Type
The legal entity of the worker for which to adjust the membership.
- _utcOldValidFrom
Type: utcdatetime
The original valid from date of the employment.
- _utcOldValidTo
Type: utcdatetime
The original valid to date of the employment.
- _utcNewValidFrom
Type: utcdatetime
The new valid from date of the employment.
- _utcNewValidTo
Type: utcdatetime
The new valid to date of the employment.
Exceptions
Exception | Condition |
---|---|
Error | The update of the resource group membership is not valid. -or- The deletion of the resource group membership is not valid. |