How to extract file extension | Community
Skip to main content
New Participant
June 12, 2024
Solved

How to extract file extension

  • June 12, 2024
  • 1 reply
  • 807 views

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.................&sessionID=5e9bba2c8bf341989.................&fields=*,downloadURL

 

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

 

Thanks,

Divya Anand.

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 lgaertner

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.................&sessionID=5e9bba2c8bf341989.................&fields=*,downloadURL,versions:ext

 

 

or

 

2) use the document versions endpoint DOCV 

https://veridiancu.my.workfront.com/attask/api/v18.0/docv/search?documentID=6658f66f004a4.................&sessionID=5e9bba2c8bf341989.................&fields=*

 

 

Regards

Lars

1 reply

lgaertner
lgaertnerAccepted solution
New Participant
June 12, 2024

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.................&sessionID=5e9bba2c8bf341989.................&fields=*,downloadURL,versions:ext

 

 

or

 

2) use the document versions endpoint DOCV 

https://veridiancu.my.workfront.com/attask/api/v18.0/docv/search?documentID=6658f66f004a4.................&sessionID=5e9bba2c8bf341989.................&fields=*

 

 

Regards

Lars

VishalSh4Author
New Participant
June 13, 2024

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.