Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ops
  • Loading branch information
waleedlatif1 committed Feb 19, 2026
commit 3c1c3662028414c8a6bf3df1c772a86c3563e8d3
7 changes: 5 additions & 2 deletions apps/sim/blocks/blocks/microsoft_dataverse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,16 +492,19 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
}

// Map block subBlock IDs to tool param names where they differ
if (rest.searchEntities) {
if (operation === 'search' && rest.searchEntities) {
cleanParams.entities = rest.searchEntities
rest.searchEntities = undefined
}
if (rest.functionParameters) {
if (operation === 'execute_function' && rest.functionParameters) {
cleanParams.parameters = rest.functionParameters
rest.functionParameters = undefined
// Prevent stale action parameters from overwriting mapped function parameters
rest.parameters = undefined
}
Comment thread
waleedlatif1 marked this conversation as resolved.
// Always clean up mapped subBlock IDs so they don't leak through the loop below
rest.searchEntities = undefined
rest.functionParameters = undefined

Object.entries(rest).forEach(([key, value]) => {
if (value !== undefined && value !== null && value !== '') {
Expand Down