
Announcements
Hi experts, I need you help
I am using Project Server REST API Endpoints (Project Online) and hitting this endpoint
/TimeSheetPeriods('periodid')/TimeSheet/Lines
I get folloing response
{ "Comment": "",
"Id": "xyz",
"LineClass": 0,
"ProjectName": "xyz",
"Status": 2,
"TaskName": "xyz",
"TotalWork": null,
"TotalWorkMilliseconds": 0,
"TotalWorkTimeSpan": "xyz",
"ValidationType": 1
}
The above id which I get is line id.
I want to get the Project ID and Task ID. Any idea how can I achieve?
Hi @JoshuaAdams
If you action is called HTTP. Then use this expression in a compose:
body('HTTP')?['id']
There is no projectID in your JSON, if you're thinking about project name it is: body('HTTP')?['ProjectName']
✔ Marking my post as a solution not only confirms that your question has been answered, but also helps others find solutions to similar problems.
By doing so, you'll be making a valuable contribution to the community.
Best Regards
Heartholme