Documentation > CMS Template API Library > Util > GetWorkflowTransitions(Int32)

GetWorkflowTransitions

Returns workflow transition information for the given asset. These represent state changing transitions (and refreshes). They are recorded in the audit. This method extracts workflow related transitions from the audit.

public CrownPeak.CMSAPI.Transition[] GetWorkflowTransitions(Int32)

Parameters

NameDescriptionType
assetId The id of the asset whose transitions we want to see System.Int32

Code Example

C#

Sample:

              Transition[] transitions = Util.GetWorkflowTransitions(asset.Id);
              foreach (Transition t in transitions)
              {
                Out.WriteLine("Transition: from=" + t.FromState + " to=" + t.ToState + " user=" + t.UserName + " date=" + t.Date); 
              }
            

Connect with Crownpeak