Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 2 KB

File metadata and controls

54 lines (38 loc) · 2 KB
title description keywords ms.date ms.custom ms.topic applies_to ms.assetid author ms.author ms.reviewer ms.suite ms.tgt_pltfrm caps.latest.revision topic-status search.audienceType
Sample: Set the state of a workflow (Developer Guide for Dynamics 365 Customer Engagement (on-premises)) | MicrosoftDocs
The sample shows how to change the state of a workflow, through activating and deactivating it, by using the SetStateRequest message. In addition, the sample shows how to create a custom XAML workflow.
1/14/2018
sample
Dynamics 365 Customer Engagement (on-premises)
68a5e1da-7432-4520-a9df-72372ddb8a20
JimDaly
jdaly
pehecke
21
Drafting
developer

Sample: Set the state of a workflow

[!INCLUDEcc-sample-note]

Download the sample: Workflow.

Prerequisites

[!INCLUDEsdk-prerequisite]

Requirements

[!INCLUDEcc-how-to-run-PA-samples]

Consult the sample's README for additional information about the sample.

Demonstrates

This sample shows how to change the state of a workflow, through activating and deactivating it, by using the xref:Microsoft.Crm.Sdk.Messages.SetStateRequest message. In addition, the sample shows how to create a custom XAML workflow.

Example

SetStateWorkflow.cs

See also

Sample code for workflows
Processes in Dynamics 365 Customer Engagement (on-premises)(formerly Workflows)
xref:Microsoft.Crm.Sdk.Messages.SetStateRequest
xref:Microsoft.Xrm.Sdk.IOrganizationService

[!INCLUDEfooter-include]