47
Views
4
Comments
Solved
How to Retrieve Entity Names and Their Attributes
Question

I am looking for a way to fetch all the entity names along with their respective attribute names. Additionally, I want to display this information in the front end of my app.

Is there a method or approach to get a complete list of all entities and their attributes and show them in the UI?


If possible , kindly share OML file.

2023-06-06 10-13-52
Rishabh Chawda
Solution

Hi @Dinesh M 

I have updated the OML file, please check it now.

Regards,

Rishabh


RetriveEntityNamesNew.oml
UserImage.jpg
Nani
Solution

In System module you can find a entities called "Entity" and "Entity_Attr" which store every entity and attributes details.

But there is some problem with this method it will fetch all entity's in the environment which is not good if you can specify the required "Espace_SSKey" and join with entity and you can avoid the systems and other unwanted entity.

Why "Espace_SSKey " because when deploying to test and prod the sskey will same in all environments, so you code works perfect in all environments.

2023-06-06 10-13-52
Rishabh Chawda

Hi @Dinesh M 

I have attached the OML below. Kindly refer to it and let me know if you have any queries.

Best Regards,

Rishabh 

RetriveEntityNamesAndAttributes.oml
2026-01-23 11-38-55
Dinesh Murugan
Champion

Hi @Rishabh Chawda ,

Thanks for sharing.

Could you please share the POC1 module ?

2023-06-06 10-13-52
Rishabh Chawda
Solution

Hi @Dinesh M 

I have updated the OML file, please check it now.

Regards,

Rishabh


RetriveEntityNamesNew.oml
UserImage.jpg
Nani
Solution

In System module you can find a entities called "Entity" and "Entity_Attr" which store every entity and attributes details.

But there is some problem with this method it will fetch all entity's in the environment which is not good if you can specify the required "Espace_SSKey" and join with entity and you can avoid the systems and other unwanted entity.

Why "Espace_SSKey " because when deploying to test and prod the sskey will same in all environments, so you code works perfect in all environments.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.