how to get document folder name or id in Document type custom form in Workfront? | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Rafal_Bainie

It doesn't strictly answer your question, but since we don't always get what we want in Workfront....
if you use this text mode in document report:

listdelimiter=<hr> listmethod=nested(folders).lists name=All folders textmode=true type=iterate valueexpression=CONCAT({ID}," - ",{name}) valueformat=HTML

you will get a field that concatenates both folder(s) ID and name in a report cell.

Hope this helps

3 replies

lgaertner
Level 9
April 17, 2024

Hello,

 

depending on what you are expecting, but using a calculated field and 

 

{ID} for the documentID, or {docObjCode} for the document object type will 

 

I guess that you want something like the filetype or the extension, so you could also try

{currentVersion}.{fileType}
{currentVersion}.{ext}
 
Regards
Lars
sethuanand2626
Level 3
April 17, 2024

Thanks Lars.

 

I created new folder in "Production Files". So I want to get the folder name or folder Id in the document custom form.

 

Please refer attached screenshot

lgaertner
Level 9
April 17, 2024

You are absolutely right. I took a wrong turn somewhere in the answer to the question.

 

I will think about a solution, but do not have any idea yet.

 

Sorry for the moment.

 

Regards

Lars

Rafal_Bainie
Community Advisor
Rafal_BainieCommunity AdvisorAccepted solution
Community Advisor
April 18, 2024

It doesn't strictly answer your question, but since we don't always get what we want in Workfront....
if you use this text mode in document report:

listdelimiter=<hr> listmethod=nested(folders).lists name=All folders textmode=true type=iterate valueexpression=CONCAT({ID}," - ",{name}) valueformat=HTML

you will get a field that concatenates both folder(s) ID and name in a report cell.

Hope this helps

sethuanand2626
Level 3
April 18, 2024

Thanks Rafal.

 

Is there any way to get Project folder in Calculated field?

Rafal_Bainie
Community Advisor
Community Advisor
April 18, 2024

to my knowledge, only if you use Fusion

Level 2
October 23, 2024

What would be the text mode to make this a filter?