how can i get the name(label) of a record by using its id?

how can i get the name(label) of a record by using its id?

  

how can i get the name(label) of a record by using its id?

Hello Jozy,

I recommend you the online training, as this is explained there.

https://www.outsystems.com/learn/paths/

Choose one training in Guided Paths, either web or mobile, and have fun.

Cheers

Solution

Hello Jozy,


If you want to get Label from an entity using its ID, You just have to use GET<ENTITY_NAME>(ID)


for example: 

If your entity name is STATUS, you can get label name using 

GetStatus(ID).Status.Label


Hope this helps

Solution

Hi Jozy,

You can get the name of a record by using the Get<EntityName>() function.Consider the example shown below->


Here for the "Room" entity, you are passing the RoomId and getting the room number. Similarly you can get any attribute using Get<Entity>() function.