Hi everyone,
I am trying to have a SharePoint list that has all the files information in One Drive. I started with manual trigger and list files in root folder. Then I added condition to check if the files in root folder are folders or not. If it is not folder (meaning they are files), then the flow should create items in the SharePoint list. If it is folder, I added another layer of list all files in the folder. I am hoping to have the flow keep checking all layers of subfolders until every file is listed in the SharePoint list. But currently, it only creates items for certain documents, and it won't stop creating the same items. Could anyone help me fix this?
Another question is that I am hoping to get a URL that links to the file (which is a field in the SharePoint list), but I also don't know how to do it. Can anyone give me some guidance?
Thank you!