Expand my Community achievements bar.

Latest Community Ideas Review is Out: Discover What’s New and What to Expect!
SOLVED

How to extract file extension

Avatar

Level 2

Hello,

 

I am able to download file but without extension, could you please help me how do I get extension of file.

 

For Example :- https://veridiancu.my.workfront.com/attask/api/v18.0/docu/search?id=6658f66f004a4.................&s...

 

File name ends with .docx which I am unable to find.

 

Thanks,

Divya Anand.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

 

the document extension is stored under the document version, so you have two possibilities:

 

1) Use the DOCU endpoint and fetch the document versions by querying the nested field versions:ext

https://veridiancu.my.workfront.com/attask/api/v18.0/docu/search?id=6658f66f004a4.................&s...

 

 

or

 

2) use the document versions endpoint DOCV 

https://veridiancu.my.workfront.com/attask/api/v18.0/docv/search?documentID=6658f66f004a4..............

 

 

Regards

Lars

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

 

the document extension is stored under the document version, so you have two possibilities:

 

1) Use the DOCU endpoint and fetch the document versions by querying the nested field versions:ext

https://veridiancu.my.workfront.com/attask/api/v18.0/docu/search?id=6658f66f004a4.................&s...

 

 

or

 

2) use the document versions endpoint DOCV 

https://veridiancu.my.workfront.com/attask/api/v18.0/docv/search?documentID=6658f66f004a4..............

 

 

Regards

Lars

Avatar

Level 2

Thank you, 

 

I have a doubt I need issue IDs under content-dashboard how do I get it using APIs.

 

https://...............my.workfront.com/requests/content-dashboard__5f3f22b50092adb9360.................

 

Thanks,

Divya Anand.