When passing the static ID of the AI Model in the "AI Model" field of the AI Builder "Process Documents" action, the flow saves perfectly fine. However, when I try to dynamically provide the AI Model ID to the action via a variable or output from another action, I get this error:
Request to XRM API failed with error: 'Message: Flow client error returned with status code "BadRequest" and details "{"error":{"code":"InvalidOpenApiFlow","message":"Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Extract_information_from_Invoice': The API operation 'PredictV2' is missing required property 'item'.'."}}". Code: 0x80060467 InnerError: '.
Here is an example of it failing to save when passing the model id to it via a variable:
Here is an example of it failing to save when passing the model id via the result of a query to the AI Model table in Dataverse:
Here is an example of it successfully saving when passing the model id via an environmental variable:
I have tested that all three of the values passed in each of these cases are the same. This is the first time I'm posting on a forum so let me know if I should be providing any more important context :)

Report
All responses (
Answers (