Showing results for 
Search instead for 
Did you mean: 

Create Folder in NetDocuments when Document is Uploaded to SharePoint Library

My Flow takes into consideration that you have installed on-premises data gateways for Microsoft Flow.

Follow for more details.

Microsoft flow 

Step 1: Trigger : When a file is created in a folder. Where /FinalDocuments is the name of the SharePoint Document Library.


Step 2: Delay ( Just in case )2.PNG

Step 3:  Get file metadata                                             4.PNG

Step 4 : Get item ( where ItemId is from previous step)5.PNGRequirement was to create Folder name in netdocuments with ClientName-CurrentYear. Where ClientName is the Column in SharePoint.

Step 5: Compose Action 

FormatDateTime Formula - formatDateTime(utcNow(),'yyyy')


Create Folder in netdocuments is a premium connector available. Please check your licensing before utilizing this Connector.

 Step 6 : Create folder 

Every workspace under netdocuments have a Parent ID associated.7.PNG

In order to perform query without caring about the namespace, you can use local-name().

Following article helped me with this

Step 7 : Compose Action8.PNG

Step 8 : We need to get ID from the XML. 

Formula Used: 



Step 9 : Create document in Netdocuments where Destination is the output of Compose 2 Action which would give us the Destination ID.


Save the Flow and run. If it is a success it should create a folder in Netdocuments and move document uploaded in SharePoint document library to that folder. 

Thanks for reading!

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