Use Role/Screen Id in Static
184
Views
5
Comments
New
Service Studio

Right now, you must put the name of a role/screen hard-coded in a static entity. Once the name changes, you'll lose this link, and I suggest too implement some Role Identifier, which you can use in a static, We use this to filter parts of data for users with a specific role. for example, a dynamic menu, which is role-based. this contains the RoleName and Screen URL hard coded.  

Changed the category to
Service Studio

Hi Damian,

Not sure why you need to do what you describe, this informationcan queried from the OutSystems metadata entities

Hi all!

Daniel, I get Damian's point. It should be possible to reference Roles like it is with Static Entity records (Entities.MyStaticEntity.RecordName).

With your suggestion, I believe you would have a query to those system entities where there would be a filter by the Role Name in a hard-coded way. If the Role's name changes, you would have to update that filter.


Regards.

I get it too, and I liked the idea

Hi all,

This is kind of what I meant; I also look to use these Id's in static entities, so you can link a static entity record to a role, and the query with the entities Daniel showed, I want to prevent the hard coded variables, because when a role name changes, the code can break.