Api to get a folder structure tree including sub-folders and its files
I have to interact with our system(Salesforce) to Box. For this, we have to design a solution where we have to traverse a Specific folder(Box Folder) to get all its related nodes(Including its Sub-folder and files).
UseCase:
StartingFolder Folder1A File1B Folder2B Folder1C File1D File2C Folder3B File4B Folder2A Folder1B File1C Folder2B Folder1C File1D File2B Folder3A File1B
Note: In this use case we have to traverse all subfolders and fetch all included files count(In this case - 7).
We are using Apex(Salesforce) for interacting box API's.
-
Hi , I am not aware of Apex(Salesforce) mentioned by you but in general API's are not provided for individual usecases and you would have to build your logic in the integration itself. In the current usecase mentioned by you I dont see any other approach other than recurrsively calling List Items in Folder for each subfolder and processing any file when you find them. Hope this helps
サインインしてコメントを残してください。
コメント
1件のコメント