Hi there,
I have a list of staff ids and I want to know if I have a photo of each staff member or not. We keep the photos in a SharePoint folder named as the id number and some photos also have the staff members name after it. The ID number is always at the beginning and is 7 digits long
I would love to create a Flow which can check for matches and if it finds one list the file path next to the staff number in my excel sheet.
I've started with the basics
- Button trigger
- List row present in table (Excel)
- List folder (Sharepoint)
However after than I'm a little stuck on how to pull out the ID number from the photo file name (get flow to ignore the .jpg or if the staff member name is also included) and match this to the Excel entry. I've tried to set up the file name as a string and then initialise variable with the expression
substring(variables('FileNameString'),1,7)
however it puts this in an apply to each loop and wont let me set up the second need initialise variable. I've also tried to use it directly in the condition field and it wouldn't validate.
Any suggestions?
Thanks so much