Upload Local Files To Shared Drive Folder in GSuite Using Id

How can we upload the Excel files dynamically into the specific Drive Folder that’s already present

Suppose we have these file in Local Path

  1. HR.xlsx
  2. Sales.xlsx
  3. Manufacturing.xlsx

We have a shared drive having below structure where the local files should be uploaded in below pattern

Aca Folder —>
US —>US_ACA—>HR.xlsx
India---->India_ACA----->Sales.xlsx
Canada —>Canada_ACA—Manufacturing.xlsx

(*Note ACA Contains many Sub Folders)
Folder Structure

Hi,

If the Folder where you want to upload is constant and if its not gonna change then you can directly use the ID from the link.
Example:-
Link - https://drive.google.com/drive/folders/**1nGiRon6skfjskfsk_ssAAdHzshgsh5**

The ID for the above link is 1nGiRon6skfjskfsk_ssAAdHzshgsh5

If you believe the folder Id will be changed Frequently. Then you can get the Parent ID and iterate till you reach your child element.

I have attached a sample Xaml to iterate from the Root to the child element.
Fetch Child File Id.zip (3.6 KB)

Thanks @sivasankari1 for the prompt response and Reference :slightly_smiling_face:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.