Tags: Flow, Office365, Project Online, Yammer
At the end of April Microsoft’s Flow was made available as preview. Microsoft Flow is an If This Then That (IFTTT) service with many built in web hooks or connections to different services. You can connect to services like SharePoint Online, CRM or Twitter to name a few. A blog post from Microsoft can be found here.
In this post we will see an example of using Microsoft’s Flow service with Project Online – Microsoft’s Office 365 PPM application. When a project is created we will post a message in Yammer. Once signed in, click on My Flows from the top navigation bar:
From here you can view preconfigured templates or create from blank. Currently there aren’t any templates for Project Online so click create from blank. On this page you will see all of the services you can work with currently in the preview version:
Either start typing Project or scroll down the list to Project:
For this example I will choose “Project Online – When a new project is created”. You then need to sign into the Project Online PWA site:
Enter your credentials for the target Office 365 tenant when requested. Then enter the URL of the PWA site:
Now click the + button to either add an action or add a condition:
For this example we will just add an action without any conditions. You can add conditions in if needed though like below, if the project name contains “delivery” do something:
Also notice the advance mode where you can type the query condition:
For this demo we don’t need any conditions so I will remove that and just add an action and search Yammer:
Then select “Yammer – Post message” and click the sign in link then follow the steps to allow the access:
It’s your call to allow the access or not for services for this demo I have but only do this if you accept the terms of service. Then you can complete the details for the Yammer post:
This is what I have done:
Then give the Flow a name:
Click Create Flow and after a few seconds you will see the message stating this was created:
Click Done and the wizard is complete:
You can edit / delete the Flow from the My Flows page:
Now if I create a Project in that Project Online instance a new post will be created in the Yammer group. There maybe a minute or so delay before you see the post in the Yammer group once you create the project but here it is:
The project – “Paul Mathers test project”:
In Yammer, the post including the project name:
Notice the post if from Microsoft PowerApps.
You can check the Flow runs from the My Flow pages, click the i button at the end:
You will then see the following:
This is just a simple example – there is so much you can do even in the preview version of Flow – I’m sure more and more web hooks and functionality will be added before this is GA. Take a look today, it is very easy to use as you can see.
Tags: Office365, Project 2013, Project Online, Project Server 2013, PS2013
Following on from a very popular series of posts on getting started with Project Online, Microsoft’s Office 365 PPM cloud offering, round up found here. I started a mini series towards the end of last year where I covered getting started with the Portfolio Analysis functionality, part 1 here and part 2 here. I mentioned here that I would also do the same for workflow. I have finally got around to creating the workflow version – sorry for the delay, it has been a busy few months.
In this series of posts I will touch on some of the workflow capabilities that are available for Project Online and show you how to getting started.
For the purpose of this post I have already configured a project ideas type list in my PWA site collection, the portfolio strategy / analysis piece, some enterprise project types and have some custom fields.
The first post in this series will look at creating a project from the project ideas list. The workflow will assign a task to a SharePoint group for the approval, once approved a project will be created in Project Online using the correct Enterprise Project Type.
The project ideas list on my test environment looks like this:
Very simple, with a couple of SharePoint fields. I have mapped these fields to Project Online custom fields:
This is so that the metadata captured from the idea is copied over to custom field when the project is created.
I have also created some new Enterprise Project Types in this test environment:
Some of these will be used in later posts for this getting started series.
We will now look at creating an approval workflow for this ProjectIdeas list. Launch SharePoint Designer 2013 and open the target PWA site.
Click Workflow from Navigation pane:
Click List Workflow then choose the list:
Complete the details as required:
Now you can start creating the workflow in the designer. For this example I will firstly insert two more stages using the Stage button:
Then rename the stages:
Starting with the Initiated stage, click where is states “Start typing…” and more options will be enabled in the ribbon:
Click the Action button and scroll down to the “Assign a task” action and click:
Now click this user:
In the dialog box that appears complete the details, for the Participant I selected the Administrators group:
For the task title I used the string builder and added the following with a lookup to the item:
For the description I used the string builder to create the following:
Once the details are completed:
Now click in the transition to stage section:
Using the condition ribbon menu button, select if any value equals value:
Now click the first value:
Then click the fx button:
In the box that appears set the following:
Click the second value and choose Approved:
Now select the Insert go-to under the If and select Go to a stage on the Action menu:
Click a stage and select Approved:
Do the same for Else but select the Rejected stage:
In the Approved stage I will insert a parallel block:
In this parallel block I will insert four If conditions:
The If conditions are then configured like below:
The action for each If will be “Create Project from Current Item”:
Then you can choose the Enterprise Project Type:
Set this up to match to correct EPTs:
I then added two further actions:
To send ad email and to set a field on the list.
The email was configured as below:
The workflow then set the Approval Date field to Today:
The transition to stage was then update to end the workflow:
The final stage to configure is the Reject stage, in this stage we just send and email to the user that created the item then end the workflow:
Once completed, save the workflow and check for any errors.
Using the navigation bar, click the workflow name:
Then set the start options for the workflow:
Once you are happy with it publish the workflow to the list.
Back in SharePoint, if we look at the Workflow settings for the list we should see the workflow name:
Now if I create a new item on the list the workflow will fire and create a task for one of the administrators to approve, the item shows as in the initiated stage:
As a PWA administrator I would receive a email notifying me that I had a task assigned, I could then approve that item or reject it. In this example I will approve it:
When the workflow fires the item will update to Approved, a project will get created in Project Online, an email will be sent to the user who created the idea and the Approval Date will be set on the list item.
The updated project idea item can be seen below:
The project can be seen below in the project center with the correct Enterprise Project Type:
The data from the Project Ideas list has been copied to the correct Project Custom fields:
That’s it for the simple project ideas list workflow – there is lots more that can be done but hopefully that gives you a good idea on how to get started. Next up we will take a look at getting started with the project life cycle workflow and progress a project through various stages and phases.