Skip to content

[FEATURE] Add field Display Name retrieval and SQL alias naming #621

Description

@strikeir13

I use SQL for CDS to prepare Dataverse queries that I use to retrieve data for consumption in Power BI. The ability to use native SQL queries makes data retrieval much faster than the current native Dataverse connector using the TDS endpoint. However, the current native Dataverse connector for Power BI automatically pulls in the Dataverse field Display Name (in the model view frontend, not in Power Query), which greatly simplifies my report development.

Currently, I am manually renaming all the fields in my SQL queries, e.g. a SQL alias like account.name as 'Account Name', which works fine but can be quite time-consuming and repetitive. It would be AMAZING if it were possible for SQL for CDS to have an option that automatically pulls in the Dataverse field Display Names as the query field names and updates the SQL code with the necessary, e.g. ... as 'XYZ Display Name' for all entities in the query. If there were identical Display Names across different entities (e.g. fields named "Name"), it might be necessary to differentiate identical field names by following the Dynamics naming convention of Field Display Name (Entity Name) or something more else SQL-style.

I often develop queries in FetchXML and send them to CDS for SQL once I've gotten them mostly complete. FetchXML will show entity Display Names on the columns in the result view, which is very useful for developing queries, and I think having Display Names available for retrieval in SQL for CDS would similarly improve its usefulness for query development.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions