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.
Rafal_Bainie
Rafal_BainieAccepted solution
New Participant
Apr 18, 2024 7:46 AM UTC

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

7 replies

Level 2
Oct 23, 2024 8:30 PM UTC

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

Translate
Rafal_Bainie
Rafal_BainieAccepted solution
New Participant
Apr 18, 2024 7:46 AM UTC

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

Translate
sethuanand2626
Level 3
Apr 18, 2024 8:50 AM UTC

Thanks Rafal.

 

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

Translate
Rafal_Bainie
New Participant
Apr 18, 2024 9:56 AM UTC

to my knowledge, only if you use Fusion

Translate
lgaertner
Level 9
Apr 17, 2024 6:49 AM UTC

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
Translate
sethuanand2626
Level 3
Apr 17, 2024 7:03 AM UTC

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

Translate
lgaertner
Level 9
Apr 17, 2024 7:38 AM UTC

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

Translate