Hello,
We have an integration though Power Automate to create pojects and tasks inside Project Online. We've managed to create the tasks with parents and correctly ordered, but we can't find out how to define the predecessors.
Our sharepoint schema is as follows (/_api/ProjectServer/Projects('@{triggerBody()?['project_id']}')/draft/tasks/Add()):
{"parameters": {
"Name": "@{triggerBody()?['Name']}",
"Start": "@{triggerBody()?['Start']}",
"Duration": "@{triggerBody()?['Duration']}",
"ParentId": "@{triggerBody()?['ParentId']}",
"AddAfterId": "@{triggerBody()?['AddAfterId']}"
}}
Is it possible to add predecessors as well?
Thanks