close
Skip to content

.NET: fix Foreach loop value collapsing multi-field records to first field - #6187

Closed
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix-6183-foreach-multifield-records
Closed

.NET: fix Foreach loop value collapsing multi-field records to first field#6187
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix-6183-foreach-multifield-records

Conversation

@hanhan761

Copy link
Copy Markdown
Contributor

Fixes #6183

When a Foreach action iterates over a table with multi-field records,
the loop value variable only received the first field of each record
due to using .Properties.Values.First() instead of converting the
whole record via ToFormula().

Changed to use value.ToFormula() which preserves all fields through
the RecordDataValue -> ToRecordValue() conversion path.

Fixes microsoft#6183
Copilot AI review requested due to automatic review settings May 30, 2026 07:00
@moonbox3 Evan Mattson (moonbox3) added .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows labels May 30, 2026
@peibekwe

Copy link
Copy Markdown
Contributor

Duplicate of #6208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET: [Bug]: Declarative Foreach collapses multi-field records to their first field in the loop value variable

3 participants