简体   繁体   中英

Logic Apps returns Error 404 for Get File Content while Looping in Sharepoint's parent folder

when I run Get File Content for the parent folder it retuns the following error

在此处输入图像描述

If I'm doing this for the last folder placed in this parent folder it is OK.

Not working:

在此处输入图像描述

Working:

在此处输入图像描述

Could you help me?

Get file Content works only for file types but not folders and List Folder gives what all the folders that are present in the path but not the files in the nested folders. If you are trying to get the list of all files in all the folders in your share point then instead of using List Folder , you can use Get files (properties only) as it lists all the folders and files present in the path and looping through its "value" filtering "Is folder" gives us desired results. Is Folder checks if it's a 3file or a folder. Here is my logic app which filters all the files in the sharepoint using Condition connector and Is Folder property.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM