Skip to content

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

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

.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

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 moonbox3 added .NET workflows Related to Workflows in agent-framework labels May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET workflows Related to Workflows in agent-framework

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

2 participants