We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
martinjuniqe
7 years agoExplorer | Level 4
Need help managing photos with DropBox
Hello Dropbox! I am trying to set up an automated workflow via zapier for our company juniqe.com: i need to invite new folder members as editors via their email, am am trying to do so via a w...
- 7 years ago
If you know the path or ID for the folder, and the folder is already a shared folder, you can get the shared folder ID by calling /2/files/get_metadata. The shared folder ID will be in the result at folder.sharing_info.shared_folder_id. Using /2/sharing/list_folders[/continue] on the folder's parent also works.
Note that creating a shared link for a folder does not make it a "shared folder". These actually refer to two different types of sharing on Dropbox: "shared links" and "shared folders". Folders will only receive shared folder IDs for the second type of sharing, "shared folders".
It sounds like you may have used /2/sharing/create_shared_link_with_settings to make a shared link for the folder. To share the folder in order to get a shared folder ID, you should use /2/sharing/share_folder.
martinjuniqe
Explorer | Level 4
gotcha. please just dumb it down for me a nod - so i need to first run a get request to find out the shared folder id to call the webhook i'm trying to call. I have an earlier step in the automatization sharing said folder, but this does not return the shared folder id, but only a share link.
the dropbox contains hundreds of folders, is there a simple way to get to the sharedfolderid of the folder by it's regular id or share link?
Greg-DB
7 years agoDropbox Staff
If you know the path or ID for the folder, and the folder is already a shared folder, you can get the shared folder ID by calling /2/files/get_metadata. The shared folder ID will be in the result at folder.sharing_info.shared_folder_id. Using /2/sharing/list_folders[/continue] on the folder's parent also works.
Note that creating a shared link for a folder does not make it a "shared folder". These actually refer to two different types of sharing on Dropbox: "shared links" and "shared folders". Folders will only receive shared folder IDs for the second type of sharing, "shared folders".
It sounds like you may have used /2/sharing/create_shared_link_with_settings to make a shared link for the folder. To share the folder in order to get a shared folder ID, you should use /2/sharing/share_folder.
- martinjuniqe7 years agoExplorer | Level 4
thanks, this now works - really appreciate your help!
i guess i did only create a shared link previously, and calling the share_folder endpoint really was what i needed to get to the right id, the next error was caused by something within Zapier i guess, i couldn't reproduce it after trying to run the whole process with an entirely fresh folder, sharing worked like a charm.
thanks guys!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 21 minutes agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!