I would like to save a file in a collection and then, want to change each collected file into JSON format.
I would like to collect the file in a certain collection separately with its file attachment and its name.
Then, the collected multiple files from the collection are to be passed to a certain power automate flow. To do so, I have found out that the file needs to be in acceptable format like JSON. So before passing the files, I would like to change its format into JSON also.
Could you please give me some idea of this. I have provided with the formula and screenshot also.
Thank you.
Collect(
fileUploadCol,
{
FileName: {file:{contentBytes:Last(fileQuotation.Attachments).Name}},
FileAttachment: {file:{contentBytes:Last(fileQuotation.Attachments).Value}}
}
)