Database views for pm_project
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 11:44 PM
Hello All,
I am using Xanadu patch 7
I am trying to create a database view on pm_project table. If I dont put any where clause, the record count is correct in the view.
I need to select those records where primary_portfolio = 'sys id' (sys_id of the portfolio)
However when I put this condition in where clause, I find that all the records from Task table are also shown (10s of thousands of records). Why does this happen? How to correct this? I tried to use another condition for sys_class_name but even this does not filter out the task records. I need only
I want to select only those records which have Task type as Project

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 12:19 AM
Hi Ashwini,
Replace 'and' with '&&' in the query.
Also, you can apply the query in the report unsure why you need to pass it as a clause as a sys_id of portfolio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2025 01:39 AM
@Jaspal Singh Thanks for your response. I replaced 'and' with '&&' but no improvement. I need to filter the records in database view which I want to expose to powerapps application using REST API.