Поделиться через


OrganizationServiceContextExtensions.CreateWorkflowFromTemplate Method (OrganizationServiceContext, String, Guid)

 

Applies To: Dynamics CRM 2015

Creates a workflow from a workflow template. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Messages
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static Guid CreateWorkflowFromTemplate(
    this OrganizationServiceContext context,
    string workflowName,
    Guid workflowTemplateId
)
public:
[ExtensionAttribute]
static Guid CreateWorkflowFromTemplate(
    OrganizationServiceContext^ context,
    String^ workflowName,
    Guid workflowTemplateId
)
static member CreateWorkflowFromTemplate : 
        context:OrganizationServiceContext *
        workflowName:string *
        workflowTemplateId:Guid -> Guid
<ExtensionAttribute>
Public Shared Function CreateWorkflowFromTemplate (
    context As OrganizationServiceContext,
    workflowName As String,
    workflowTemplateId As Guid
) As Guid

Parameters

  • workflowName
    Type: System.String

    The name for the new workflow. Required.

  • workflowTemplateId
    Type: System.Guid

    The ID of the workflow template. Required.

Return Value

Type: System.Guid

Returns a Guid, the ID of the new workflow.

Remarks

This is a method wrapper for the CreateWorkflowFromTemplateRequest and CreateWorkflowFromTemplateResponse classes. See the documentation in the Request class for more information about this message.

See Also

OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client.Messages Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright