How to store user details in session varible and send UserName/EmaiId to backed API.

I have created appliation which has different user roles i.e. claim team, customer team and logistics team now, I have to send Users EmailId/ Username to backend API to get custom fields of User.


Thanks in advance.

Sandip, the user id is automatically stored in the session when the user logs in. You can retrieve that value using GetUserId().

Having the User Id, you can query the User system table to retrieve other details from the user.

leonardo.fernandes wrote:

Sandip, the user id is automatically stored in the session when the user logs in. You can retrieve that value using GetUserId().

Having the User Id, you can query the User system table to retrieve other details from the user.


Thank you Leonardo...!!