Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
sbrownnw
2 years agoExplorer | Level 4
why is FolderId / SharedParentFolderId null or just missing for FileMetadata retrievals?
static void Main(string[] args)
{
DropboxClientConfig config = new DropboxClientConfig
{
MaxRetriesOnError = 0
};
DropboxClient dropbox...
- 2 years ago
A feature request has been filed to include the parent folder ID in the metadata response object.
I cannot promise when and if this will be implemented.
sbrownnw
2 years agoExplorer | Level 4
Feature request please for a File / Folder metadata item to always return its parent FolderId (whether it is shared or not). Both path and parent FolderId are very important metadata items for these types.
Greg-DB
Dropbox Community Moderator
2 years agoTo clarify, FolderMetadata.Id and Metadata.ParentSharedFolderId are different types of identifiers.
Shared folder IDs (such as in ParentSharedFolderId) are only created once a folder is shared. They can't always be returned since they may not exist yet.
File and folder IDs (such as in FileMetadata.Id and FolderMetadata.Id) however, exist for all non-deleted files and folders. You can get always them from the FileMetadata or FolderMetadata. For example, that would be folderMetadata.Id or fileMetadata.Id in your sample code. If you have only the FileMetadata, you can get the FolderMetadata for its parent by using GetMetadataAsync and passing in the path of the parent (that is, the path of the file without its last path component).
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!