Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 2.07 KB

sample-create-custom-activity.md

File metadata and controls

54 lines (36 loc) · 2.07 KB
title description ms.custom ms.date ms.reviewer ms.suite ms.tgt_pltfrm ms.topic applies_to ms.assetid caps.latest.revision author ms.author search.audienceType
Sample: Create a custom activity | MicrosoftDocs
The following code example demonstrates how to create a custom activity using the CreateEntityRequest and CreateAttributeRequest messages
10/31/2017
pehecke
sample
Dynamics 365 Customer Engagement (on-premises)
4cd4c951-7c4f-4280-b928-0d901f62ef08
19
JimDaly
nabuthuk
developer

Sample: Create a custom activity

This sample demonstrates how to create a custom activity using CreateEntityRequest and CreateAttributeRequest. You can download the sample from here.

[!includecc-sample-note]

How to run this sample

[!includecc-how-to-run-samples]

What this sample does

The CreateEntityRequest message and CreateAttributeRequest message is intended to be used in a scenario to create custom activity.

How this sample works

In order to simulate the scenario described in What this sample does, the sample will do the following:

Setup

Checks for the current version of the current org.

Demonstrate

  1. Creates the custom activity entity using the CreateEntityRequest message.
  2. Publishes the created custom activity entity.
  3. Creates few attributes to the custom activity entity using CreateAttributeRequest message.

Clean up

Display an option to delete the records in Setup. The deletion is optional in case you want to examine the entities and data created by the sample. You can manually delete the records to achieve the same result.

[!INCLUDEfooter-include]