Skip to main content

currentUserRecordKey()

Last updated 11/11/2024

Example

The following code assigns the current user record key into the stack as

Entity.EntityKey
, this value is retrieved from the User Table key Field field for the role.

Assigning the user's user record key to the filter
function CustomerLogon(five: Five, context: any, result: FiveError) : FiveError {
five.addFilter('Entity.EntityKey', five.currentUserRecordKey());
return five.success(result);
}