Thanks @Pstork1
I've replicated your example, and was able to send an email to myself with the attachment.
Now, for the last step, "Run a prompt", I get the error:
Action 'Run_a_prompt' failed: {"operationStatus":"Error","error":{"type":"Error","code":"InvalidPredictionInput","message":"{\"code\":\"BadRequest\",\"message\":\"Invalid image data.\",\"type\":\"\",\"param\":\"\",\"status\":0,\"innererror\":{\"code\":\"\",\"content_filter_result\":{}}}","properties":{"BackendErrorCode":"InvalidInferenceInput","DependencyHttpStatusCode":"400"},"innerErrors":[{"scope":"Generic","target":null,"code":"InvalidImage","type":"Error","properties":{"MlIssueCode":"InvalidImage"}}]},"predictionId":null}
The prompt expects a jpg file, and that was what I thought I'd be giving it, by passing the array variable to it:
This is the raw input I get from the flow execution:
{
"host": {
"connectionReferenceName": "shared_commondataserviceforapps",
"operationId": "PredictV2"
},
"parameters": {
"recordId": "4f105d6a-644d-4b07-bd0f-d286e121de5e",
"item/requestv2/Document_20input/base64Encoded": [
{
"Name": "Myimage.jpg",
"ContentBytes": {
"$content-type": "image/jpeg",
"$content": "/9j/4AsdasdJRgABAQAAAQABAAD/2wCEAAY"
}
}
]
}
}
This is the whole flow: