How to Direct to a specific Root Folder for Team Drive

How to Direct to a specific Root Folder for Team Drive

Directing to a Specific root folder for Team Drive


  •  Check the path the files are currently following



Execute the below query in the Dev console :

SELECT Id, Name, XFILES__Provider_Type__c, XFILES__GDrive_Root_Folder_Id__c FROM XFILES__Cloud_Storage_Provider__c


Once done, check the XFILES__GDrive_Root_Folder_Id__c field value.



This is case the files are getting directed to the object folder which is inside the root folder.


If you want to direct the files to the Team Drive folder directly then you have to replace the XFILES__GDrive_Root_Folder_Id__c field value with the Team Drive Folder Id value.


Once the highlighted value (folder ID of the Team Drive) is updated in the XFILES__GDrive_Root_Folder_Id__c field, the files will be directed to the Team Drive folder.



NOTE: Please modify the XFILES__GDrive_Root_Folder_Id__c field value based on the use case required.