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 |
|
4cd4c951-7c4f-4280-b928-0d901f62ef08 |
19 |
JimDaly |
nabuthuk |
|
This sample demonstrates how to create a custom activity using CreateEntityRequest and CreateAttributeRequest. You can download the sample from here.
[!includecc-sample-note]
[!includecc-how-to-run-samples]
The CreateEntityRequest
message and CreateAttributeRequest
message is intended to be used in a scenario to create custom activity.
In order to simulate the scenario described in What this sample does, the sample will do the following:
Checks for the current version of the current org.
- Creates the custom activity entity using the
CreateEntityRequest
message. - Publishes the created custom activity entity.
- Creates few attributes to the custom activity entity using
CreateAttributeRequest
message.
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]