cancel
Showing results for 
Search instead for 
Did you mean: 
prasannaadavi

Create Project Status Report in Project Online automatically using Microsoft Flow – Part 2

Step 3: Build your Flow

 

  • To begin, from your App Launcher, select Flow, and select New from Blank
  • Add your 1st step as “When a Project is published” trigger, and specify the PWA URL.

As your second step, add the action Send an HTTP request to SharePoint. We will use this to read the Project Online Data using OData query. Name the action to something easy to work with like GetProjectData. This is important, as you will use this action name later in another action.

Structure your action as shown below.

 

Note the use of dynamic variable Returned Projects Project ID . This allows us to keep the flow generic.

Note: Technically, you should also be able to use the List Project action, in place of the Send HTTP request to SharePoint, but I have not been able to get it to work in a similar fashion.

The next step is to read the output of the HTTP request to SharePoint action into variables so that we can use them in next steps.

 

So, insert an action Initialize Variable. This variable would be set to the custom field we want extract out of the OData query form previous action.

 

For example, if we want to get the value of a custom field in Project Online called Location, the syntax would be

body('GetProjectData')?['d']?['Location']

So, for our example, you would extract three fields ProblemDescription,ProjectStatusUpdate,SubmitProjectStatus. These fields already exist in Project Online.

The next step is to add a condition, to see if the Submit Project Status Flag is checked or not.

If the flag is NO, then obvioulsy we are not going to do anything. If the Flag is yes, we will generate the status report.

For the first action under Yes, select Get File Content and set it up as shown.

For the second step, we create the document . Choose Create File and set it up as shown. The function UTCNOW() allows appending the date and time to the name of the document so that we do not call everything the same.

And finally, we will update the properties of the document using the information collected in previous steps.

That’s it. Save and publish your flow and we are ready to rock and roll.

 

Next time you publish your project, make sure you check the flag Submit Project Status.

 

 
This should result in a document that follows the template you set up for Project Status.
 
Comments
About the Author
  • Experienced Consultant with a demonstrated history of working in the information technology and services industry. Skilled in Office 365, Azure, SharePoint Online, PowerShell, Nintex, K2, SharePoint Designer workflow automation, PowerApps, Microsoft Flow, PowerShell, Active Directory, Operating Systems, Networking, and JavaScript. Strong consulting professional with a Bachelor of Engineering (B.E.) focused in Information Technology from Mumbai University.
  • I am a Microsoft Business Applications MVP and a Senior Manager at EY. I am a technology enthusiast and problem solver. I work/speak/blog/Vlog on Microsoft technology, including Office 365, Power Apps, Power Automate, SharePoint, and Teams Etc. I am helping global clients on Power Platform adoption and empowering them with Power Platform possibilities, capabilities, and easiness. I am a leader of the Houston Power Platform User Group and Power Automate community superuser. I love traveling , exploring new places, and meeting people from different cultures.
  • Read more about me and my achievements at: https://ganeshsanapblogs.wordpress.com/about MCT | SharePoint, Microsoft 365 and Power Platform Consultant | Contributor on SharePoint StackExchange, MSFT Techcommunity
  • Encodian Owner / Founder - Ex Microsoft Consulting Services - Architect / Developer - 20 years in SharePoint - PowerPlatform Fan
  • Founder of SKILLFUL SARDINE, a company focused on productivity and the Power Platform. You can find me on LinkedIn: https://linkedin.com/in/manueltgomes and twitter http://twitter.com/manueltgomes. I also write at https://www.manueltgomes.com, so if you want some Power Automate, SharePoint or Power Apps content I'm your guy 🙂
  • I am the Owner/Principal Architect at Don't Pa..Panic Consulting. I've been working in the information technology industry for over 30 years, and have played key roles in several enterprise SharePoint architectural design review, Intranet deployment, application development, and migration projects. I've been a Microsoft Most Valuable Professional (MVP) 15 consecutive years and am also a Microsoft Certified SharePoint Masters (MCSM) since 2013.
  • Big fan of Power Platform technologies and implemented many solutions.
  • Passionate #Programmer #SharePoint #SPFx #M365 #Power Platform| Microsoft MVP | SharePoint StackOverflow, Github, PnP contributor
  • Web site – https://kamdaryash.wordpress.com Youtube channel - https://www.youtube.com/channel/UCM149rFkLNgerSvgDVeYTZQ/