Hi @john john Pter ,
Sorry, there is a problem with the pnp search web part
in my environment, and the test cannot be performed.
It will take some time to fix it. If the pnp search web part
is available in your environment, you can try to follow the steps in the following article to see if it can be achieved:
https://www.gravityunion.com/blog/how-to-configure-simple-pnp-search-on-sharepoint-site
https://www.gravityunion.com/blog/how-to-create-custom-column-filters-for-pnp-search
non-official, just for reference.
In addition, please note:
- Managed Property Availability: The status (or moderation status) field in your lists must be mapped to a managed property that is both queryable and retrievable. In many environments with content approval enabled, the moderation status is stored in a managed property (often named something like ModerationStatus) where a specific integer value represents “Pending” (commonly 0).
- KQL Query Construction: In your PnP Search web part’s query configuration, you would build a KQL query that targets list items across all sites and filters on that moderation status. For example, your query might look something like this:
contentclass:STS_ListItem AND ModerationStatus=0
Hope this information helps. And hope to hear good news from you.
I will also fix the problem as soon as possible and test it. Sorry again.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.