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

Announcements

No record found.

News and Announcements icon
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)
  • Verified answer
    LuHao Profile Picture
    40,892 on at

    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.

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hope below reference helps you  -

    www.ashishvishwakarma.com/.../

  • Sumaira Noor Profile Picture
    1,085 on at

    Thanks for the help Lu and Goutam

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 73

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans