SlideShare a Scribd company logo
#Collab365 @pgbhoyar
Future Proofing Your Workflow Investment
- How to develop maintainable custom
workflows in Office 365SharePoint Online?
Prashant G Bhoyar (PGB)
Collab365
20 October 2016
#Collab365 @pgbhoyar
2
• Born and raised in India
• Came to United States of America in 2007 for
studies
• University of Maryland College Park Alumni
• Technical Reviewer of the book “Pro : SharePoint
2013 Administration”
• Organizer of SharePoint Saturday Baltimore
(SPSBMORE)
• Founder and Organizer of DC-Metro Office 365
User Group
 Monthly in person & online event
 http://www.meetup.com/DC-Metro-Office-365-
User-Group/
• Recipient of Antarctic Service Medal
• Senior Consultant at Portal Solutions
Who AM I ?
Prashant G Bhoyar (PGB)
#Collab365 @pgbhoyar
About Portal Solutions
We deliver Digital
Workplace Products
and Solutions that help
organizations share
what they know and
find what they need by
connecting people,
data, and content.
3
#Collab365 @pgbhoyar
OneWindow Capabilities –
Modern Intranet Out-of-the Box
Social and Mobile
experience
Collaborative workspaces
(public or private,
communities or projects)
People directory and
gateway to other
applications (my apps)
Stories and corporate
communication
publishing
#Collab365 @pgbhoyar
OneWindow Workplace
• Built on and for Office 365 and Microsoft Azure
• Available for Office 365 and SharePoint Hybrid environment
OneWindow
Yammer
SharePoint
Online
Skype For Business Office Groups Office Graph/Delve
Videos
OneDrive for
Business
OneWindow APIs
Planner
Analytics
#Collab365 @pgbhoyar
Next Steps
6
Interested in assessing if OneWindow Workplace
is right for you?
Let’s talk. Click here or go to http://www.onewindowapp.com to learn more.
#Collab365 @pgbhoyar
• Future
• Tips for writing maintainable
workflows
• Throttling Limits in Office 365
• Limitations of SharePoint
Workflows
• Q&A
Agenda
#Collab365 @pgbhoyar
Typical SharePoint Workflow Life Cycle
Initiation
• When the workflow instance is started on list/library item
Running
• User Interaction via tasks
• Status page reflects the status of the workflows
Termination • End of the workflow instance
Association
• When the workflow is associated with List/Library
#Collab365 @pgbhoyar
• Browser
• SharePoint 2013 Designer
• Visio 2013
• Visual Studio 2012/2013/2015
• Third Party Tools
• Flow/Logic Apps
Office 365 /SharePoint
Online 2013 Workflow
Tools
#Collab365 @pgbhoyar
#Collab365 @pgbhoyar
Recent Announcements
• There will NOT be SharePoint Designer 2016
 http://sharepoint-community.net/forum/topics/what-s-happening-to-sharepoint-designer-in-
sharepoint-2016-is-it
• Microsoft Flow
 https://powerapps.microsoft.com/en-us/blog/introducing-microsoft-flow-and-announcing-the-
public-preview-of-powerapps/
11
#Collab365 @pgbhoyar
What does this mean?
• SharePoint Workflows most probably will have same fate as
InfoPath forms services
 Microsoft will continue to support
 No future enhancements
• Time to explore other options
 Microsoft Flow
 Under Preview https://flow.microsoft.com
 Visual Studio Workflows
 Can deploy them only as “App”
 Other Third Party Products
12
#Collab365 @pgbhoyar
#Collab365 @pgbhoyar
14
• The development/testing experience is
slow
 Because of platform’s architecture
 In general Workflow development is slow
process
 Analogy : Public Transportation System
• Difficult to gather all the requirements
before start of the development
 Be ready for multiple revisions
Lessons Learned
#Collab365 @pgbhoyar
#Collab365 @pgbhoyar
Tips for developing maintainable custom workflows
• Naming Convention for Custom Workflows
 Use the naming convention that works best for you and your
organization
 For example, List or Library + ListName + Purpose
• Use activity “Add a comment” to write informative comments in
the workflow
 End users will not see these comments unlike workflow history list
logs
#Collab365 @pgbhoyar
Tips for developing maintainable custom workflows
• Have flow chart of the workflow handy
 Use Microsoft Visio
 Pen and Paper works too 
• Implement the logic to stop/start at a particular stage
 Super helpful in case the workflow instance gets terminated
 Super helpful during migration
 Helpful to update the business logic
• Using If condition and a custom variable, we can pick and choose the additional
logging
 Similar to #if debug directive in C#
 The workflow will be long, but it can save a lot of troubleshooting/development time
 End users will not see additional comments in Production 
#Collab365 @pgbhoyar
Tips for developing maintainable custom workflows
• Save the Workflow status in a separate field
 Avoid default workflow name
 Helps to divide workflow into multiple workflows
• Create a separate Workflow status field as text
 Gives the ability of filtering and sorting
 Approvers love this option
• Capture the dates of various approval steps
 Helps to generate audit logs/reports
#Collab365 @pgbhoyar
Tips for developing maintainable custom workflows
• Review the workflow starting logic
 Limit how many times the workflow gets started
 Make sure they won’t start unnecessarily after the workflow is ended
successfully
• If possible Break down the workflows in multiple WFs
 Helps a lot in development and maintenance
 We can start SharePoint 2010 workflows from SharePoint 2013 only
 We can not start SharePoint 2013 workflows from SharePoint 2013
workflows
 You can use “Wait for field change in current item” to trigger the workflows
#Collab365 @pgbhoyar
Tips for developing maintainable custom workflows
• Use new Task List and History list for each workflow
 To create the new tasks list and history list, we can use
 Workflow Settings page
 SharePoint Designer
 SharePoint UI
 OOTB “Workflow Tasks” List has additional notifications
 To turn off -> List Settings – Advanced Settings -> Uncheck “Send e-mail
when ownership is assigned?”
#Collab365 @pgbhoyar
Tips for developing maintainable custom workflows
• Don’t create the variable if you don’t have to
 50 is the limit
• Use SharePoint groups to assign the tasks/send emails instead of
individual users
• Keep workflow initiation activity to minimum
#Collab365 @pgbhoyar
Tips for developing maintainable custom workflows
• Do not modify the OOTB global workflows
 Create copy and then modify
• Log information in the History List
 Log variables, important info that will be helpful during
debugging/troubleshooting
 End users can see the logs 
#Collab365 @pgbhoyar
Tips for developing maintainable custom workflows
• Create custom task content types for tasks with only one logical
outcome
• Pay extra attention while modifying the Custom Task content
types
 Task outcome field must be the last field
• Restrict the access
• For large lists, don’t remove the workflow, but set to no new
instance
 Do it in non business hours
#Collab365 @pgbhoyar
#Collab365 @pgbhoyar
Throttling Limits in Office 365
• In Office 365 workflow manager has strict throttling limits for
SharePoint 2013 Style workflows
• The instance has exceeded the outbound http request quota for a
1.00:00:00 time period. The 5000 request limit was reached in <time>.
 Analogy credit score
• Workflow instances can get suspended and we need to wait 24
hours to resume the suspended workflow instance by
 clicking Resume for the workflow or
 by using the SharePoint Workflow Client Object Model
• Suspended workflow instances will be terminated after 10 days.
Source : https://support.microsoft.com/en-us/kb/3076399
#Collab365 @pgbhoyar
Throttling Limits in Office 365
• The resource limitations are for per workflow in a site collection
in the span of 24 hours
• There is no OOTB email alert if the workflow get suspended
• We can find the suspended workflows on the page
/_layouts/15/WorkflowServiceHealth.aspx
• If we develop workflow as an “App” these throttling limitations
does not apply
#Collab365 @pgbhoyar
Throttling Limits in Office 365
#Collab365 @pgbhoyar
Throttling Limits in Office 365 – Design Consideration
• Avoid infinite loops
 We may use “Wait for field change in current item”
• Avoid using a workflow to execute complex algorithms
 Workflows are intended to manage document-driven, human
processes and not to dispatch significant computational tasks.
• Avoid the use of the “Wait for Event in List Item" activity
Source : https://support.microsoft.com/en-us/kb/3076399
#Collab365 @pgbhoyar
#Collab365 @pgbhoyar
30
Limitations
 We can not start workflows on delete
event
 50 variable limit
 No source control for SPD workflows
 String functions are limited
 For advance implementations you will
need to involve devs/architects
 You can not start the workflows on Task
lists whenever new tasks gets created by
SP2013 style workflows
 Workaround : Create SP2010 style workflow
in Task List
#Collab365 @pgbhoyar
Questions? Feedback? Contact me:
 Twitter: @PGBhoyar
 Blog: http://pgbhoyar.com (limited contents)
 Email: pgbhoyar@gmail.com
 Feedback : Please provide feedback
 Conference Link
 Email or
 Anonymous Suggestions: https://www.suggestionox.com/r/pgb
Thank You
Organizers, Sponsors and You for Making this Possible.

More Related Content

PDF
SPSVB 2013 Everything About SharePoint 2010 Workflows
PDF
SharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows
PDF
Building Business Applications in Office 365 SharePoint Online Using Logic Apps
PDF
How to develop maintainable custom Workflows in Office365 SharePoint online 2...
PDF
Getting Started With SharePoint REST API in Nintex Workflows for Office 365 I...
PDF
How to Develop Maintainable Custom Workflows in Office 365 Share Point Online?
PDF
Advanced Office365 Sharepoint online Workflows
PDF
SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...
SPSVB 2013 Everything About SharePoint 2010 Workflows
SharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows
Building Business Applications in Office 365 SharePoint Online Using Logic Apps
How to develop maintainable custom Workflows in Office365 SharePoint online 2...
Getting Started With SharePoint REST API in Nintex Workflows for Office 365 I...
How to Develop Maintainable Custom Workflows in Office 365 Share Point Online?
Advanced Office365 Sharepoint online Workflows
SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...

What's hot (20)

PPTX
Writing futuristic workflows in office 365 SharePoint 2013 2016 on premise
PDF
Getting started with SharePoint 2013 Workflows
PDF
Writing Futuristic Workflows in Office 365 SharePoint 2013 2016 on premise
PPTX
What’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechCon
PDF
Build scalable SharePoint 2013 Staged Workflows to run locally and in the Cloud
PPTX
Creating SharePoint 2013 Workflows
PPT
Share point 2013 features Workflow
PPTX
SharePoint Server 2013 Workflows
PPTX
Share point workflow presentation
PDF
Getting started with Office 365 SharePoint Online Workflows : SharePoint Fest...
PDF
Building Business Applications for Office 365 SharePoint Online using Azure M...
PPT
SharePoint 2010 Workflows
PPTX
SharePoint Designer Workflows - Nuts, Bolts and Examples
PPT
Sharepoint developement tools(webparts+worflows) EBizSoft
PPTX
Image Slider with SharePoint 2013 Search Results Web Part
PPTX
Configuring Workflows in SharePoint 2010
PPTX
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
PDF
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
PPTX
Exam Cram for 70-488: Developing Microsoft SharePoint Server 2013 Core Solutions
PPTX
Datapolis Guest Expert Presentation: Limitations of SharePoint Designer by Bj...
Writing futuristic workflows in office 365 SharePoint 2013 2016 on premise
Getting started with SharePoint 2013 Workflows
Writing Futuristic Workflows in Office 365 SharePoint 2013 2016 on premise
What’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechCon
Build scalable SharePoint 2013 Staged Workflows to run locally and in the Cloud
Creating SharePoint 2013 Workflows
Share point 2013 features Workflow
SharePoint Server 2013 Workflows
Share point workflow presentation
Getting started with Office 365 SharePoint Online Workflows : SharePoint Fest...
Building Business Applications for Office 365 SharePoint Online using Azure M...
SharePoint 2010 Workflows
SharePoint Designer Workflows - Nuts, Bolts and Examples
Sharepoint developement tools(webparts+worflows) EBizSoft
Image Slider with SharePoint 2013 Search Results Web Part
Configuring Workflows in SharePoint 2010
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
Exam Cram for 70-488: Developing Microsoft SharePoint Server 2013 Core Solutions
Datapolis Guest Expert Presentation: Limitations of SharePoint Designer by Bj...
Ad

Similar to Future Proofing your Workflow Investment How to Develop Maintainable Custom Workflows in Office365 Sharepoint Online (20)

PDF
Writing Futuristic Workflows in Office 365 SharePoint On Prem 2013 2016 - SPT...
PDF
Penny coventry auto-bp-spsbe31
PPTX
SPSBoise - SharePoint and Workflows: And Introduction and Overview
PPT
Building Workflows for SharePoint 2010 with SharePoint Designer and Visio
PDF
Edgewater Consulting Mastering SharePoint Designer Workflows
PPTX
SharePoint Saturday Workflow in Action
PPTX
Drew madelung sp designer workflows - sp-biz
PPTX
Workflow in SharePoint 2010
PPTX
Solving business problems: No-code approach with SharePoint designer workflow...
PPT
West Monroe Partners - SharePoint 2010 Workflow - learn the secrets to greate...
PPTX
Sharepoint 2010 document managment and workflow
PPTX
Automate business processes using SharePoint Designer Workflows
PDF
Getting Started with SharePoint REST APIs in Custom Sharepoint Workflows - SP...
PPTX
Peter Ward: The True Power of SharePoint Designer Workflows
PDF
Next Generation Workflows - SharePoint Day 2013
PPTX
2012 MindSurf - Augmenting Business Process with SharePoint
PPTX
CASPUG - Developing Reusable Workflow Features
PPTX
SharePoint Saturday UK - Workflow Evolution
PDF
Building the intranet of the future: Using SharePoint to empower collaboration
PPTX
SharePoint Workflows - SharePoint Saturday Twin Cities April 2012
Writing Futuristic Workflows in Office 365 SharePoint On Prem 2013 2016 - SPT...
Penny coventry auto-bp-spsbe31
SPSBoise - SharePoint and Workflows: And Introduction and Overview
Building Workflows for SharePoint 2010 with SharePoint Designer and Visio
Edgewater Consulting Mastering SharePoint Designer Workflows
SharePoint Saturday Workflow in Action
Drew madelung sp designer workflows - sp-biz
Workflow in SharePoint 2010
Solving business problems: No-code approach with SharePoint designer workflow...
West Monroe Partners - SharePoint 2010 Workflow - learn the secrets to greate...
Sharepoint 2010 document managment and workflow
Automate business processes using SharePoint Designer Workflows
Getting Started with SharePoint REST APIs in Custom Sharepoint Workflows - SP...
Peter Ward: The True Power of SharePoint Designer Workflows
Next Generation Workflows - SharePoint Day 2013
2012 MindSurf - Augmenting Business Process with SharePoint
CASPUG - Developing Reusable Workflow Features
SharePoint Saturday UK - Workflow Evolution
Building the intranet of the future: Using SharePoint to empower collaboration
SharePoint Workflows - SharePoint Saturday Twin Cities April 2012
Ad

More from Prashant G Bhoyar (Microsoft MVP) (17)

PDF
Building Intelligent bots using microsoft bot framework and cognitive service...
PDF
Microsoft Flow for SharePoint Designer Workflow Professionals-SPFestDC2019
PDF
Getting Started with SharePoint Patterns and Practices Provisioning Engine-SP...
PDF
Microsoft Bot Framework for SharePoint Developers-SPFestDC2019
PDF
Azure Active Directory (Azure AD) for office 365 Developers : SPFestDC 2019
PDF
Microsoft Flow For Developers
PDF
Introduction to AI and Cognitive Services For Microsoft 365 Developers and In...
PDF
Introduction to AI and Cognitive Services for O365 Devs Azure Bootcamp Reston
PDF
Azure Active Directory for Office 365 Developers SPFEST DC 2018
PDF
Getting started with Microsoft Graph APIs SP FEST DC 2018
PDF
Introduction to AI and Cognitive Services for Office 365 Developers SPFest DC...
PDF
Getting Started with Office 365 Developers Patterns and Practices Provisionin...
PDF
Getting Started with Microsoft Graph API SPTechCon Washington DC 2017
PDF
Getting started with SharePoint REST API in custom SharePoint workflows Resto...
PDF
SPEngage Raleigh 2017 Azure Active Directory For Office 365 Developers
PDF
Getting started with Content Deployment in SharePoint 2013
PDF
Getting started with content deployment in share point 2013 SPBizConf 2015
Building Intelligent bots using microsoft bot framework and cognitive service...
Microsoft Flow for SharePoint Designer Workflow Professionals-SPFestDC2019
Getting Started with SharePoint Patterns and Practices Provisioning Engine-SP...
Microsoft Bot Framework for SharePoint Developers-SPFestDC2019
Azure Active Directory (Azure AD) for office 365 Developers : SPFestDC 2019
Microsoft Flow For Developers
Introduction to AI and Cognitive Services For Microsoft 365 Developers and In...
Introduction to AI and Cognitive Services for O365 Devs Azure Bootcamp Reston
Azure Active Directory for Office 365 Developers SPFEST DC 2018
Getting started with Microsoft Graph APIs SP FEST DC 2018
Introduction to AI and Cognitive Services for Office 365 Developers SPFest DC...
Getting Started with Office 365 Developers Patterns and Practices Provisionin...
Getting Started with Microsoft Graph API SPTechCon Washington DC 2017
Getting started with SharePoint REST API in custom SharePoint workflows Resto...
SPEngage Raleigh 2017 Azure Active Directory For Office 365 Developers
Getting started with Content Deployment in SharePoint 2013
Getting started with content deployment in share point 2013 SPBizConf 2015

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Modernizing your data center with Dell and AMD
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
Teaching material agriculture food technology
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
A Presentation on Artificial Intelligence
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Electronic commerce courselecture one. Pdf
Spectral efficient network and resource selection model in 5G networks
Diabetes mellitus diagnosis method based random forest with bat algorithm
Advanced methodologies resolving dimensionality complications for autism neur...
Modernizing your data center with Dell and AMD
The AUB Centre for AI in Media Proposal.docx
Teaching material agriculture food technology
Understanding_Digital_Forensics_Presentation.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Empathic Computing: Creating Shared Understanding
A Presentation on Artificial Intelligence
Dropbox Q2 2025 Financial Results & Investor Presentation
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Chapter 3 Spatial Domain Image Processing.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf

Future Proofing your Workflow Investment How to Develop Maintainable Custom Workflows in Office365 Sharepoint Online

  • 1. #Collab365 @pgbhoyar Future Proofing Your Workflow Investment - How to develop maintainable custom workflows in Office 365SharePoint Online? Prashant G Bhoyar (PGB) Collab365 20 October 2016
  • 2. #Collab365 @pgbhoyar 2 • Born and raised in India • Came to United States of America in 2007 for studies • University of Maryland College Park Alumni • Technical Reviewer of the book “Pro : SharePoint 2013 Administration” • Organizer of SharePoint Saturday Baltimore (SPSBMORE) • Founder and Organizer of DC-Metro Office 365 User Group  Monthly in person & online event  http://www.meetup.com/DC-Metro-Office-365- User-Group/ • Recipient of Antarctic Service Medal • Senior Consultant at Portal Solutions Who AM I ? Prashant G Bhoyar (PGB)
  • 3. #Collab365 @pgbhoyar About Portal Solutions We deliver Digital Workplace Products and Solutions that help organizations share what they know and find what they need by connecting people, data, and content. 3
  • 4. #Collab365 @pgbhoyar OneWindow Capabilities – Modern Intranet Out-of-the Box Social and Mobile experience Collaborative workspaces (public or private, communities or projects) People directory and gateway to other applications (my apps) Stories and corporate communication publishing
  • 5. #Collab365 @pgbhoyar OneWindow Workplace • Built on and for Office 365 and Microsoft Azure • Available for Office 365 and SharePoint Hybrid environment OneWindow Yammer SharePoint Online Skype For Business Office Groups Office Graph/Delve Videos OneDrive for Business OneWindow APIs Planner Analytics
  • 6. #Collab365 @pgbhoyar Next Steps 6 Interested in assessing if OneWindow Workplace is right for you? Let’s talk. Click here or go to http://www.onewindowapp.com to learn more.
  • 7. #Collab365 @pgbhoyar • Future • Tips for writing maintainable workflows • Throttling Limits in Office 365 • Limitations of SharePoint Workflows • Q&A Agenda
  • 8. #Collab365 @pgbhoyar Typical SharePoint Workflow Life Cycle Initiation • When the workflow instance is started on list/library item Running • User Interaction via tasks • Status page reflects the status of the workflows Termination • End of the workflow instance Association • When the workflow is associated with List/Library
  • 9. #Collab365 @pgbhoyar • Browser • SharePoint 2013 Designer • Visio 2013 • Visual Studio 2012/2013/2015 • Third Party Tools • Flow/Logic Apps Office 365 /SharePoint Online 2013 Workflow Tools
  • 11. #Collab365 @pgbhoyar Recent Announcements • There will NOT be SharePoint Designer 2016  http://sharepoint-community.net/forum/topics/what-s-happening-to-sharepoint-designer-in- sharepoint-2016-is-it • Microsoft Flow  https://powerapps.microsoft.com/en-us/blog/introducing-microsoft-flow-and-announcing-the- public-preview-of-powerapps/ 11
  • 12. #Collab365 @pgbhoyar What does this mean? • SharePoint Workflows most probably will have same fate as InfoPath forms services  Microsoft will continue to support  No future enhancements • Time to explore other options  Microsoft Flow  Under Preview https://flow.microsoft.com  Visual Studio Workflows  Can deploy them only as “App”  Other Third Party Products 12
  • 14. #Collab365 @pgbhoyar 14 • The development/testing experience is slow  Because of platform’s architecture  In general Workflow development is slow process  Analogy : Public Transportation System • Difficult to gather all the requirements before start of the development  Be ready for multiple revisions Lessons Learned
  • 16. #Collab365 @pgbhoyar Tips for developing maintainable custom workflows • Naming Convention for Custom Workflows  Use the naming convention that works best for you and your organization  For example, List or Library + ListName + Purpose • Use activity “Add a comment” to write informative comments in the workflow  End users will not see these comments unlike workflow history list logs
  • 17. #Collab365 @pgbhoyar Tips for developing maintainable custom workflows • Have flow chart of the workflow handy  Use Microsoft Visio  Pen and Paper works too  • Implement the logic to stop/start at a particular stage  Super helpful in case the workflow instance gets terminated  Super helpful during migration  Helpful to update the business logic • Using If condition and a custom variable, we can pick and choose the additional logging  Similar to #if debug directive in C#  The workflow will be long, but it can save a lot of troubleshooting/development time  End users will not see additional comments in Production 
  • 18. #Collab365 @pgbhoyar Tips for developing maintainable custom workflows • Save the Workflow status in a separate field  Avoid default workflow name  Helps to divide workflow into multiple workflows • Create a separate Workflow status field as text  Gives the ability of filtering and sorting  Approvers love this option • Capture the dates of various approval steps  Helps to generate audit logs/reports
  • 19. #Collab365 @pgbhoyar Tips for developing maintainable custom workflows • Review the workflow starting logic  Limit how many times the workflow gets started  Make sure they won’t start unnecessarily after the workflow is ended successfully • If possible Break down the workflows in multiple WFs  Helps a lot in development and maintenance  We can start SharePoint 2010 workflows from SharePoint 2013 only  We can not start SharePoint 2013 workflows from SharePoint 2013 workflows  You can use “Wait for field change in current item” to trigger the workflows
  • 20. #Collab365 @pgbhoyar Tips for developing maintainable custom workflows • Use new Task List and History list for each workflow  To create the new tasks list and history list, we can use  Workflow Settings page  SharePoint Designer  SharePoint UI  OOTB “Workflow Tasks” List has additional notifications  To turn off -> List Settings – Advanced Settings -> Uncheck “Send e-mail when ownership is assigned?”
  • 21. #Collab365 @pgbhoyar Tips for developing maintainable custom workflows • Don’t create the variable if you don’t have to  50 is the limit • Use SharePoint groups to assign the tasks/send emails instead of individual users • Keep workflow initiation activity to minimum
  • 22. #Collab365 @pgbhoyar Tips for developing maintainable custom workflows • Do not modify the OOTB global workflows  Create copy and then modify • Log information in the History List  Log variables, important info that will be helpful during debugging/troubleshooting  End users can see the logs 
  • 23. #Collab365 @pgbhoyar Tips for developing maintainable custom workflows • Create custom task content types for tasks with only one logical outcome • Pay extra attention while modifying the Custom Task content types  Task outcome field must be the last field • Restrict the access • For large lists, don’t remove the workflow, but set to no new instance  Do it in non business hours
  • 25. #Collab365 @pgbhoyar Throttling Limits in Office 365 • In Office 365 workflow manager has strict throttling limits for SharePoint 2013 Style workflows • The instance has exceeded the outbound http request quota for a 1.00:00:00 time period. The 5000 request limit was reached in <time>.  Analogy credit score • Workflow instances can get suspended and we need to wait 24 hours to resume the suspended workflow instance by  clicking Resume for the workflow or  by using the SharePoint Workflow Client Object Model • Suspended workflow instances will be terminated after 10 days. Source : https://support.microsoft.com/en-us/kb/3076399
  • 26. #Collab365 @pgbhoyar Throttling Limits in Office 365 • The resource limitations are for per workflow in a site collection in the span of 24 hours • There is no OOTB email alert if the workflow get suspended • We can find the suspended workflows on the page /_layouts/15/WorkflowServiceHealth.aspx • If we develop workflow as an “App” these throttling limitations does not apply
  • 28. #Collab365 @pgbhoyar Throttling Limits in Office 365 – Design Consideration • Avoid infinite loops  We may use “Wait for field change in current item” • Avoid using a workflow to execute complex algorithms  Workflows are intended to manage document-driven, human processes and not to dispatch significant computational tasks. • Avoid the use of the “Wait for Event in List Item" activity Source : https://support.microsoft.com/en-us/kb/3076399
  • 30. #Collab365 @pgbhoyar 30 Limitations  We can not start workflows on delete event  50 variable limit  No source control for SPD workflows  String functions are limited  For advance implementations you will need to involve devs/architects  You can not start the workflows on Task lists whenever new tasks gets created by SP2013 style workflows  Workaround : Create SP2010 style workflow in Task List
  • 31. #Collab365 @pgbhoyar Questions? Feedback? Contact me:  Twitter: @PGBhoyar  Blog: http://pgbhoyar.com (limited contents)  Email: pgbhoyar@gmail.com  Feedback : Please provide feedback  Conference Link  Email or  Anonymous Suggestions: https://www.suggestionox.com/r/pgb Thank You Organizers, Sponsors and You for Making this Possible.