RetailTransactionService::staffLogOn Method [AX 2012]

Method is used for updating the RetailStaffLoginLog.staffId with the value in _staffId if the record exists in RetailStaffLoginLog; else creates the record in RetailStaffLoginLogtable.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          client server public static container staffLogOn(
            RetailStaffId _staffId, 
            RetailStoreId _storeId, 
            RetailTerminalId _terminalId, 
            RetailStaffPassword _password, 
           [boolean _loginToStore])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static container staffLogOn(
            RetailStaffId _staffId, 
            RetailStoreId _storeId, 
            RetailTerminalId _terminalId, 
            RetailStaffPassword _password)

Run On

Called

Parameters

Return Value

Type: container
The status as a container.

Exceptions

Exception Condition
Error

Throws error if fails to create/update.

See Also

Reference

RetailTransactionService Class