API: Change Lifecycle State

API: Change Lifecycle State

Anonymous
Not applicable
4,671 Views
2 Replies
Message 1 of 3

API: Change Lifecycle State

Anonymous
Not applicable

Does anyone have an example of how to change a file from one lifecycle state to another, e.g. 'released' to 'work in progress'?  Also, how do you deal with the Document Service Extension, is there a security header?

Thanks

-Pete-

 

0 Likes
Accepted solutions (1)
4,672 Views
2 Replies
Replies (2)
Message 2 of 3

Redmond.D
Autodesk
Autodesk
Accepted solution

DocumentServiceExtensions.UpdateFileLifeCycleStates is the function you want to use.  The Recycle Bin 2.0 uses this function and has some sample code you can look at.

 

Yes, you have to deal with the SecurityHeader for DocumentServiceExtensions.  The process is the same as same as with the DocumentService, you log in then you copy the SecurityHeader information over from the SecurityService.  This is demonstrated in a video.



Doug Redmond
Software Engineer
Autodesk, Inc.

0 Likes
Message 3 of 3

Anonymous
Not applicable

OK, that worked, thanks.

0 Likes