I need to copy files along with folders from SharePoint 201 to online. For this, created a on-premises data gateway connection. Used "Get files (properties only)" action in power automate (with the connection of on-premise SharePoint site. Site address and library are given). Then used "Apply to each" action to loop through files and folders. In this action "items('Apply_to_each')?['{Path}']" is empty. Hence unable to get the file content and create file under the folder path. Need to maintain the folder structure.
Suggestions please!