Share via


RetailTransactionServiceEmployee::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

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

Run On

Called

Parameters

  • _loginToStore
    Type: boolean
    Boolean set to true to login to a particular store, set to false to login with only staffId and Password

Return Value

Type: container
The status as a container.

Exceptions

Exception Condition
Error

Throws error if fails to create/update.

See Also

Reference

RetailTransactionServiceEmployee Class