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 |
|
68a5e1da-7432-4520-a9df-72372ddb8a20 |
JimDaly |
jdaly |
pehecke |
21 |
Drafting |
|
[!INCLUDEcc-sample-note]
Download the sample: Workflow.
[!INCLUDEsdk-prerequisite]
[!INCLUDEcc-how-to-run-PA-samples]
Consult the sample's README for additional information about the sample.
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.
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]