@@ -75,7 +75,7 @@ export const MicrosoftDataverseBlock: BlockConfig<DataverseResponse> = {
7575 } ,
7676 required : {
7777 field : 'operation' ,
78- value : [ 'whoami' , 'search' ] ,
78+ value : [ 'whoami' , 'search' , 'execute_action' , 'execute_function' ] ,
7979 not : true ,
8080 } ,
8181 } ,
@@ -96,6 +96,7 @@ export const MicrosoftDataverseBlock: BlockConfig<DataverseResponse> = {
9696 'upload_file' ,
9797 'download_file' ,
9898 'execute_action' ,
99+ 'execute_function' ,
99100 ] ,
100101 } ,
101102 required : {
@@ -371,7 +372,7 @@ Return ONLY the filter expression - no $filter= prefix, no explanations.`,
371372 title : 'Order By' ,
372373 type : 'short-input' ,
373374 placeholder : 'e.g., name asc, createdon desc' ,
374- condition : { field : 'operation' , value : 'list_records' } ,
375+ condition : { field : 'operation' , value : [ 'list_records' , 'search' ] } ,
375376 mode : 'advanced' ,
376377 wandConfig : {
377378 enabled : true ,
@@ -452,7 +453,7 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
452453 type : 'short-input' ,
453454 placeholder : 'Target record GUID' ,
454455 condition : { field : 'operation' , value : [ 'associate' , 'disassociate' ] } ,
455- required : { field : 'operation' , value : [ 'associate' , 'disassociate' ] } ,
456+ required : { field : 'operation' , value : 'associate' } ,
456457 } ,
457458 ] ,
458459 tools : {
@@ -498,6 +499,8 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
498499 if ( rest . functionParameters ) {
499500 cleanParams . parameters = rest . functionParameters
500501 rest . functionParameters = undefined
502+ // Prevent stale action parameters from overwriting mapped function parameters
503+ rest . parameters = undefined
501504 }
502505
503506 Object . entries ( rest ) . forEach ( ( [ key , value ] ) => {
@@ -581,6 +584,7 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
581584 fetchXmlPagingCookie : { type : 'string' , description : 'Paging cookie for FetchXML pagination' } ,
582585 moreRecords : { type : 'boolean' , description : 'Whether more records are available (FetchXML)' } ,
583586 results : { type : 'json' , description : 'Search results array' } ,
587+ facets : { type : 'json' , description : 'Facet results for search (when facets requested)' } ,
584588 fileContent : { type : 'string' , description : 'Base64-encoded downloaded file content' } ,
585589 fileName : { type : 'string' , description : 'Downloaded file name' } ,
586590 fileSize : { type : 'number' , description : 'File size in bytes' } ,
0 commit comments