You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

parvezalam's avatar
parvezalam
Explorer | Level 3
3 years ago

shareFolderId with folder name

someone shared a folder with me, to upload in that shared folder , the folder must be mounted.

 

I got the method to mount the shared folder but that required sharefolderId,  Till now what I found to get the sharedfolderId is to use ListMountableFoldersAsync method, but that will return all mountable folders

Can we get shareFolderId with folder name.

 

 


  • parvezalam wrote:

    ... Till now what I found to get the sharedfolderId is to use ListMountableFoldersAsync method, but that will return all mountable folders

    Can we get shareFolderId with folder name.


    Hi parvezalam,

    Within the same object where you have found "sharedfolderId" must be one more field named "name", if you want to sort/filter by name while using Dropbox API/SDK. 😉

    Good luck.

    • parvezalam's avatar
      parvezalam
      Explorer | Level 3

      May be I have not explained the issue properly.

       

      After getting the list I can filter it with name, but question is...  I don't want to get entire list, I just want to pass the foldername as param instead of sharefolderId, so that I can fetch the sharefolderId from metadata, otherwise I have to run loop and filter with foldername then get the sharefolderId. 

       

      Also is there anyway to check if the folder is already mounted.

       

      Thanks

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        Hi parvezalam,

        I understand what you are asking for, but there is no other way, as far as I know.


        parvezalam wrote:
        ...

        Also is there anyway to check if the folder is already mounted.

        ...

        If you take a look on documentation:


        Unmounted shared folders can be identified by the absence of SharedFolderMetadata.path_lower.

        I.e. a folder has been mounted when there is local path (local to the context account) within the metadata. 😉

        Hope this helps.