web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need to retrieve Proje...
Power Automate
Unanswered

Need to retrieve Project Id and Task Id from Project Online Rest API

(0) ShareShare
ReportReport
Posted on by 2

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? 

Categories:
I have the same question (0)
  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard