Documentation > CMS Template API Library > ExecuteWorkflowCommandResponse

CrownPeak.CMSAPI.ExecuteWorkflowCommandResponse

Returned by some calls to encapsulate the result of the operation.

NameDescriptionType
ErrorMessage

Gets or sets the error message.

Property
FailedAssets

Gets or sets the list of failed assets.

Property
HasError

Gets or sets a value indicating whether this instance has error.

Property
IsLongRunning

Gets or sets a value indicating whether this ExecuteWorkflowCommand request used a long running task.

Property
JobId

Gets or sets the value of the long running Job Id if this request used a long running task.

Property

Code Example

C#

Sample:

             
            
                ExecuteWorkflowCommandResponse res = Asset.ExecuteWorkflowCommand(assetIds, commandName);
            
                if (!res.HasError)
                {
                  context.Error = "Error executing workflow command." + " error: " + res.ErrorMessage;
                }
             
             

Connect with Crownpeak