Events
Power BI DataViz World Championships
14 Feb, 4 pm - 31 Mar, 4 pm
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies To: Project Operations for resource/non-stocked based scenarios, Lite deployment - deal to proforma invoicing
This article describes a sample flow that shows how to create a complete project plan by using Microsoft Power Automate, how to create an Operation Set, and how to update an entity. The example demonstrates how to create a project, project team member, Operation Sets, project tasks, and resource assignments. This article also explains how to update an entity and run an Operation Set.
The example in this article uses the PssCreateV1 API. For an example that uses the PssCreateV2 API, see V2 Project schedule APIs with Power Automate.
Here's a complete list of the steps that are documented in the sample flow in this article:
This article assumes that you have a basic knowledge of the Dataverse platform, cloud flows, and the Project Schedule API. For more information, see the References section later in this article.
You can create the Power Automate flow in your environment.
Follow these steps to create a solution-aware flow. By creating a solution-aware flow, you can more easily export the flow to use it later.
Follow these steps to create a sample project.
In the flow that you created, select New step.
In the Choose an operation dialog box, in the search field, enter perform unbound action. Then, on the Actions tab, select the operation in the list of results.
In the new step, select the ellipsis (…), and then select Rename.
Rename the step Create Project.
In the Action Name field, select msdyn_CreateProjectV1.
Under the msdyn_subject field, select Add dynamic content.
On the Expression tab, in the function field, enter concat('Project name - ',utcNow()).
Select OK.
In the flow, select New step.
In the Choose an operation dialog box, in the search field, enter perform unbound action. Then, on the Actions tab, select the operation in the list of results.
In the new step, select the ellipsis (…), and then select Rename.
Rename the step Create Team Member.
For the Action Name field, select TeamMemberAction in the Dynamic content dialog box.
In the Action Parameters field, enter the following parameter information.
{
"TeamMember": {
"@@odata.type": "Microsoft.Dynamics.CRM.msdyn_projectteam",
"msdyn_projectteamid": "@{guid()}",
"msdyn_project@odata.bind": "/msdyn_projects(@{outputs('Create_Project')?['body/ProjectId']})",
"msdyn_name": "ScheduleAPIDemoTM1"
}
}
Here's an explanation of the parameters:
In the flow, select Add an action.
In the Choose an operation dialog box, in the search field, enter perform unbound action. Then, on the Actions tab, select the operation in the list of results.
In the step, select the ellipsis (…), and then select Rename.
Rename the step Create Bucket.
In the Entity field, enter the following parameter information.
{
"@@odata.type": "Microsoft.Dynamics.CRM.msdyn_projectbucket",
"msdyn_projectbucketid": "@{variables('project bucket id')}",
"msdyn_name": "ScheduleAPIDemoBucket1",
"msdyn_project@odata.bind": "/msdyn_projects(@{outputs('Create_Project')?['body/ProjectId']})"
}
Here's an explanation of the parameters:
For the OperationSetId field, select msdyn_CreateOperationSetV1Response OperationSetId in the Dynamic content dialog box.
Follow these steps to create a project task that has a unique ID that belongs to the current project and the project bucket that you created.
In the flow, select New step.
In the Choose an operation dialog box, in the search field, enter perform unbound action. Then, on the Actions tab, select the operation in the list of results.
In the step, select the ellipsis (…), and then select Rename.
Rename the step Create Project Task.
In the Action Name field, select msdyn_PssCreateV1.
In the Entity field, enter the following parameter information.
{
"@@odata.type": "Microsoft.Dynamics.CRM.msdyn_projecttask",
"msdyn_projecttaskid": "@{variables('msdyn_projecttaskid')}",
"msdyn_project@odata.bind": "/msdyn_projects(@{outputs('Create_Project')?['body/ProjectId']})",
"msdyn_subject": "ScheduleAPIDemoTask1",
"msdyn_projectbucket@odata.bind": "/msdyn_projectbuckets(@{variables('project bucket id')})",
"msdyn_start": "@{addDays(utcNow(), 1)}",
"msdyn_scheduledstart": "@{utcNow()}",
"msdyn_scheduledend": "@{addDays(utcNow(), 5)}"
}
Here's an explanation of the parameters:
For the OperationSetId field, select msdyn_CreateOperationSetV1Response OperationSetId in the Dynamic content dialog box.
In the flow, select Add an action.
In the Choose an operation dialog box, in the search field, enter perform unbound action. Then, on the Actions tab, select the operation in the list of results.
In the step, select the ellipsis (…), and then select Rename.
Rename the step Create Assignment.
In the Action Name field, select msdyn_PssCreateV1.
In the Entity field, enter the following parameter information.
{
"@@odata.type": "Microsoft.Dynamics.CRM.msdyn_resourceassignment",
"msdyn_resourceassignmentid": "@{guid()}",
"msdyn_name": "ScheduleAPIDemoAssign1",
"msdyn_taskid@odata.bind": "/msdyn_projecttasks(@{variables('msdyn_projecttaskid')})",
"msdyn_projectteamid@odata.bind": "/msdyn_projectteams(@{outputs('Create_Team_Member')?['body/TeamMemberId']})",
"msdyn_projectid@odata.bind": "/msdyn_projects(@{outputs('Create_Project')?['body/ProjectId']})"
}
For the OperationSetId field, select msdyn_CreateOperationSetV1Response OperationSetId in the Dynamic content dialog box.
In the flow, select New step.
In the Choose an operation dialog box, in the search field, enter perform unbound action. Then, on the Actions tab, select the operation in the list of results.
In the step, select the ellipsis (…), and then select Rename.
Rename the step Rename Project Task.
In the Action Name field, select msdyn_PssUpdateV1.
In the Entity field, enter the following parameter information.
{
"@@odata.type": "Microsoft.Dynamics.CRM.msdyn_projecttask",
"msdyn_projecttaskid": "@{variables('msdyn_projecttaskid')}",
"msdyn_subject": "ScheduleDemoTask1-UpdatedName"
}
For the OperationSetId field, select msdyn_CreateOperationSetV1Response OperationSetId in the Dynamic content dialog box.
Events
Power BI DataViz World Championships
14 Feb, 4 pm - 31 Mar, 4 pm
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreTraining
Module
Guided Project - Create and manage automated processes with Power Automate - Training
Create your own data model and flow to support a scenario for a fictional company. You'll be provided with high-level specifications on the custom tables, columns, and flow needed to complete this project.
Certification
Microsoft Certified: Power Automate RPA Developer Associate - Certifications
Demonstrate how to improve and automate workflows with Microsoft Power Automate RPA developer.
Documentation
Use V2 Project schedule APIs with Power Automate
This article provides a sample flow that uses the V2 Project schedule APIs.
Use Project schedule APIs to perform operations with Scheduling entities
This article provides information and samples for using Project schedule APIs.
Project schedule API performance
This article provides information about the performance benchmarks of the Project schedule APIs and identifies best practices for optimum use.