cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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

Highlighted
Regular Visitor

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,647)