getWorkflowForType

Function

Given a type and context, return the workflows that are available to the user. This checks the permissions for defined for the type, and if the user has the permission, returns the workflows defined for the type.

Parameters

Parameter Type Default Notes
type Required string
context Required IArcGISContext

Returns

Property Type Notes
targetEntity EntityType

The target entity type for the type

type string

The "type" the workflow applies to. This is not strictly an Item Type, it can also be an abstraction like "document", as well as things like Group or Event which are not item-backed.

workflows ContentWorkflow[]

The workflows that are available for the type

properties Optional Record<stringany>

Additional properties that may apply to some workflows e.g. upload file types for the type


Function defined in common/src/search/_internal/getWorkflowForType.ts:59