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

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

What's hot (20)

Ms Cloud Day Closing - Harish
Ms Cloud Day Closing - HarishMs Cloud Day Closing - Harish
Ms Cloud Day Closing - Harish
 
Chinnasamy Manickam
Chinnasamy ManickamChinnasamy Manickam
Chinnasamy Manickam
 
Ibm jbpm online training in bangalore
Ibm jbpm online training in bangaloreIbm jbpm online training in bangalore
Ibm jbpm online training in bangalore
 
SPS Madrid 2018 - modern site and teams provisioning across a bot, spfx, azur...
SPS Madrid 2018 - modern site and teams provisioning across a bot, spfx, azur...SPS Madrid 2018 - modern site and teams provisioning across a bot, spfx, azur...
SPS Madrid 2018 - modern site and teams provisioning across a bot, spfx, azur...
 
Ankur Patel CV
Ankur Patel CVAnkur Patel CV
Ankur Patel CV
 
Java workflow engines
Java workflow enginesJava workflow engines
Java workflow engines
 
Scalable web-based workflow platform
Scalable web-based workflow platformScalable web-based workflow platform
Scalable web-based workflow platform
 
Plugins 101 In Microsoft Dynamics CRM 2015
Plugins 101 In Microsoft Dynamics CRM 2015Plugins 101 In Microsoft Dynamics CRM 2015
Plugins 101 In Microsoft Dynamics CRM 2015
 
Case study on single sign on intranet portal on dotnetnuke
Case study on single sign on intranet portal on dotnetnukeCase study on single sign on intranet portal on dotnetnuke
Case study on single sign on intranet portal on dotnetnuke
 
GDMS Application Platform (1)
GDMS Application Platform (1)GDMS Application Platform (1)
GDMS Application Platform (1)
 
Oracle ATG Commerce - Launch Management Framework
Oracle ATG Commerce - Launch Management FrameworkOracle ATG Commerce - Launch Management Framework
Oracle ATG Commerce - Launch Management Framework
 
Websites, Web Services and Cloud Applications with Visual Studio
Websites, Web Services and Cloud Applications with Visual StudioWebsites, Web Services and Cloud Applications with Visual Studio
Websites, Web Services and Cloud Applications with Visual Studio
 
7 Updates in Microsoft Project 2016
7 Updates in Microsoft Project 20167 Updates in Microsoft Project 2016
7 Updates in Microsoft Project 2016
 
CTU June 2011 - What’s Interesting In SQL Server Denali
CTU June 2011 - What’s Interesting In SQL Server DenaliCTU June 2011 - What’s Interesting In SQL Server Denali
CTU June 2011 - What’s Interesting In SQL Server Denali
 
What's new in ALM using Visual Studio 2013 and TFS 2013
What's new in ALM using Visual Studio 2013 and TFS 2013What's new in ALM using Visual Studio 2013 and TFS 2013
What's new in ALM using Visual Studio 2013 and TFS 2013
 
Tips and Tricks for Using the Solution Packager
Tips and Tricks for Using the Solution PackagerTips and Tricks for Using the Solution Packager
Tips and Tricks for Using the Solution Packager
 
Mdd lcds
Mdd lcdsMdd lcds
Mdd lcds
 
TFS Administration Overview
TFS Administration OverviewTFS Administration Overview
TFS Administration Overview
 
PooraniGanesan_Resume
PooraniGanesan_ResumePooraniGanesan_Resume
PooraniGanesan_Resume
 
Process
ProcessProcess
Process
 

Similar to Custom Workflow Quick Notes

Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Nordic Infrastructure Conference
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
shyamraj55
 
Pratk kambe rac
Pratk kambe racPratk kambe rac
Pratk kambe rac
Pratik Kambe
 
Resume of sidharam prachcande PLM Consultant
Resume of sidharam prachcande  PLM ConsultantResume of sidharam prachcande  PLM Consultant
Resume of sidharam prachcande PLM Consultant
Sidharth prachande
 
Cardiff University FTS presentation 2011 (MS Word plug in)
Cardiff University FTS presentation 2011 (MS Word plug in)Cardiff University FTS presentation 2011 (MS Word plug in)
Cardiff University FTS presentation 2011 (MS Word plug in)
salsalamah
 
Code driven development in drupal
Code driven development in drupalCode driven development in drupal
Code driven development in drupal
Andriy Yun
 
Google Cloud Certifications & Machine Learning
Google Cloud Certifications & Machine LearningGoogle Cloud Certifications & Machine Learning
Google Cloud Certifications & Machine Learning
Dan Sullivan, Ph.D.
 
UiPath Task Capture training.pdf
UiPath Task Capture training.pdfUiPath Task Capture training.pdf
UiPath Task Capture training.pdf
Cristina Vidu
 
ControlSystemsAutogenBrochure
ControlSystemsAutogenBrochureControlSystemsAutogenBrochure
ControlSystemsAutogenBrochure
Tony Simeonov
 
Suite Script 2.0 API Basics
Suite Script 2.0 API BasicsSuite Script 2.0 API Basics
Suite Script 2.0 API Basics
Jimmy Butare
 
SaaS + CMS: Tricode's Technical Roadtrip
SaaS + CMS: Tricode's Technical RoadtripSaaS + CMS: Tricode's Technical Roadtrip
SaaS + CMS: Tricode's Technical Roadtrip
Magnolia
 
Magnolia conference 2014: Tricode, Technical road to Tricode SAAS, powered by...
Magnolia conference 2014: Tricode, Technical road to Tricode SAAS, powered by...Magnolia conference 2014: Tricode, Technical road to Tricode SAAS, powered by...
Magnolia conference 2014: Tricode, Technical road to Tricode SAAS, powered by...
Tricode (part of Dept)
 
Azure Integration DTAP Series, How to go from Development to Production – Par...
Azure Integration DTAP Series, How to go from Development to Production – Par...Azure Integration DTAP Series, How to go from Development to Production – Par...
Azure Integration DTAP Series, How to go from Development to Production – Par...
BizTalk360
 
yourfirstcodedui-121217152431-phpapp02.pdf
yourfirstcodedui-121217152431-phpapp02.pdfyourfirstcodedui-121217152431-phpapp02.pdf
yourfirstcodedui-121217152431-phpapp02.pdf
Patiento Del Mar
 
Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...
Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...
Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...
Databricks
 
Business analyst ppt
Business analyst pptBusiness analyst ppt
Business analyst ppt
Yaswanth Babu Gummadivelli
 
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud EnvironmentsAutomation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
Michael Rüefli
 
HCI U-II HCI software Process (1).pdf
HCI U-II HCI software Process (1).pdfHCI U-II HCI software Process (1).pdf
HCI U-II HCI software Process (1).pdf
udhayaveenaa
 
Swarn Singh_CV_SSE
Swarn Singh_CV_SSESwarn Singh_CV_SSE
Swarn Singh_CV_SSE
Swarn Singh
 
Introduction to DL-BUILDER
Introduction to DL-BUILDERIntroduction to DL-BUILDER
Introduction to DL-BUILDER
ssuserc37b5e
 

Similar to Custom Workflow Quick Notes (20)

Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
Kent Agerlund - Via monstra part 4 become the hero of the day, master configm...
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
 
Pratk kambe rac
Pratk kambe racPratk kambe rac
Pratk kambe rac
 
Resume of sidharam prachcande PLM Consultant
Resume of sidharam prachcande  PLM ConsultantResume of sidharam prachcande  PLM Consultant
Resume of sidharam prachcande PLM Consultant
 
Cardiff University FTS presentation 2011 (MS Word plug in)
Cardiff University FTS presentation 2011 (MS Word plug in)Cardiff University FTS presentation 2011 (MS Word plug in)
Cardiff University FTS presentation 2011 (MS Word plug in)
 
Code driven development in drupal
Code driven development in drupalCode driven development in drupal
Code driven development in drupal
 
Google Cloud Certifications & Machine Learning
Google Cloud Certifications & Machine LearningGoogle Cloud Certifications & Machine Learning
Google Cloud Certifications & Machine Learning
 
UiPath Task Capture training.pdf
UiPath Task Capture training.pdfUiPath Task Capture training.pdf
UiPath Task Capture training.pdf
 
ControlSystemsAutogenBrochure
ControlSystemsAutogenBrochureControlSystemsAutogenBrochure
ControlSystemsAutogenBrochure
 
Suite Script 2.0 API Basics
Suite Script 2.0 API BasicsSuite Script 2.0 API Basics
Suite Script 2.0 API Basics
 
SaaS + CMS: Tricode's Technical Roadtrip
SaaS + CMS: Tricode's Technical RoadtripSaaS + CMS: Tricode's Technical Roadtrip
SaaS + CMS: Tricode's Technical Roadtrip
 
Magnolia conference 2014: Tricode, Technical road to Tricode SAAS, powered by...
Magnolia conference 2014: Tricode, Technical road to Tricode SAAS, powered by...Magnolia conference 2014: Tricode, Technical road to Tricode SAAS, powered by...
Magnolia conference 2014: Tricode, Technical road to Tricode SAAS, powered by...
 
Azure Integration DTAP Series, How to go from Development to Production – Par...
Azure Integration DTAP Series, How to go from Development to Production – Par...Azure Integration DTAP Series, How to go from Development to Production – Par...
Azure Integration DTAP Series, How to go from Development to Production – Par...
 
yourfirstcodedui-121217152431-phpapp02.pdf
yourfirstcodedui-121217152431-phpapp02.pdfyourfirstcodedui-121217152431-phpapp02.pdf
yourfirstcodedui-121217152431-phpapp02.pdf
 
Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...
Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...
Developing ML-enabled Data Pipelines on Databricks using IDE & CI/CD at Runta...
 
Business analyst ppt
Business analyst pptBusiness analyst ppt
Business analyst ppt
 
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud EnvironmentsAutomation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
 
HCI U-II HCI software Process (1).pdf
HCI U-II HCI software Process (1).pdfHCI U-II HCI software Process (1).pdf
HCI U-II HCI software Process (1).pdf
 
Swarn Singh_CV_SSE
Swarn Singh_CV_SSESwarn Singh_CV_SSE
Swarn Singh_CV_SSE
 
Introduction to DL-BUILDER
Introduction to DL-BUILDERIntroduction to DL-BUILDER
Introduction to DL-BUILDER
 

More from Sanjaya Prakash Pradhan

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

More from Sanjaya Prakash Pradhan (12)

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

Recently uploaded

Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 

Recently uploaded (20)

Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 

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); }