Hi. I've found several posts similar to my situation, but none close enough for me to be able to use, so I'm really hoping someone is able to help me out.
Situation:
- I have a flow which creates a batch of folders in the root of a library on our SharePoint site, each with unique access permissions based off staff information in a list.
- I also have a different library on the same SharePoint site which contains confidential Word documents relating to each staff member.
What I need:
- A manually triggered flow that will create a copy of each Word document in the folder with the matching ID.
The file names are formatted: '<last name>, <first name>, <staff ID>, <document type>'
The folder names are formatted: '<last name>, first name (<staff ID>) '
So for example I need the flow to copy file 'Bloggs, Joe, 123456789, personal info.docx' into folder 'Bloggs, Joe (123456789)'.
Is there any way this can be done? I assume it will need to involve the split function and one or two arrays, but I'm not quite sure how.
Any help would be hugely appreciated!