Returns the ID of the current user.
Property Value/Return Value
Type: Text constant or Code
This string contains the ID of the current user.
Remarks
Example
This example requires that you create the following
variables and text constant in the C/AL Globals window.
Variable name |
DataType |
Length |
User
|
Text
|
1024
|
Text Constant |
ENU Value |
Text000
|
The system was started by %1.
|
|
Copy Code |
User := USERID;
MESSAGE(Text000, User);
|
The following is an example of the output of the
preceding code:
The system was started by simon.
See Also