I have a SharePoint online site which contain a document library named "Customer Share" >> and inside this library we have a folder named "Clients" >> and inside the "Clients" folder we have around 10,000 sub-folders representing clients.
Here is a sample of the folder structure:-
- Customer share
- Clients
- ClientA
- Contracts
- Agrements
- others
- ClientB
- Contracts
- others
- ClientC
- ClientD
- Attachments
- others
Now i want to define a trigger condition when a document is created or modified ONLY under the "Clients" fodler's sub-folders. for example to trigger the flow if someone add a file under "Clients/ClientA/Contracts" or under "Clients/ClientA/" or under "/Clients/ClientA/Contracts/2023/".. while the flow should not run if someone add or modify a file under "/Attachments/" or "others" or directly under "/Clients" .. is this possible?
Second Point. i also need to get the folder Id of the related client sub-folder. for example if a file is uploaded inside "/Clients/ClientA/Contracts/2023/" i want to get the ID of the ClientA folder..
Thanks