Jul 31 2024 07:27 AM
In Project Online, we add resources from our enterprise resource pool to projects using the "build team" functionality. Once the team is built for a project we may or may not assign some or all of those resources to tasks in the project. I want to create a Power BI report that shows all of the resources on a project team regardless of whether they have assignments or not. I can get the resources that have assignments, but I cannot figure out how to surface the resources that are on the project team but do not have assignments.
Jul 31 2024 09:53 AM
Hello @David_Howe ,
That data is not available in the Odata Reporting APIs, it is available in the CSOM REST API though, for example:
{pwaUrl}/_api/ProjectServer/Projects('{projGuid}')/ProjectResources
Replace {pwaUrl} with your PWA URL and {projGuid} with the project GUID.
Paul
Jul 31 2024 10:05 AM
Jul 31 2024 11:30 PM
Aug 01 2024 05:05 AM
Aug 01 2024 05:33 AM
Hello @David_Howe ,
expands wont work for these endpoints. If you add a hard coded URL such as
http://PWAURL.com/_api/ProjectServer/Projects('569-34543534-34534-23432')/ProjectResources
Does that work?
Aug 01 2024 05:37 AM
Aug 01 2024 02:12 PM
Aug 02 2024 07:37 AM
Hello @David_Howe ,
That's good to know the expand works on one instance. For the other instance is there an error on the expand in Power BI? It might be data related.
Paul
Aug 02 2024 07:50 AM
Aug 02 2024 08:21 AM
Hello @David_Howe ,
That's a tricky one, probably something you'd need to raise with Microsoft via your M365 admin portal to see if it is something that can be resolved in the data. It might be a certain resource type that is missing some data to enable the Odata expand.
Paul
Aug 02 2024 08:23 AM