Showing results for 
Search instead for 
Did you mean: 

From Opportunity Lines to Field Service Work Order Products and Services with Flow

Tested on:
Dynamics 365 version 9.1, Field Service solution version 8.x, Unified Interface

A common customer scenario is one where a core Dynamics 365 Customer Engagement Opportunity form is in use for a sales process. “What do we do with our Opportunity form” is a question that arises in almost every Field Service and PSA implementation where D365 CE is already in use. As Field Service and PSA have their own forms due to their own logic and the “Field Service process” and “PSA process”, the Opportunity forms can be a slight headache. If you want to stick to the core CE Opportunity form and you’re sure you have no need for the app specific one, this blog post will introduce you to an idea that allows you to pull products from Opportunity Lines to your Work Order Services and Work Order Products with Flow. No code is needed to accomplish this!

The Flow fires off when an Opportunity is closed as won. Products set on Opportunity Lines will be pulled on the Work Order Product and Work Order Service entities, after a Work Order is created. As Field Service has Inventory, Non-Inventory and Service products, these different options are identified at the Switch Casesection of the Flow, before Work Order Services and Work Order Products are created. For more information about Switch Case, please see this post by Flow’s PM Stephen Siciliano.



Running the Flow

Products are added on Opportunity Lines and the Opportunity is closed as won.



The Flow executes and creates a Work Order, Work Order Services and Work Order Products.


The Work Order has all the products from the Opportunity Lines on the related WO Service and WO Product entities.






As always, this Flow can be found from the Those Dynamics Guys PowerApp Bank here. Huge thanks to both Elaiza Benitez and Kimmo Koski for their help.

This posts reflect my personal opinions and findings unless otherwise stated.


Great Article Annti!

I think you have caught the essence, although I have used a slightly different approach when solving the same issue.

One thing that I have thought about is how to create a Work Order from Flow without changing the requirement level of the Work Order Number from Mandatory to Optional. Does anyone have a sugestion on this, or have solved it in any other way.



Hi Annti,


While creating WO, i got the following error 

"status": 400,
"message": "The currency must be the same as the currency on the price list.",
"errors": [],
Meet Our Blog Authors
  • Working daily with Microsoft Cloud to deliver the needs of my company, my customers and various Microsoft communities and forums. | Office 365 | Flow | PowerShell | PowerApps | SharePoint |
  • Co-founder of, Office 365 and SharePoint expert. Passionate about design and development of easy to use, convenient and flexible products.
  • Microsoft Business Apps MVP. Owner of ThriveFast, an Office 365 consulting company.
  • 7x Microsoft Business Solutions MVP (CRM)
  • I'm keen in MS technologies, SharePoint, Office 365 and development for them
  • Daniel is a Business Productivity Consultant & Microsoft Business Solutions MVP who is very enthusiastic about all things Office 365, Microsoft Flow, PowerApps, Azure & SharePoint (Online). Since the preview, Daniel has been working with Microsoft Flow and later on with Microsoft PowerApps. That led to him being awarded an MVP Award for Business Solutions. He loves to blog, present and evangelize about improving productivity in the modern workspace with these amazing tools!
  • Michelle is an Office 365 solution architect in Twin Cities, MN. She has been delivering business collaboration solutions for years with her focus on SharePoint and Office 365. Michelle is a recent board member of the Minnesota Office 365 User Group and has been a member of the SharePoint community since 2009. She is a frequent speaker at MNSPUG and SharePoint Saturday and co-chaired the Legal SharePoint User Group for 4 years. Her most frequent projects have involved rolling out a large deployment of Office 365, SharePoint Online intranet, build of a "CHAMPS" Office 365 user adoption program and most recently, SharePoint On-Premise to Online Migration. Michelle is very excited about cloud technology as it is shifting her IT Pro focus to collaboration strategy and technical adoption.
  • I'm a Microsoft Office Servers and Services MVP with a special interest in SharePoint, Office 365, Microsoft Flow, Microsoft Teams and PowerApps. I work at Triad Group Plc (
  • Passionate #Programmer #SharePoint #SPFx #Office365 #MSFlow | C-sharpCorner MVP | SharePoint StackOverflow, Github, PnP contributor