Message 1 of 5
Get Id of Release State
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm looking for the "Released State" id for a particular lifecycle definition, but I'm lost.
Who can point me to the right direction?
The code I use is:
Dim LfCycDefs = serviceManager.DocumentServiceExtensions.GetAllLifeCycleDefinitions
Dim ReleaseProcessID = LfCycDefs.FirstOrDefault(Function(states) states.SysName = "My Release Process")
Dim ReleaseId As Long
For Each StateID In ReleaseProcessID.StateArray
If StateID.DispName = "Released" Then
ReleaseId = StateID.Id
End If
Next
