microsoft / microsoft/Power-Fx
Support for Accounts@{record}
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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