web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I send multipl...
Power Automate
Unanswered

How can I send multiple files to "Runa prompt" action

(1) ShareShare
ReportReport
Posted on by 47
Hi All
 
I am wandering if there is a way to send multiple pdf files in "Run a prompt"
I am getting files from SP List (attachments) and I have tried appending them into array and passing array to prompt variable, a well as appending files into array as an object 
 
{
  "name": @{items('EachDoc')?['Title']},
  "contentBytes": @{base64(body('GetAttContent'))}
}
but it fails with following error
{"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}
Anybody managed to do it?
Thanks
 
Categories:
I have the same question (0)
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    You can try to modify your prompt to add more than one documents.
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard