Is there a way to convert the entity records object to a datatable?

I want to read data from an entity in the data service and return the data as a data table. Is there a way to do it with a ready-to-use activity or something?

I know, we could always build a data table with the custom columns, and read the records object with a for each loop, and populate the data table. But since I want to do this across several entities, I am looking for an easier way to do this with a single reusable activity. I looked in the DataServices Package but it does not have any activity like this.
@sudheern ? @Vibhor.Shrivastava @Lahiru.Fernando

Hi @savantsa,
How the entity records look like.


It is a list of the entity. If your entity is called “employee” then it is a list of employees. If the entity is “department”, then it is a list of departments and so on.