microsoft / microsoft/Power-Fx

Support for Accounts@{record}

Open
#1,479 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.4k
Forks
358
Avg merge
10h 34m
Merged PRs (30d)
3

Description

Record literals only specify logical names. { field: 12}.
But records can have display names.
To specify a display name in a literal , use the Type@ prefix to a record. This gets display names from the given type.

For example:

Accounts@{ 'Account Name' : "Name 2"}.'Account Name'

Or this: (defined with display name, and then accessed via logical name)
Accounts@{ 'Account Name' : "Name 2"}.name

This is ok:
Accounts@{ name : "Name 2"}.name

This is an error since XXX isn't on the type.
Accounts@{ 'Account Name' : "Name 2", XXX :12}.'Account Name'

This works in Power Apps, but not supported in Fx - likely because of how symbols are wired up. (probably similar to #1337)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating how symbols are wired for record literals and compare the shown cases with Power Apps behavior. Read the related issue #1337 for context; done means typed record literals accept display-name fields, reject fields absent from the type, and preserve logical-name access.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.