I used an interactive token and specify the tenant and application ID in microsoftOffice365 application scope for the API that was created before
For the file files and folders activity, you will need to specify the folder name / file name in query as well as the sharepoint URL (e.g. https://xxx.sharepoint.com/sites/xxxxx/). If not, it will search in your OneDrive.