WrkCtrActivityRequirement.getCompanyContext Method
Gets the ID of the company for which the requirement must be used.
Syntax
public CompanyId getCompanyContext(boolean _throwIfWrkCtrActivityNotFound)
Run On
Called
Parameters
- _throwIfWrkCtrActivityNotFound
Type: boolean
A Boolean value that indicates if an error must be thrown if a WrkCtrActivity record cannot be found.
Return Value
Type: CompanyId Extended Data Type
The ID of the company for which the requirement must be used.
Exceptions
Exception | Condition |
---|---|
Error | A company context could not be established. |