document folder IDs | Community
Skip to main content
Level 2
January 11, 2023
Solved

document folder IDs

  • January 11, 2023
  • 3 replies
  • 2552 views

Are document folders in WF assigned object IDs?  If so, where can those IDs be found?  I don't see a way to manually navigate to the ID or to pull up IDs in a report.

 

I was able to use Fusion to create a document folder in an existing project.  I wonder if it's possible to add sub-folders.  I see that in the WF API, there are 'Parent ID' and 'linkedFolderID' fields under Document Folder.  Presumably I could specify the object ID of the main folder in one of these fields, but again, I'm not sure how to find that folder's object ID.

 

Thanks in advance.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

lgaertner
Level 9
January 12, 2023

Hello,

 

I can confirm, that you do not get the folder ID using the normal ways.

 

But thanks to help from here, you could create a document report and add a custom column containing the following text mode code

displayname=Folders listdelimiter= listmethod=nested(Folders).lists textmode=true type=iterate valueexpression={ID} valueformat=HTML

to show the folder ID. 

 

Regards

Lars

KristenSwAuthor
Level 2
January 12, 2023

Thanks!  It appears that this solution is dependent upon a folder (or subfolder) already containing at least one document--if a folder is empty, there's no record to display in the document report.

 

I may need to submit an idea for WF to add a Document Folder report (or to make the folder ID discoverable through a URL).

 

 

 

lgaertner
Level 9
January 12, 2023

You could also get a list of all folders and their IDs using the API endpoint 

docfdr/search
skyehansen
Community Advisor and Adobe Champion
skyehansenCommunity Advisor and Adobe ChampionAccepted solution
January 13, 2023
KristenSwAuthor
Level 2
January 13, 2023

Oh, good!  That will be helpful!.

ChrisStephens
Community Advisor
Community Advisor
January 13, 2023

Are you trying to do it with fusion? If so, do a search for the folder with the DOCFDR key, and search by folder name & project ID, and have it return the folder ID. Then you can create the subfolder by specifying the project ID, the parent ID (equal to the parent folder ID, found above), and the folder name.

KristenSwAuthor
Level 2
January 13, 2023

Thanks!  I was able to get that to work.