SlideShare a Scribd company logo
CUSTOMIZATION
CUSTOM
WORKFLOW
ACTIVITY (CWA)
TECHNICAL TRAINING
Sanjaya Prakash Pradhan
MCP & Founder of Softchief.com
COURSE ID D365 - 003 Duration - 4Hrs
Fundamentals
● Microsoft.Net Assemblies
● Requires Programming knowledge
● .Net Activities
● Input Arguments
● Output Arguments
● Argument Data types
● Default and Required Properties
● Getting and Setting Parameters
https://youtu.be/Ps1u6Ti2wQ8
Required Tools
To develop a custom workflow you need to have:
1. Visual Studio IDE
2. Dynamics 365 SDK – Plugin Registration Tool
3. Simple Knowledge on C#.NET
Required Reference Dlls
● Microsoft.Xrm.Sdk.dll
● Microsoft.Xrm.Sdk.Workflow.dll
● System.Runtime.Serialization
Reference Required
using System.Activities;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Workflow;
Remember
1. Custom workflows can be incorporated by CRM workflows or Dialogs as a process step. Custom
workflows cannot be run independently as these are treated as a process step inside a CRM workflow or
Dialog.
2. Every workflow supports some Input Parameters and Output parameters.
3. Input Parameters are supplied to the custom workflow from the CRM workflow and Output parameters
are returned from the custom workflow to CRM workflow to use in check condition steps.
4. After developing the custom workflow assembly it is registered in CRM using plugin registration tool the
same way we do for plugins.
5. Custom workflow activities are .net assemblies which are registered in CRM.
6. Every custom workflow activity class inherits CodeActivity class.
7. Each custom workflow assembly must be signed in by a KEY.
Input Argument
DateTime
[Input("DateTime input")]
[Output("DateTime output")]
[Default("2013-07-09T02:54:00Z")]
public InOutArgument DateTime { get; set; }
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using Microsoft.Xrm.Sdk.Workflow;
namespace GetAge
{
public sealed class CalculateAge:CodeActivity
{
[Input("Date Of Birth")]
public InArgument<DateTime> DOB { get; set; }
protected override void Execute(CodeActivityContext context)
{
DateTime dtDOB = DOB.Get(context);
int CalculatedAge =
Convert.ToInt32((DateTime.Now.Subtract(dtDOB).TotalDays)/365);
Age.Set(context, CalculatedAge);
}

More Related Content

What's hot (20)

PPTX
Ms Cloud Day Closing - Harish
Spiffy
 
DOC
Chinnasamy Manickam
Chinnasamy Manickam
 
PPTX
Ibm jbpm online training in bangalore
GoLogica Technologies
 
PPTX
SPS Madrid 2018 - modern site and teams provisioning across a bot, spfx, azur...
Giuliano De Luca
 
PDF
Ankur Patel CV
ankurpatel
 
PPTX
Java workflow engines
Mohammed Fazuluddin
 
PPT
Scalable web-based workflow platform
Ashutosh Bijoor
 
PPTX
Plugins 101 In Microsoft Dynamics CRM 2015
Ashish Vishwakarma
 
PPT
Case study on single sign on intranet portal on dotnetnuke
Grey Matter India Technologies PVT LTD
 
PPTX
GDMS Application Platform (1)
Mitch Maynard
 
PPTX
Oracle ATG Commerce - Launch Management Framework
Keyur Shah
 
PPTX
Websites, Web Services and Cloud Applications with Visual Studio
Microsoft Visual Studio
 
PPTX
7 Updates in Microsoft Project 2016
Advaiya Solutions, Inc.
 
PPTX
CTU June 2011 - What’s Interesting In SQL Server Denali
Spiffy
 
PPTX
What's new in ALM using Visual Studio 2013 and TFS 2013
Microsoft Visual Studio
 
PDF
Tips and Tricks for Using the Solution Packager
Ivan Kurtev
 
PPTX
Mdd lcds
rssharma
 
PPT
TFS Administration Overview
Steve Lange
 
DOC
PooraniGanesan_Resume
Poorani Ganesan
 
PDF
Process
Jaishree Garg
 
Ms Cloud Day Closing - Harish
Spiffy
 
Chinnasamy Manickam
Chinnasamy Manickam
 
Ibm jbpm online training in bangalore
GoLogica Technologies
 
SPS Madrid 2018 - modern site and teams provisioning across a bot, spfx, azur...
Giuliano De Luca
 
Ankur Patel CV
ankurpatel
 
Java workflow engines
Mohammed Fazuluddin
 
Scalable web-based workflow platform
Ashutosh Bijoor
 
Plugins 101 In Microsoft Dynamics CRM 2015
Ashish Vishwakarma
 
Case study on single sign on intranet portal on dotnetnuke
Grey Matter India Technologies PVT LTD
 
GDMS Application Platform (1)
Mitch Maynard
 
Oracle ATG Commerce - Launch Management Framework
Keyur Shah
 
Websites, Web Services and Cloud Applications with Visual Studio
Microsoft Visual Studio
 
7 Updates in Microsoft Project 2016
Advaiya Solutions, Inc.
 
CTU June 2011 - What’s Interesting In SQL Server Denali
Spiffy
 
What's new in ALM using Visual Studio 2013 and TFS 2013
Microsoft Visual Studio
 
Tips and Tricks for Using the Solution Packager
Ivan Kurtev
 
Mdd lcds
rssharma
 
TFS Administration Overview
Steve Lange
 
PooraniGanesan_Resume
Poorani Ganesan
 
Process
Jaishree Garg
 

Similar to Custom Workflow Quick Notes (20)

PDF
Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...
Sparkrock
 
PPTX
Custom Automation Masterclass – Workshop 2: Email validation using kKckbox
JanBogaert8
 
PPT
cDevWorkflow Overview
dileepawijay
 
PDF
Detailed Guide to Safely Customize Workflows in Odoo ERP
Shiv Technolabs Pvt. Ltd.
 
PPTX
MBA Intern-ship Making of Digital Marketing ERP
Harnoor Singh
 
PDF
Tailored Solutions: Exploring Custom Development
Ramam Tech
 
PDF
What is a Workflow A Beginners Guide to Workflow Management
Kashish Trivedi
 
PPTX
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
JanBogaert8
 
PPTX
Custom Software Development-It’s a Game-Changer.pptx
Gayla Smith
 
PPTX
Improve your business process productivity with workflows in Microsoft CRM
eSavvy
 
PPT
]project-open[ Workflow Developer Tutorial Part 2
Klaus Hofeditz
 
PPTX
3E’s Approach to Business Process Management Solutions
3E Software Solutions
 
PDF
BAASS Connect 2013 Development Solutions for your Business
BAASS Business Solutions Inc.
 
PDF
Manchester HUG February 2019 - Advanced Workflows and Lead Nurturing
Digital 22 Online Limited
 
PDF
how to set up a project management automated workflow.pdf
James Ellis
 
PDF
Automated Testing for Dynamics CRM 4 - CRMUG 2014
Wael Hamze
 
PDF
Chronos Workflow Platform Brochure 2011
András Szakács MBA, MScEE
 
PDF
Cwp Brochure
EszterReimann
 
PPTX
CASPUG - Developing Reusable Workflow Features
Michael Oryszak
 
PDF
Understanding extensibility options for dynamics 365 ce apps
Mahender Pal
 
Alliance 2017 - CRM Deep Dive: Workflows, Business Rules, Security, and Troub...
Sparkrock
 
Custom Automation Masterclass – Workshop 2: Email validation using kKckbox
JanBogaert8
 
cDevWorkflow Overview
dileepawijay
 
Detailed Guide to Safely Customize Workflows in Odoo ERP
Shiv Technolabs Pvt. Ltd.
 
MBA Intern-ship Making of Digital Marketing ERP
Harnoor Singh
 
Tailored Solutions: Exploring Custom Development
Ramam Tech
 
What is a Workflow A Beginners Guide to Workflow Management
Kashish Trivedi
 
Customer Automation Masterclass - Workshop 1: Data Enrichment using Clearbit
JanBogaert8
 
Custom Software Development-It’s a Game-Changer.pptx
Gayla Smith
 
Improve your business process productivity with workflows in Microsoft CRM
eSavvy
 
]project-open[ Workflow Developer Tutorial Part 2
Klaus Hofeditz
 
3E’s Approach to Business Process Management Solutions
3E Software Solutions
 
BAASS Connect 2013 Development Solutions for your Business
BAASS Business Solutions Inc.
 
Manchester HUG February 2019 - Advanced Workflows and Lead Nurturing
Digital 22 Online Limited
 
how to set up a project management automated workflow.pdf
James Ellis
 
Automated Testing for Dynamics CRM 4 - CRMUG 2014
Wael Hamze
 
Chronos Workflow Platform Brochure 2011
András Szakács MBA, MScEE
 
Cwp Brochure
EszterReimann
 
CASPUG - Developing Reusable Workflow Features
Michael Oryszak
 
Understanding extensibility options for dynamics 365 ce apps
Mahender Pal
 
Ad

More from Sanjaya Prakash Pradhan (12)

PPTX
Late Bound, Early Bound with Demo and Practical in Dynamics 365 Plugin
Sanjaya Prakash Pradhan
 
PDF
Client script best practices in Model driven Power Apps
Sanjaya Prakash Pradhan
 
PDF
C#.net interview questions for dynamics 365 ce crm developers
Sanjaya Prakash Pradhan
 
PPTX
Top picks from 2021 release wave 2 - Power Platform
Sanjaya Prakash Pradhan
 
PPTX
Dynamics 365 CRM Introduction
Sanjaya Prakash Pradhan
 
PPTX
How to become a successful developer in dynamics 365
Sanjaya Prakash Pradhan
 
DOCX
Syllabus for Dynamics 365 CRM/ CE Functional Consultant Course
Sanjaya Prakash Pradhan
 
PPTX
How to use power automate in power virtual agent
Sanjaya Prakash Pradhan
 
PPTX
Working with entities and data in CDS - Power Platform
Sanjaya Prakash Pradhan
 
PPTX
Create a simple and elegant bootstrap registration page
Sanjaya Prakash Pradhan
 
PDF
Introduction Dynamics 365 CRM
Sanjaya Prakash Pradhan
 
PPTX
D365 Dialogs Concepts & Facts
Sanjaya Prakash Pradhan
 
Late Bound, Early Bound with Demo and Practical in Dynamics 365 Plugin
Sanjaya Prakash Pradhan
 
Client script best practices in Model driven Power Apps
Sanjaya Prakash Pradhan
 
C#.net interview questions for dynamics 365 ce crm developers
Sanjaya Prakash Pradhan
 
Top picks from 2021 release wave 2 - Power Platform
Sanjaya Prakash Pradhan
 
Dynamics 365 CRM Introduction
Sanjaya Prakash Pradhan
 
How to become a successful developer in dynamics 365
Sanjaya Prakash Pradhan
 
Syllabus for Dynamics 365 CRM/ CE Functional Consultant Course
Sanjaya Prakash Pradhan
 
How to use power automate in power virtual agent
Sanjaya Prakash Pradhan
 
Working with entities and data in CDS - Power Platform
Sanjaya Prakash Pradhan
 
Create a simple and elegant bootstrap registration page
Sanjaya Prakash Pradhan
 
Introduction Dynamics 365 CRM
Sanjaya Prakash Pradhan
 
D365 Dialogs Concepts & Facts
Sanjaya Prakash Pradhan
 
Ad

Recently uploaded (20)

PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PDF
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
ARAL-Orientation_Morning-Session_Day-11.pdf
JoelVilloso1
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
Dimensions of Societal Planning in Commonism
StefanMz
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 

Custom Workflow Quick Notes

  • 1. CUSTOMIZATION CUSTOM WORKFLOW ACTIVITY (CWA) TECHNICAL TRAINING Sanjaya Prakash Pradhan MCP & Founder of Softchief.com COURSE ID D365 - 003 Duration - 4Hrs
  • 2. Fundamentals ● Microsoft.Net Assemblies ● Requires Programming knowledge ● .Net Activities ● Input Arguments ● Output Arguments ● Argument Data types ● Default and Required Properties ● Getting and Setting Parameters https://youtu.be/Ps1u6Ti2wQ8
  • 3. Required Tools To develop a custom workflow you need to have: 1. Visual Studio IDE 2. Dynamics 365 SDK – Plugin Registration Tool 3. Simple Knowledge on C#.NET Required Reference Dlls ● Microsoft.Xrm.Sdk.dll ● Microsoft.Xrm.Sdk.Workflow.dll ● System.Runtime.Serialization
  • 4. Reference Required using System.Activities; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Workflow;
  • 5. Remember 1. Custom workflows can be incorporated by CRM workflows or Dialogs as a process step. Custom workflows cannot be run independently as these are treated as a process step inside a CRM workflow or Dialog. 2. Every workflow supports some Input Parameters and Output parameters. 3. Input Parameters are supplied to the custom workflow from the CRM workflow and Output parameters are returned from the custom workflow to CRM workflow to use in check condition steps. 4. After developing the custom workflow assembly it is registered in CRM using plugin registration tool the same way we do for plugins. 5. Custom workflow activities are .net assemblies which are registered in CRM. 6. Every custom workflow activity class inherits CodeActivity class. 7. Each custom workflow assembly must be signed in by a KEY.
  • 6. Input Argument DateTime [Input("DateTime input")] [Output("DateTime output")] [Default("2013-07-09T02:54:00Z")] public InOutArgument DateTime { get; set; }
  • 7. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Activities; using Microsoft.Xrm.Sdk.Workflow; namespace GetAge { public sealed class CalculateAge:CodeActivity { [Input("Date Of Birth")] public InArgument<DateTime> DOB { get; set; } protected override void Execute(CodeActivityContext context) { DateTime dtDOB = DOB.Get(context); int CalculatedAge = Convert.ToInt32((DateTime.Now.Subtract(dtDOB).TotalDays)/365); Age.Set(context, CalculatedAge); }