Get Role ID
2790
Views
5
Comments
Implemented
Builtin & User functions
OutSystems 5.1
Roles have 3 functions:

- CheckRole
- GrantRole
- RevokeRole



It could have one more function to get the ID (RoleId) of the role.
Gonçalo Borrêga
Hi Carlos,

Just type Roles.ROLENAME and that gives you the Id of that role.
In your example, that would be Roles.eSpaceUser

Never knew about that.

Thanks for the tip :)

This post helped me a lot. Thanks Gonçalo!

Never knew about that as well....
Thank you for sharing Goncalo

Johan den Ouden
mvp_badge
MVP

I really didn't knew this! Thanks saved me a lot of time!