cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SamPo
Impactful Individual
Impactful Individual

Update Project Online Task

Hi,

 

Posting again about this to hopefully get some new responses.

 

I'm trying to update Project Online tasks via API. 

The Project Online Connecter does not include an option to update values for a project or project tasks so is not relevant here.

 

The flow I've built for now looks like this:

 

2019-05-05_1004.png

 

The first checks out the project, then updates the task and finally checks the project back in

The issue is that the 'update task' does not actually update the task, all the previous values remain the same.

 

This is the response I get from the 'Update Task'
2019-05-05_1023.png

Any advise would be greatly appreciated!

Thanks,

Sam

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @SamPo,

 

I just managed to create a Flow that is able to update a task name. I am using the following actions.

 

1. CheckOut project

checkoutproject.png

 

2. Update single task

updateprojecttask.png

3. Publish project

publishproject.png

 

Hope this helps?

View solution in original post

14 REPLIES 14
v-yamao-msft
Community Support
Community Support

Hi @SamPo ,

 

I have seen a blog on how to update a SharePoint list item using Send an HTTP request to SharePoint:

https://veenstra.me.uk/2018/07/02/microsoft-flow-update-a-list-item-with-a-people-field-using-rest-a...

 

Further, please vote the similar request at here:

https://powerusers.microsoft.com/t5/Flow-Ideas/Update-Resource-Project-onlline/idi-p/194089?advanced...

 

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.
SamPo
Impactful Individual
Impactful Individual

@v-yamao-msft I don't think this is relevant for Project online data.

When I tried using the 'update item' activity this list I got the response of "This list is currently being managed by Project Web App, and cannot be edited directly". See my other post here for more details: https://powerusers.microsoft.com/t5/Connecting-To-Data/Update-Project-Online-Tasks/m-p/276032#M5222

 

In the meantime when trying the option in that blog post I get a response of "resource not found"

https://www.screencast.com/t/ChTayIGR

 

I also found this example list on Github https://github.com/OfficeDev/Project-Samples which is where I copied the details in the screenshot of my original post.

It seems this is the most promising option but assuming either the structure of the body or headers of my request are incorrect.

 

Sam

 

Hi @SamPo,

 

I just managed to create a Flow that is able to update a task name. I am using the following actions.

 

1. CheckOut project

checkoutproject.png

 

2. Update single task

updateprojecttask.png

3. Publish project

publishproject.png

 

Hope this helps?

View solution in original post

I've been working with this thread all day to try to update a task date.  I can do the Name, but not StartDate.  (I tried FinishDate too.)  Here's my condensed screen shot:

 

Capture 2.PNG

 

Is there something special about updating dates?

Hi @DougMyers ,

 

In order to update the Start date field, you may use this syntax:

 

image.png

 

Perfect!  Many thanks.

Hi,

 

I'm trying to update custom field of Project Online tasks via API. 

 

I created new custom field in Project Online task and I tried to update value for a Project task column with flow,

 

Can you please help me out.

 

Thanks,

Hello @Expiscornovus  I tried following same steps, but I am always getting no update in the task.

 

The Output is positive, but no sucess on the update, below is the whole update process that I am following for reference:

Test.png

 

And this is the output of the test:

Output.png

 

Regards.

Hello @elizi I created an flow to update the same field, the output is positive but nothing happens with the task.

 

This is the input I am following:

In.png

This is the output flow is giving me:

Ou.png

Hi @Lucas, I'm facing the same challenge here. Can anyone help us?

Hey @LucasSousa286 ,

 

try the below:

 

1. make a get call to get your task details - if the task exists try the next:

2. add a "compose" connector and insert the task ID there , than insert the compose dynamic value instead the task ID directly into the URL.

Anonymous
Not applicable

@Neha40 ,

 

Are you using metadata in the body ? 

 

Anonymous
Not applicable

@LucasSousa286 

I was also facing the same issue, please use 

 

{

"start": "yourdata"

}

 

Do not use metadata in the body, I hope it will work.

jainnishant
Frequent Visitor

Need to update task duration. How can i do that using automate??

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (62,430)