getAllowedStatusTransitions (Client API reference)

Applies to Dynamics 365 for Customer Engagement apps version 9.x

Returns the valid state transitions for the specified entity type and state code.

Syntax

Xrm.Utility.getAllowedStatusTransitions(entityName,stateCode).then(successCallback, errorCallback)

Parameters

Name Type Required Description
entityName String Yes The logical name of the entity.
stateCode Number Yes The state code to find out the allowed status transition values.
successCallback Function No The function to execute when the operation succeeds.
errorCallback Function No The function to execute when the operation fails.

Xrm.Utility