cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
NGT1
Level: Powered On

MS Project Online create Project and Add Task in same flow

Hi all,

 

I'm trying to build a flow which creates a new Project in MS Project Online (Creates new Project), then creates a task in the Project (Creates new Task). This shoud happen in the same flow. The trigger is adding a new item to a Sharepoint List, which contains all necessary info. 

 

Flow working fine up until the task has to be created in the newly created Project. My issue is deriving the site URL of the Project (which is required to check-out the Project, then create the task, as part of 'Creates new Task') when it's only been created in the same flow.

 

Is there a way to obtain this URL using an expression, or perhaps have a set between creating the project and trying to create the task which extracts it?

 

Thanks in advance for your help.

Nick

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: MS Project Online create Project and Add Task in same flow

Hi @NGT1 ,

 

Do you want to create tasks under the newly created Project?

 

We are not allowed to create tasks under a Project when it is not checked out.

 

Please try adding action Checkout project before the action Creates new task, then it will work successfully.

 

I have created a flow likes below for your reference:

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: MS Project Online create Project and Add Task in same flow

Hi @NGT1 ,

 

Do you want to create tasks under the newly created Project?

 

We are not allowed to create tasks under a Project when it is not checked out.

 

Please try adding action Checkout project before the action Creates new task, then it will work successfully.

 

I have created a flow likes below for your reference:

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

NGT1
Level: Powered On

Re: MS Project Online create Project and Add Task in same flow

Hi Mabel,

Thanks for getting back to me. This solution worked, although I had to put an arbitrary 10 second delay in between Create new Project and Checkout Project.

 

Good to know that the Root Site URL refers to the PWA Homepage, as opposed to the URL of the newly created project. 

 

Many thanks

Nick

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,133)