Skip to content

Commit e6d66db

Browse files
committed
Added migrated-MSDN samples
1 parent 24f6b21 commit e6d66db

File tree

2 files changed

+60
-1
lines changed

2 files changed

+60
-1
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: "Sample: Workflow operations (Common Data Service) | MicrosoftDocs"
3+
description: "This sample demonstrates how to perform a number of workflow operations such as create, delete, activate, set state , and more."
4+
ms.custom: ""
5+
ms.date: 1/14/2020
6+
ms.reviewer: "pehecke"
7+
ms.service: powerapps
8+
ms.topic: "samples"
9+
author: "JimDaly" # GitHub ID
10+
ms.author: "jdaly" # MSFT alias of Microsoft employees only
11+
manager: "kvivek" # MSFT alias of manager or PM counterpart
12+
search.audienceType:
13+
- developer
14+
search.app:
15+
- PowerApps
16+
- D365CE
17+
---
18+
# Sample: Workflow operations
19+
20+
This sample demonstrates how to perform a number of workflow operations such as create, delete, activate, set state , and more.
21+
22+
## How to run this sample
23+
24+
See [How to run samples](https://github.com/microsoft/PowerApps-Samples/blob/master/cds/README.md) for general information about how to run this sample.
25+
26+
Notice that there are five separate samples, each in it's own C# file, in the solution's [project](https://github.com/microsoft/PowerApps-Samples/tree/master/cds/orgsvc/C%23/Workflow/Workflow). To run each sample, set it as the startup object in the project's properties prior to executing the sample.
27+
28+
## What this sample does
29+
30+
The operations demonstrated by these samples are as follows:
31+
32+
- Create a synchronous (real-time) or asynchronous workflow
33+
- Delete a workflow
34+
- Execute a workflow
35+
- Activate or deactivate a workflow
36+
- Set or get a workflow's status and state
37+
- Create a workflow from a template
38+
39+
You can view created workflows in **Settings > Processes** (under Process Center) when viewing your organization using a web browser.
40+
41+
## How this sample works
42+
43+
In order to simulate the scenario described in [What this sample does](#what-this-sample-does), the sample will do the following:
44+
45+
### Setup
46+
47+
Each sample creates any required entity instances that the demonstration code requires. This is done in the `CreateRequiredRecords()` method.
48+
49+
### Demonstrate
50+
51+
The main demonstration code for each sample is found in the `Demonstrate` region of the `Main()` method in each class file.
52+
53+
### Clean up
54+
55+
The `DeleteRequiredRecords()` method displays an option in the console window to delete any records created by the sample(s).
56+
57+
The deletion is optional in case you want to examine the entity instances (records) created by the sample(s). Typically, you would not respond to the delete prompt in the console window until after you view the new organization records in your browser. You can manually delete the created records any time after the program terminates to achieve the same result.

powerapps-docs/developer/common-data-service/workflow/toc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@
1111
- name: "Sample: Update next birthday using a custom workflow activity"
1212
href: sample-update-next-birthday-using-custom-workflow-activity.md
1313
- name: "Sample: Calculate a credit score with a custom workflow activity"
14-
href: sample-calculate-credit-score-custom-workflow-activity.md
14+
href: sample-calculate-credit-score-custom-workflow-activity.md
15+
- name: "Sample: Workflow operations"
16+
href: sample-workflow-operations.md

0 commit comments

Comments
 (0)