OrganizationServiceContextExtensions.CreateWorkflowFromTemplate Method (OrganizationServiceContext, String, Guid)
Applies To: Dynamics CRM 2013
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
context
Type: Microsoft.Xrm.Sdk.Client.OrganizationServiceContextThe organization service context.
workflowName
Type: System.StringThe name for the new workflow. Required.
workflowTemplateId
Type: System.GuidThe 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 2013
Return to top