SlideShare une entreprise Scribd logo
1  sur  59
Télécharger pour lire hors ligne
#SPFestDC @pgbhoyar
Advanced Office365-SharePoint Online
Workflows
Prashant G Bhoyar (PGB)
SharePoint Fest DC 2016
28 April 2016
#SPFestDC @pgbhoyar
2
• Senior Consultant at Portal Solutions
• 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
Who AM I ?
Prashant G Bhoyar (PGB)
#SPFestDC @pgbhoyar
Amazing Antarctica Adventure – November/December 2008
#SPFestDC @pgbhoyar
Amazing Antarctica Adventure – November/December 2008
• McMurdo Station, Antarctica (US Government Station)
• 1000-1100 people stays during Antarctic Summer (November to February)
#SPFestDC @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.
5
#SPFestDC @pgbhoyar
OneWindow Workplace
• OneWindow Is Built On 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
#SPFestDC @pgbhoyar
What Do You Get With OneWindow Workplace?
7
Amazing Experiences
• News
• Workspaces
• Knowledge Discovery
• People Directory
• Search
• Activity Feeds
• Tools and Apps
• Widgets
Platform
• Integration
• Lync/Skype
• Yammer
• OneDrive
• Office Graph
• Office Groups
• SharePoint
• Videos
• Analytics and
Personalization
Access Anywhere
• Responsive
• Native applications
(Mobile, Windows 10)
#SPFestDC @pgbhoyar
Next Steps
8
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.
#SPFestDC @pgbhoyar
Upcoming Local Speaking Engagements
• Northern Virginia (NOVA) Code Camp – 30th April 2016
 https://nvite.com/novacodecamp/adbb
• SharePoint User Group of DC (SUGDC) –12th May 2016
 http://www.meetup.com/SUG-DC/
• Capital Area .NET SharePoint Special Interest Group Meetup -
18th May 2016
 http://www.meetup.com/CapArea-NET-SPSIG/events/229709059/
• Federal SP User Group (FEDSPUG) – 19th May 2016
 http://www.meetup.com/fedspug-wspdc/
9
#SPFestDC @pgbhoyar
• Intro of Office 365 / SharePoint
Online Workflows
• Architectural changes in SP2013
workflows
• Key Differences between SharePoint
2013 and SharePoint 2010 style
workflows
• Common Business Scenarios
• Throttling Limits in Office 365
• Visual Studio Workflows
• Best Practices/ Limitations
Agenda
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
Audience Poll
• How many of you are IT pros?
• How many of you are Developers?
• How many of you are Power Users?
• How many of you are End Users?
• How many of you develop/manages/maintains the
workflows?
12
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
14
How to get Personal Office 365
Development Tenant?
 Sign up for Office 365 Developer
Program at http://dev.office.com/
 Get 1 year of Office 365 subscription
for free
 Excellent for personal development
use
 1 seat only
#SPFestDC @pgbhoyar
15
How to get Office 365 Demo Tenants
Tenant?
 Login at
https://www.microsoftofficedemos.com/Login
using your partner account
 Get 3 months of Office 365 subscription for free
 Excellent for rapid client demos
 More than 20 Seats
 Customer Immersion Experience (CIE) is also an
option 
 Formerly called as MEC
 1 Month Trial
 E3, E5
 https://products.office.com/en-
us/business/compare-office-365-for-business-plans
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
 Helps to Automate Business Processes
 Helps to meet the Industry Standards
 Helps Organizations to function Effectively
 Important for success of SharePoint/Office 365
sites Implementations
17
What are Workflows?
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
Types of Workflows
Sequential State Machine
• Activities occur in sequence
• On rejection , begin from start
• Simple Business Processes example,
Leave Request
• Activities are not sequential
• Can by pass activities based on
business logic
• Complex business processes
example, Financial Aid
#SPFestDC @pgbhoyar
Typical SharePoint Workflow Life Cycle
Initiation
• When the workflow 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
#SPFestDC @pgbhoyar
• Browser
• SharePoint 2013 Designer
• Visio 2013
• Visual Studio 2012/2013/2015
• Third Party Tools
Office 365 /SharePoint
Online Workflow Tools
#SPFestDC @pgbhoyar
22
• 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
Workflow development/maintenance
#SPFestDC @pgbhoyar
Architecture of SharePoint 2013/2016 Workflows
23
#SPFestDC @pgbhoyar
 SP2013 workflows are fully declarative
 SP2013 workflows are no longer compiled into .NET assemblies
instead XAML files defines workflow and their execution
 No more custom code
 Build WebServices for custom business logic
 SP2013 workflows are available in Office 365/ SharePoint Online
 There are no tools available to convert SP2010 Style workflows to
SP2013 style workflows
 Only option is manual….
24
New SharePoint 2013/2016 Workflows Architecture
#SPFestDC @pgbhoyar
How does the workflow run in SP2013/2016?
Workflow
Instance
Starts
SP2010
Style
Workflow?
Use SP2010
Workflow Engine
Use New
Workflow
Manager
Workflow
Instance Executes
Workflow Instance Ends
Workflow
Instance Executes
Yes
No
#SPFestDC @pgbhoyar
What will happen during migration?
Existing Workflow
in SP2010
Migration to
SP2013 On
Premise
Migration to
SP2016 on Premise
Migration to Office
365/ SharePoint
Online
SharePoint Designer
2010 Workflows
Run as SP2010 Style
Workflows
Run as SP2010 Style
Workflows
Run as SP2010 Style
Workflows
OOTB Workflows Run as SP2010 Style
Workflows
Run as SP2010 Style
Workflows
Run as SP2010 Style
Workflows
Full trust Visual
Studio Workflows
Run as SP2010 Style
Workflows
Run as SP2010 Style
Workflows
Can not migrate
Third Party SP2010
Workflows
Check with Vendor Check with Vendor Check with Vendor
#SPFestDC @pgbhoyar
What will happen during migration?
Existing Workflow in SP2013 Migration to SP2016 on
Premise
Migration to Office 365/
SharePoint Online
SharePoint 2013 Designer
Workflows created as SP2013
Style Workflows
Run as SP2013 Style Workflows
(Provided workflow manager is
installed and configured)
Run as SP2013 Style Workflows
SharePoint 2013 Designer
Workflows created as SP2010
Style Workflows
Run as SP2010 Style Workflows Run as SP2010 Style Workflows
SharePoint 2013 Workflows
created as App
Run as SP2013 Style
Workflows/Workflow as App
(Provided workflow manager is
installed and configured)
Run as SP2013 Style
Workflows/Workflow as App
Third Party Workflows Check with Vendor Check with Vendor
#SPFestDC @pgbhoyar
28
How to identify SP2010 style and SP2013
style workflows?
 List Settings -> Workflow Settings
 Site Workflows -> Site Administration
->Workflow Settings
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
Key Differences between SP2013 & SP2010 Style Workflows
SharePoint 2010 Style Workflows SharePoint 2013 Style Workflows
• Uses SharePoint 2010 Workflow Host
• Impersonation Step
• OOTB Visualization of Workflows
• No loops, stages in Designer WFs
• Custom task forms are InfoPath forms
• Can capture Approval comments
OOTB
• Uses Workflow Manager
• App Step
• Need to create custom solution
• Looping, stages are present
• Custom task forms are .aspx pages
• Need to implement custom
solution
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
How to capture approval comments?
• Not available OOTB in Task process
• High level steps
 Create a new site column of type text to capture the approval
comments
 Create a new task content type and add the newly created site
column
 In the task process, use the custom task content type
 In the task list, create a workflow either using SharePoint Designer
2013 or Visual Studio to update the approval comments in the
workflow host (list item, document or document set).
 This workflow will get the information about the workflow host from
the “Related Items” field.
#SPFestDC @pgbhoyar
33
• Information about associated Item we
select in the Task Process
• Saves in the Information in Jason Format
 [{"ItemId":5,"WebId":"3409b5b9-7fea-49b9-
a325-63c730a63a96","ListId":"9e6939fa-
bf53-4021-91bb-b73bed0efa39"}]
 ItemID
 WebId
 ListId
• We can retrieve the “ItemId” from the
related items and use it to update/email
captured comments
What are related Items?
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
User Experience
Task Process Custom SharePoint Forms
• User Interaction via Tasks
• Not a good user experience
• Provides the ability to send reminders
• Lot of OOTB webparts/options are available
to aggregate the tasks
• User Interaction via Custom Forms
• Can provide good user experience
• All the data is at same place
• Need to implement the custom logic to
send reminders
#SPFestDC @pgbhoyar
#SPFestDC @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.
#SPFestDC @pgbhoyar
Throttling Limits in Office 365
• 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
#SPFestDC @pgbhoyar
Throttling Limits in Office 365
#SPFestDC @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
#SPFestDC @pgbhoyar
What do we say when we are thinking about adding infinite
loops in the workflow in Office365?
NOT TODAY!!!!!
Image Source : http://gameofthrones.wikia.com/wiki/Syrio_Forel
#SPFestDC @pgbhoyar
#SPFestDC @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
#SPFestDC @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 
• Create custom task content types for tasks with only one
logical outcome
#SPFestDC @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?”
#SPFestDC @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
#SPFestDC @pgbhoyar
Tips for developing maintainable custom workflows
• Capture the dates of various approval steps
 Good for generating audit logs
• Save the Workflow status in a separate field
 Avoid default workflow name
 Helps if you divide workflows into multiple workflows
• Create a separate Workflow status field as text
 Gives the ability of filtering and sorting
 Approvers love this option
#SPFestDC @pgbhoyar
Tips for developing maintainable custom workflows
• Pay extra attention while modifying the Custom Task content
types
 Task outcome field must be the last field
• 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
• Restrict the access
#SPFestDC @pgbhoyar
Tips for developing maintainable custom workflows?
• 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
• For large lists, don’t remove the workflow, but set to no new
instance
 Do it in non business hours
#SPFestDC @pgbhoyar
Tips for developing maintainable custom workflows
• Implement the logic to stop/start at a particular stage
 Super helpful in case the workflow instance terminates
 Super helpful during migration (For on premise customers)
 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 
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
53
SharePoint 2013 Workflows Using Visual
Studio 2012
 Full access to the Workflow
Foundation in .NET Framework 4.5
 Supports deployment as full trust
solutions, Sandbox Solutions as well
as SP Apps
 You can use Source Control
 Create Custom Activities
 Create Custom Forms for workflows
 Set Breakpoints on Activities
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
56
Limitations
 We can not start workflows on delete
event
 50 variable limit
 No source control
 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
#SPFestDC @pgbhoyar
#SPFestDC @pgbhoyar
SharePint
Image Source :http://iscreamsundae.com/some-of-the-best-game-of-thrones-dialogues/
#SPFestDC @pgbhoyar
Questions? Feedback? Contact me:
 Twitter: @PGBhoyar
 Blog: http://pgbhoyar.com (limited contents)
 Email: pgbhoyar@gmail.com
 Feedback : Please provide feedback
 Email or
 Session Evaluations or
 Anonymous Suggestions: https://www.suggestionox.com/r/pgb
Thank You
Organizers, Sponsors and You for Making this Possible.

Contenu connexe

Tendances

What’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechCon
What’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechConWhat’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechCon
What’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechCon
SPTechCon
 
Share point 2013 features Workflow
Share point 2013 features WorkflowShare point 2013 features Workflow
Share point 2013 features Workflow
Raghu Raja
 
Share point workflow presentation
Share point workflow presentationShare point workflow presentation
Share point workflow presentation
Wyngate Solutions
 
Sharepoint developement tools(webparts+worflows) EBizSoft
Sharepoint developement tools(webparts+worflows) EBizSoftSharepoint developement tools(webparts+worflows) EBizSoft
Sharepoint developement tools(webparts+worflows) EBizSoft
Shakir Majeed Khan
 
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box TechnologyBringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
joelsef
 
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
Nik Patel
 

Tendances (20)

SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...
SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...
SharePoint Fest Seattle 2017 Getting started with office365 sharepoint online...
 
Getting started with SharePoint 2013 Workflows
Getting started with SharePoint 2013 WorkflowsGetting started with SharePoint 2013 Workflows
Getting started with SharePoint 2013 Workflows
 
Writing Futuristic Workflows in Office 365 SharePoint 2013 2016 on premise
Writing Futuristic Workflows in Office 365 SharePoint 2013 2016 on premiseWriting Futuristic Workflows in Office 365 SharePoint 2013 2016 on premise
Writing Futuristic Workflows in Office 365 SharePoint 2013 2016 on premise
 
Workflow in SharePoint 2013
Workflow in SharePoint 2013Workflow in SharePoint 2013
Workflow in SharePoint 2013
 
What’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechCon
What’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechConWhat’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechCon
What’s new with Workflow in SharePoint 2013 by Andew Connell - SPTechCon
 
Creating SharePoint 2013 Workflows
Creating SharePoint 2013 WorkflowsCreating SharePoint 2013 Workflows
Creating SharePoint 2013 Workflows
 
Share point 2013 features Workflow
Share point 2013 features WorkflowShare point 2013 features Workflow
Share point 2013 features Workflow
 
Build scalable SharePoint 2013 Staged Workflows to run locally and in the Cloud
Build scalable SharePoint 2013 Staged Workflows to run locally and in the CloudBuild scalable SharePoint 2013 Staged Workflows to run locally and in the Cloud
Build scalable SharePoint 2013 Staged Workflows to run locally and in the Cloud
 
Getting started with Office 365 SharePoint Online Workflows : SharePoint Fest...
Getting started with Office 365 SharePoint Online Workflows : SharePoint Fest...Getting started with Office 365 SharePoint Online Workflows : SharePoint Fest...
Getting started with Office 365 SharePoint Online Workflows : SharePoint Fest...
 
Building Business Applications for Office 365 SharePoint Online using Azure M...
Building Business Applications for Office 365 SharePoint Online using Azure M...Building Business Applications for Office 365 SharePoint Online using Azure M...
Building Business Applications for Office 365 SharePoint Online using Azure M...
 
SharePoint Server 2013 Workflows
SharePoint Server 2013 WorkflowsSharePoint Server 2013 Workflows
SharePoint Server 2013 Workflows
 
SharePoint 2013 Workflow from K2
SharePoint 2013 Workflow from K2SharePoint 2013 Workflow from K2
SharePoint 2013 Workflow from K2
 
Share point workflow presentation
Share point workflow presentationShare point workflow presentation
Share point workflow presentation
 
SharePoint Designer Workflows - Nuts, Bolts and Examples
SharePoint Designer Workflows - Nuts, Bolts and ExamplesSharePoint Designer Workflows - Nuts, Bolts and Examples
SharePoint Designer Workflows - Nuts, Bolts and Examples
 
Image Slider with SharePoint 2013 Search Results Web Part
Image Slider with SharePoint 2013 Search Results Web PartImage Slider with SharePoint 2013 Search Results Web Part
Image Slider with SharePoint 2013 Search Results Web Part
 
SharePoint Workflow Best Practices
SharePoint Workflow Best PracticesSharePoint Workflow Best Practices
SharePoint Workflow Best Practices
 
SharePoint 2010 Workflows
SharePoint 2010 WorkflowsSharePoint 2010 Workflows
SharePoint 2010 Workflows
 
Sharepoint developement tools(webparts+worflows) EBizSoft
Sharepoint developement tools(webparts+worflows) EBizSoftSharepoint developement tools(webparts+worflows) EBizSoft
Sharepoint developement tools(webparts+worflows) EBizSoft
 
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box TechnologyBringing Zest to SharePoint Sites Using Out-of-the-Box Technology
Bringing Zest to SharePoint Sites Using Out-of-the-Box Technology
 
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
SharePoint Saturday Chicago Suburbs 2016 - Modern Intranet Development Best P...
 

Similaire à SharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows

Mct Summit 2013 Why SharePoint 2013
Mct Summit 2013   Why SharePoint 2013Mct Summit 2013   Why SharePoint 2013
Mct Summit 2013 Why SharePoint 2013
Chris Givens
 
April 2010 MNSPUG.pptx - Business Processes with Digital Forms and ...
April 2010 MNSPUG.pptx - Business Processes with Digital Forms and ...April 2010 MNSPUG.pptx - Business Processes with Digital Forms and ...
April 2010 MNSPUG.pptx - Business Processes with Digital Forms and ...
butest
 

Similaire à SharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows (20)

Introduction to SharePoint 2013 Out of the box Webparts
Introduction to SharePoint 2013 Out of the box WebpartsIntroduction to SharePoint 2013 Out of the box Webparts
Introduction to SharePoint 2013 Out of the box Webparts
 
Writing Futuristic Workflows in Office 365 SharePoint On Prem 2013 2016 - SPT...
Writing Futuristic Workflows in Office 365 SharePoint On Prem 2013 2016 - SPT...Writing Futuristic Workflows in Office 365 SharePoint On Prem 2013 2016 - SPT...
Writing Futuristic Workflows in Office 365 SharePoint On Prem 2013 2016 - SPT...
 
Knut wf 203 get started with designer workflows
Knut wf 203   get started with designer workflowsKnut wf 203   get started with designer workflows
Knut wf 203 get started with designer workflows
 
Non-Developer Options in SharePoint 2013 - Fest Chicago 2014
Non-Developer Options in SharePoint 2013 - Fest Chicago 2014Non-Developer Options in SharePoint 2013 - Fest Chicago 2014
Non-Developer Options in SharePoint 2013 - Fest Chicago 2014
 
WF 101 - SharePoint Designer 2013 Workflows: An Introduction
WF 101 - SharePoint Designer 2013 Workflows: An IntroductionWF 101 - SharePoint Designer 2013 Workflows: An Introduction
WF 101 - SharePoint Designer 2013 Workflows: An Introduction
 
2012 MindSurf - Augmenting Business Process with SharePoint
2012 MindSurf - Augmenting Business Process with SharePoint2012 MindSurf - Augmenting Business Process with SharePoint
2012 MindSurf - Augmenting Business Process with SharePoint
 
Microsoft Flow For Developers
Microsoft Flow For DevelopersMicrosoft Flow For Developers
Microsoft Flow For Developers
 
SPS Ottawa 2019: From the field: Modernize your SharePoint Intranet with Shar...
SPS Ottawa 2019: From the field: Modernize your SharePoint Intranet with Shar...SPS Ottawa 2019: From the field: Modernize your SharePoint Intranet with Shar...
SPS Ottawa 2019: From the field: Modernize your SharePoint Intranet with Shar...
 
PWR 106 Business Process Automation for SharePoint
PWR 106 Business Process Automation for SharePointPWR 106 Business Process Automation for SharePoint
PWR 106 Business Process Automation for SharePoint
 
WF 105 Business Process Automation SharePoint Fest DC 2018
WF 105 Business Process Automation SharePoint Fest DC 2018WF 105 Business Process Automation SharePoint Fest DC 2018
WF 105 Business Process Automation SharePoint Fest DC 2018
 
SPSNJ 2013 Building Business Solutions using InfoPath
SPSNJ 2013 Building Business Solutions using InfoPathSPSNJ 2013 Building Business Solutions using InfoPath
SPSNJ 2013 Building Business Solutions using InfoPath
 
Himmelstein SP Connections HAD207 SharePoint Logging & Debugging
Himmelstein SP Connections HAD207 SharePoint Logging & DebuggingHimmelstein SP Connections HAD207 SharePoint Logging & Debugging
Himmelstein SP Connections HAD207 SharePoint Logging & Debugging
 
Mct Summit 2013 Why SharePoint 2013
Mct Summit 2013   Why SharePoint 2013Mct Summit 2013   Why SharePoint 2013
Mct Summit 2013 Why SharePoint 2013
 
WF 202 Advanced Workflow Solutions
WF 202 Advanced Workflow Solutions WF 202 Advanced Workflow Solutions
WF 202 Advanced Workflow Solutions
 
SPSNH - Who Moved My SharePoint (to 2013)
SPSNH - Who Moved My SharePoint (to 2013)SPSNH - Who Moved My SharePoint (to 2013)
SPSNH - Who Moved My SharePoint (to 2013)
 
April 2010 MNSPUG.pptx - Business Processes with Digital Forms and ...
April 2010 MNSPUG.pptx - Business Processes with Digital Forms and ...April 2010 MNSPUG.pptx - Business Processes with Digital Forms and ...
April 2010 MNSPUG.pptx - Business Processes with Digital Forms and ...
 
Building a Microsoft Teams Provisioning Process using Power Apps & Power Auto...
Building a Microsoft Teams Provisioning Process using Power Apps & Power Auto...Building a Microsoft Teams Provisioning Process using Power Apps & Power Auto...
Building a Microsoft Teams Provisioning Process using Power Apps & Power Auto...
 
Assessing the Health of Your SharePoint Farm with SPDocKit
Assessing the Health of Your SharePoint Farm with SPDocKitAssessing the Health of Your SharePoint Farm with SPDocKit
Assessing the Health of Your SharePoint Farm with SPDocKit
 
Power Users Guide to Office 365 - Collab365 Summit 2016
Power Users Guide to Office 365 - Collab365 Summit 2016Power Users Guide to Office 365 - Collab365 Summit 2016
Power Users Guide to Office 365 - Collab365 Summit 2016
 
Getting Started with SharePoint Patterns and Practices Provisioning Engine-SP...
Getting Started with SharePoint Patterns and Practices Provisioning Engine-SP...Getting Started with SharePoint Patterns and Practices Provisioning Engine-SP...
Getting Started with SharePoint Patterns and Practices Provisioning Engine-SP...
 

Plus de Prashant G Bhoyar (Microsoft MVP)

Plus de Prashant G Bhoyar (Microsoft MVP) (16)

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

Dernier

Dernier (20)

Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 

SharePoint Fest DC 2016_Advanced Office365 SharePoint Online Workflows

  • 1. #SPFestDC @pgbhoyar Advanced Office365-SharePoint Online Workflows Prashant G Bhoyar (PGB) SharePoint Fest DC 2016 28 April 2016
  • 2. #SPFestDC @pgbhoyar 2 • Senior Consultant at Portal Solutions • 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 Who AM I ? Prashant G Bhoyar (PGB)
  • 3. #SPFestDC @pgbhoyar Amazing Antarctica Adventure – November/December 2008
  • 4. #SPFestDC @pgbhoyar Amazing Antarctica Adventure – November/December 2008 • McMurdo Station, Antarctica (US Government Station) • 1000-1100 people stays during Antarctic Summer (November to February)
  • 5. #SPFestDC @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. 5
  • 6. #SPFestDC @pgbhoyar OneWindow Workplace • OneWindow Is Built On 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
  • 7. #SPFestDC @pgbhoyar What Do You Get With OneWindow Workplace? 7 Amazing Experiences • News • Workspaces • Knowledge Discovery • People Directory • Search • Activity Feeds • Tools and Apps • Widgets Platform • Integration • Lync/Skype • Yammer • OneDrive • Office Graph • Office Groups • SharePoint • Videos • Analytics and Personalization Access Anywhere • Responsive • Native applications (Mobile, Windows 10)
  • 8. #SPFestDC @pgbhoyar Next Steps 8 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.
  • 9. #SPFestDC @pgbhoyar Upcoming Local Speaking Engagements • Northern Virginia (NOVA) Code Camp – 30th April 2016  https://nvite.com/novacodecamp/adbb • SharePoint User Group of DC (SUGDC) –12th May 2016  http://www.meetup.com/SUG-DC/ • Capital Area .NET SharePoint Special Interest Group Meetup - 18th May 2016  http://www.meetup.com/CapArea-NET-SPSIG/events/229709059/ • Federal SP User Group (FEDSPUG) – 19th May 2016  http://www.meetup.com/fedspug-wspdc/ 9
  • 10. #SPFestDC @pgbhoyar • Intro of Office 365 / SharePoint Online Workflows • Architectural changes in SP2013 workflows • Key Differences between SharePoint 2013 and SharePoint 2010 style workflows • Common Business Scenarios • Throttling Limits in Office 365 • Visual Studio Workflows • Best Practices/ Limitations Agenda
  • 12. #SPFestDC @pgbhoyar Audience Poll • How many of you are IT pros? • How many of you are Developers? • How many of you are Power Users? • How many of you are End Users? • How many of you develop/manages/maintains the workflows? 12
  • 14. #SPFestDC @pgbhoyar 14 How to get Personal Office 365 Development Tenant?  Sign up for Office 365 Developer Program at http://dev.office.com/  Get 1 year of Office 365 subscription for free  Excellent for personal development use  1 seat only
  • 15. #SPFestDC @pgbhoyar 15 How to get Office 365 Demo Tenants Tenant?  Login at https://www.microsoftofficedemos.com/Login using your partner account  Get 3 months of Office 365 subscription for free  Excellent for rapid client demos  More than 20 Seats  Customer Immersion Experience (CIE) is also an option   Formerly called as MEC  1 Month Trial  E3, E5  https://products.office.com/en- us/business/compare-office-365-for-business-plans
  • 17. #SPFestDC @pgbhoyar  Helps to Automate Business Processes  Helps to meet the Industry Standards  Helps Organizations to function Effectively  Important for success of SharePoint/Office 365 sites Implementations 17 What are Workflows?
  • 19. #SPFestDC @pgbhoyar Types of Workflows Sequential State Machine • Activities occur in sequence • On rejection , begin from start • Simple Business Processes example, Leave Request • Activities are not sequential • Can by pass activities based on business logic • Complex business processes example, Financial Aid
  • 20. #SPFestDC @pgbhoyar Typical SharePoint Workflow Life Cycle Initiation • When the workflow 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
  • 21. #SPFestDC @pgbhoyar • Browser • SharePoint 2013 Designer • Visio 2013 • Visual Studio 2012/2013/2015 • Third Party Tools Office 365 /SharePoint Online Workflow Tools
  • 22. #SPFestDC @pgbhoyar 22 • 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 Workflow development/maintenance
  • 23. #SPFestDC @pgbhoyar Architecture of SharePoint 2013/2016 Workflows 23
  • 24. #SPFestDC @pgbhoyar  SP2013 workflows are fully declarative  SP2013 workflows are no longer compiled into .NET assemblies instead XAML files defines workflow and their execution  No more custom code  Build WebServices for custom business logic  SP2013 workflows are available in Office 365/ SharePoint Online  There are no tools available to convert SP2010 Style workflows to SP2013 style workflows  Only option is manual…. 24 New SharePoint 2013/2016 Workflows Architecture
  • 25. #SPFestDC @pgbhoyar How does the workflow run in SP2013/2016? Workflow Instance Starts SP2010 Style Workflow? Use SP2010 Workflow Engine Use New Workflow Manager Workflow Instance Executes Workflow Instance Ends Workflow Instance Executes Yes No
  • 26. #SPFestDC @pgbhoyar What will happen during migration? Existing Workflow in SP2010 Migration to SP2013 On Premise Migration to SP2016 on Premise Migration to Office 365/ SharePoint Online SharePoint Designer 2010 Workflows Run as SP2010 Style Workflows Run as SP2010 Style Workflows Run as SP2010 Style Workflows OOTB Workflows Run as SP2010 Style Workflows Run as SP2010 Style Workflows Run as SP2010 Style Workflows Full trust Visual Studio Workflows Run as SP2010 Style Workflows Run as SP2010 Style Workflows Can not migrate Third Party SP2010 Workflows Check with Vendor Check with Vendor Check with Vendor
  • 27. #SPFestDC @pgbhoyar What will happen during migration? Existing Workflow in SP2013 Migration to SP2016 on Premise Migration to Office 365/ SharePoint Online SharePoint 2013 Designer Workflows created as SP2013 Style Workflows Run as SP2013 Style Workflows (Provided workflow manager is installed and configured) Run as SP2013 Style Workflows SharePoint 2013 Designer Workflows created as SP2010 Style Workflows Run as SP2010 Style Workflows Run as SP2010 Style Workflows SharePoint 2013 Workflows created as App Run as SP2013 Style Workflows/Workflow as App (Provided workflow manager is installed and configured) Run as SP2013 Style Workflows/Workflow as App Third Party Workflows Check with Vendor Check with Vendor
  • 28. #SPFestDC @pgbhoyar 28 How to identify SP2010 style and SP2013 style workflows?  List Settings -> Workflow Settings  Site Workflows -> Site Administration ->Workflow Settings
  • 30. #SPFestDC @pgbhoyar Key Differences between SP2013 & SP2010 Style Workflows SharePoint 2010 Style Workflows SharePoint 2013 Style Workflows • Uses SharePoint 2010 Workflow Host • Impersonation Step • OOTB Visualization of Workflows • No loops, stages in Designer WFs • Custom task forms are InfoPath forms • Can capture Approval comments OOTB • Uses Workflow Manager • App Step • Need to create custom solution • Looping, stages are present • Custom task forms are .aspx pages • Need to implement custom solution
  • 32. #SPFestDC @pgbhoyar How to capture approval comments? • Not available OOTB in Task process • High level steps  Create a new site column of type text to capture the approval comments  Create a new task content type and add the newly created site column  In the task process, use the custom task content type  In the task list, create a workflow either using SharePoint Designer 2013 or Visual Studio to update the approval comments in the workflow host (list item, document or document set).  This workflow will get the information about the workflow host from the “Related Items” field.
  • 33. #SPFestDC @pgbhoyar 33 • Information about associated Item we select in the Task Process • Saves in the Information in Jason Format  [{"ItemId":5,"WebId":"3409b5b9-7fea-49b9- a325-63c730a63a96","ListId":"9e6939fa- bf53-4021-91bb-b73bed0efa39"}]  ItemID  WebId  ListId • We can retrieve the “ItemId” from the related items and use it to update/email captured comments What are related Items?
  • 36. #SPFestDC @pgbhoyar User Experience Task Process Custom SharePoint Forms • User Interaction via Tasks • Not a good user experience • Provides the ability to send reminders • Lot of OOTB webparts/options are available to aggregate the tasks • User Interaction via Custom Forms • Can provide good user experience • All the data is at same place • Need to implement the custom logic to send reminders
  • 38. #SPFestDC @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.
  • 39. #SPFestDC @pgbhoyar Throttling Limits in Office 365 • 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
  • 41. #SPFestDC @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
  • 42. #SPFestDC @pgbhoyar What do we say when we are thinking about adding infinite loops in the workflow in Office365? NOT TODAY!!!!! Image Source : http://gameofthrones.wikia.com/wiki/Syrio_Forel
  • 44. #SPFestDC @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
  • 45. #SPFestDC @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  • Create custom task content types for tasks with only one logical outcome
  • 46. #SPFestDC @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?”
  • 47. #SPFestDC @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
  • 48. #SPFestDC @pgbhoyar Tips for developing maintainable custom workflows • Capture the dates of various approval steps  Good for generating audit logs • Save the Workflow status in a separate field  Avoid default workflow name  Helps if you divide workflows into multiple workflows • Create a separate Workflow status field as text  Gives the ability of filtering and sorting  Approvers love this option
  • 49. #SPFestDC @pgbhoyar Tips for developing maintainable custom workflows • Pay extra attention while modifying the Custom Task content types  Task outcome field must be the last field • 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 • Restrict the access
  • 50. #SPFestDC @pgbhoyar Tips for developing maintainable custom workflows? • 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 • For large lists, don’t remove the workflow, but set to no new instance  Do it in non business hours
  • 51. #SPFestDC @pgbhoyar Tips for developing maintainable custom workflows • Implement the logic to stop/start at a particular stage  Super helpful in case the workflow instance terminates  Super helpful during migration (For on premise customers)  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 
  • 53. #SPFestDC @pgbhoyar 53 SharePoint 2013 Workflows Using Visual Studio 2012  Full access to the Workflow Foundation in .NET Framework 4.5  Supports deployment as full trust solutions, Sandbox Solutions as well as SP Apps  You can use Source Control  Create Custom Activities  Create Custom Forms for workflows  Set Breakpoints on Activities
  • 56. #SPFestDC @pgbhoyar 56 Limitations  We can not start workflows on delete event  50 variable limit  No source control  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
  • 58. #SPFestDC @pgbhoyar SharePint Image Source :http://iscreamsundae.com/some-of-the-best-game-of-thrones-dialogues/
  • 59. #SPFestDC @pgbhoyar Questions? Feedback? Contact me:  Twitter: @PGBhoyar  Blog: http://pgbhoyar.com (limited contents)  Email: pgbhoyar@gmail.com  Feedback : Please provide feedback  Email or  Session Evaluations or  Anonymous Suggestions: https://www.suggestionox.com/r/pgb Thank You Organizers, Sponsors and You for Making this Possible.