Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Dear Lissa,
Thanks for your updates.
I create the flow based on the example of your previous posts.
Move the following attachments to the folder Category Blue automatically.
- Category_Blue_Jane
- Category_Blue_Jon
- Category_Blue_Jen
The Initialize Variable action can create the file array if you have uploaded multiple attachments to the form. No matter single attachment or the multiple attachments, the Append to array variable can create an array for all uploaded files.
As you have got how to parse JSON, the name and the id parameter of the attachments should be extracted.
As the normal form attachments are saved in OneDrive for Business, you can get the file content based on the id got from Parse JSON.
After got the file content, you can create an array like what I showed above for creating file in the library folder.
{
"Name": "@{items('Apply_to_each')['name']}",
"Content": @{body('Get_file_content')}
}
As not all the attachments meet the condition Category Blue, you need to use Filter Array from the created array to filter the matched files.
As there is "_" in the file name, replace it with a space is necessary by using replace(item()?['Name'], '_', ' ').
For the last step, you need to type items('Apply_to_each_2')?['Name'] in File Name and items('Apply_to_each_2')?['Content'] in File Content.
Welcome to share any updates at your convenience.
Thank you for your effort and time.
Sincerely
Cliff | Microsoft Community Moderator