Skip to main content
1-Visitor
December 27, 2018
Question

How to get latest revision of a document using Rest API ?

  • December 27, 2018
  • 2 replies
  • 8852 views

Hello, 

I am using Windchill 11.1 M010.

I want to get latest revision of a document using Rest API.

 

I tried to use filter,

$filter : latestiteration eq '1',

 

but, this gives "Invalid expression".

 

Is there any way to get the latest revision of a document through Rest API?

 

 

2 replies

16-Pearl
December 27, 2018

I got this tip from one of my Windchill colleagues...

Can you try with

 

"Latest": true

 

instead of latestiteration : 1?

 

1-Visitor
December 27, 2018

Thanks,

but,

This also doesn't work. It says "Latest" is Invalid property

16-Pearl
December 27, 2018

Could you please post the complete request here?

Including any headers for Post, that contain any additional parameters.

 

This might help in seeing if there's anything off in the request itself.

12-Amethyst
June 7, 2019

This will give what you are looking for 

GET <windchill_server>:<port>/Windchill/servlet/odata/DocMgmt/Documents?$expand=Revisions
1-Visitor
June 17, 2019

Thanks amarsingh  for help.

just beginner for windchill software.so please help me some few question for it.

1. <windchill_server>:<Port>  :  which server name write in it? 

please can you explain me in deepth.?

Thank you in advance

 

GET <windchill_server>:<port>/Windchill/servlet/odata/DocMgmt/Documents?$expand=Revisions


 

1-Visitor
June 17, 2019

Thank you so much for quick answer.

 

just asking question because i m bignner for it

 

However i don't know how to access server of windchill.so please let me know briefly.

 

i have created trial account on winchill website.but i can't found any domain .

 

so please can you explain me initiate process for get server of ' http://windchill.yourdomain.com:80 ' .

 

 

http://windchill.yourdomain.com:80/Windchill

 

 

thank you in advance