-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorkflow.snippet
23 lines (23 loc) · 956 Bytes
/
Workflow.snippet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Workflow Basic imports</Title>
<Author>João Ayres</Author>
<Description>Cria um snippets para custom workflow.
</Description>
<HelpUrl>
</HelpUrl>
</Header>
<Snippet>
<Code Language="CSharp">
<![CDATA[
ITracingService tracingService = executionContext.GetExtension<ITracingService>();
IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>