Skip to content

DisplayCollectionName uses naive + "s" pluralization in tables.create() #166

@abelmilash-msft

Description

@abelmilash-msft

When creating a table, DisplayCollectionName is always set by appending "s" to the label:

Code:

where label is either the provided display_name or falls back to the table schema name. Both paths are affected. Examples of incorrect results:

display_name Current result Expected
"Person" "Persons" "People"
"Category" "Categorys" "Categories"
"new_Person" (schema fallback) "new_Persons" "new_People"

Location: src/PowerPlatform/Dataverse/data/_odata.py, _build_create_entity() (also _create_table() which delegates to it)

Proposed fix: Evaluate and consider a lightweight pluralization library (e.g. inflect).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions