Can we get data of all projects from Project Online in SharePoint Site? So far as I understand we can get data of list like this:

SPWeb web = SPContext.Current.Web;
SPList issueList = web.GetList("https://tenant.sharepoint.com/sites/demo/Sample Project 1/Lists/Issues/AllItems.aspx");

Do you have any some good tutorial? I am new on web part SharePoint.

1 Answer 1


You can use REST API for this.

1) Get All Projects information from Project Online


2) Get Project GUID


3) Get Specific Project information based on GUID

http://<pwa_site>/_api/ProjectData/Projects(guid'<GUID here>')

4) Get Assignment Information of a Project (Tasks Assigned)

http://<pwa_site>/_api/ProjectData/Projects(guid'<GUID here>')/Assignments

5) Get Assignments based on user

http://<pwa_site>/_api/ProjectData/Projects(guid'<GUID here>')/Assignments?$filter=ResourceName eq '<Name>'

6) Get Tasks of a Project

http://<pwa_site>/_api/ProjectData/Projects(guid'<GUID here>')/Tasks

Reference Link: https://www.dsouzajoel.com/2016/10/21/project-online-api-list/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.