Compartilhar via


Utility.ActionFromEntity Method

Intenal function used to create an ActionDefinition from a CRM entity.

Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)

Usage

'Usage
Dim action As Entity
Dim source As String
Dim returnValue As ActionDefinition

returnValue = Utility.ActionFromEntity(action, source)

Syntax

'Declaration
Public Shared Function ActionFromEntity ( _
    action As Entity, _
    <OptionalAttribute> Optional source As String = "" _
) As ActionDefinition
public static ActionDefinition ActionFromEntity (
    Entity action,
    [OptionalAttribute] string source
)
public:
static ActionDefinition^ ActionFromEntity (
    Entity^ action, 
    [OptionalAttribute] String^ source
)
public static ActionDefinition ActionFromEntity (
    Entity action, 
    /** @attribute OptionalAttribute() */ String source
)
public static function ActionFromEntity (
    action : Entity, 
    source : String
) : ActionDefinition

Parameters

  • action
    The CRM entity that should be an mcs_agentscriptaction type
  • source
    String displayed in debugger that indicates what fired the action

Return Value

Returns the ActionDefinition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

Utility Class
Utility Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.