How do i get user name by id in Reactive? GetUser(GetUserId()).User.Name doesn't work in Reactive.
The Users API only have this: User_GetIdByUsername, is there something like User_GetNameById?
Krushana Mantri wrote:
Hi Benjamin,
You can get logged in User name by fetching the User aggregate with filter User.Id=GetUserId()
like below:
Hope this will help you
Regards,
Krushna
To get the user by id you just need to add filter like in aggregate User.Id=Variable, it will give you the user name with that id
Regards,Krushna
Hi Benjamin,Try using the User_GetName server action from the Users module.
- Assif
Thanks Assif! But User_GetName returns current logged on user, it doen'st accept any input. I need to get name by Id (a variable).
We built our own function to retrieve the user name from a user id input.
It's too bad that you got rid of a really useful action GetUser(). :-( You've made for a lot more work. I used this in Classic everywhere!!!!!!