Edit

Share via


Sample: Azure aware custom workflow activity

This sample gets the data context from the current operation and sends it to the Azure Service Bus.

Requirements

Before registering and running this sample custom workflow activity, configure Microsoft Dataverse to connect with Azure. For more information, see Configure Microsoft Azure Integration with Dataverse.

Notice the Input id required argument in the code. When you add this activity to a workflow, you must provide the GUID of an Azure service endpoint.

When registering this custom workflow activity with Dataverse, register it in the sandbox.

How to run the sample

  1. Download or clone the Power Apps samples repo so that you have a local copy.
  2. Register the workflow activity.

What this sample does

This sample shows how to write a custom workflow activity that can send the data context from the current Dataverse operation to the Azure Service Bus. The posting of the data context is done through the Execute(EntityReference, IExecutionContext) method.