Skip to content

AsType fails for polymorphic lookup fields #55

@MarkMpn

Description

@MarkMpn

Running the code from https://github.com/microsoft/power-fx-host-samples/blob/main/Samples/Dataverse101/Program.cs but changing the formula to:

AsType(First(Accounts).Owner, Users).'Full Name'

As described in the docs. this should cast the polymorphic Owner type to a user and return the name of that user. Instead it returns an ErrorValue with a message of "Runtime type mismatch".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions