Hi @JhonaOB1993
@Tom_Slosse is right. (Google Translate) Debe enviarlo en inglés, de lo contrario, la gente no podrá ayudarlo.
Translating the question:
Good morning guys
Could you help me correct the following error?
It happens that I would like to attach all the files that you upload using Forms and send it by mail to approve or reject, according to the criterion of the evaluating user.
For now, the detail is that when generating the approval request and attaching the documents I get the following error:
Request failed. Error code: "InvalidRequestContent". Error message: "The content of the request was invalid and could not be deserialized: 'Could not find member' ContentBytes' in object of type 'ApprovalsConnectorAttachment'. Path 'attachments [0] .ContentBytes', line 1 , position 559. '. ".
It is worth mentioning that the flow does not generate an error when saving it
Regards,
Jhonatan Ora Badillo
The approval Power Automate expects something like this:
[
{
"name": "file 1 name",
"content": "file 1 content"
},
{
"name": "file 2 name",
"content": "file 2 content"
}
]
You have to do the following:
- Create a string variable
- For each attachment
- Get the file contents and name
- Append to the array:
{
"name": "file 1 name",
"content": "file 1 content"
}
Add this to your approval, Power Automate.
Can you please check if and let me know if you have any questions?
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Cheers
Manuel