web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Custom Workflows in dynamics 365

(0) ShareShare
ReportReport
Posted on by 1,085

Hello Community Experts,

Please suggest me how to learn custom workflow from scratch.

I'm new to dynamics 365, please guide me step by step.

Best Regards,

Sumaira Noor

I have the same question (0)
  • Sumaira Noor Profile Picture
    1,085 on at
    RE: Custom Workflows in dynamics 365

    Thanks for the help Lu and Goutam

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Custom Workflows in dynamics 365

    Hope below reference helps you  -

    www.ashishvishwakarma.com/.../

  • Verified answer
    LuHao Profile Picture
    40,890 on at
    RE: Custom Workflows in dynamics 365

    Hi Sumaira,

    First, you should already have Visual Studio in your system.

    I recommend reading this blog, which is based on the latest D365 environment. It shows you the detailed creation steps.

     

    Basically, you need to follow these steps to create a custom workflow:

    1. Create a Class Library project using .NET Framework 4.6.2 as the target framework.

    2. Install the Microsoft.CrmSdk.Workflow NuGet package.

      This package includes the Microsoft.CrmSdk.CoreAssemblies package.

    3. (Optional) If you wish to use early bound entity classes, include them in the project.

    4. Add a public class. The name of the class should correspond with the action to be performed by the activity.

    5. Add the following using directives

      using System.Activities;
      using Microsoft.Xrm.Sdk;
      using Microsoft.Xrm.Sdk.Workflow;
      
    6. Add properties to the class to represent any input or output parameters and use .NET attributes to provide necessary metadata to expose these properties to the workflow process designer.

    7. Make your class derive from the CodeActivity Class and implement the Execute(CodeActivityContext) Method that contains the operations your activity will perform.

    8. Sign your assembly

    9. Build your assembly.

    10. Register your assembly using the Plug-in Registration tool and set the Name and WorkflowActivityGroupName properties to define the text that will be visible in the process designer.

    11. Test your workflow activity by invoking it from within a Workflow, dialog, or action processes

    12. (Recommended) Add your workflow activity to a solution.

    You can also find these steps in the official documentation, and there are 3 code examples in the documentation.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 394

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 123

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 102 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans