<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to query extended info keys in Audit.QueryWithPageProvider API? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-extended-info-keys-in-audit-querywithpageprovider/m-p/316328#M3329</link>
    <description>&lt;P&gt;I have tried to get audit logs using &lt;STRONG&gt;/api/v1/automation/Audit.QueryWithPageProvider&lt;/STRONG&gt; API and manged to get below result.&lt;/P&gt;
&lt;P&gt;Request&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
    "params": {
        "providerName": "EVENTS_VIEW",
        "namedQueryParams": {
            "principalName": "Administrator"
        },
        "pageSize": 100,
        "sortOrder": "DESC",
        "sortBy": "eventDate"
    },
    "context": {}
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Response&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
    "entity-type": "logEntries",
    "isPaginable": true,
    "resultsCount": 2744,
    "pageSize": 100,
    "maxPageSize": 1000,
    "resultsCountLimit": 0,
    "currentPageSize": 100,
    "currentPageIndex": 0,
    "currentPageOffset": 0,
    "numberOfPages": 28,
    "isPreviousPageAvailable": false,
    "isNextPageAvailable": true,
    "isLastPageAvailable": true,
    "isSortable": true,
    "hasError": false,
    "errorMessage": null,
    "pageIndex": 0,
    "pageCount": 28,
    "entries": [
	{
            "entity-type": "logEntry",
            "id": 5920,
            "category": "eventDocumentCategory",
            "principalName": "Administrator",
            "comment": null,
            "docLifeCycle": "project",
            "docPath": "/DMS-TENANT1",
            "docType": "Domain",
            "docUUID": "befe4474-59b1-4182-a223-8350becc15cb",
            "eventId": "documentModified",
            "repositoryId": "default",
            "eventDate": "2020-06-24T12:07:22.555+05:30",
            "logDate": "2020-06-24T12:07:24.706+05:30",
            "extended": {
                "lastContributor": "Administrator",
                "creator": "Administrator",
                "created": "2020-06-24T12:07:22.205+05:30",
                "modified": "2020-06-24T12:07:22.545+05:30",
                "description": "DMS-TENANT1",
                "contributors": [
                    "Administrator"
                ],
                "title": "DMS-TENANT1"
            }
        }
    ]
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want to filter these logs on the basis of keys present in &lt;STRONG&gt;extended&lt;/STRONG&gt; object. How can I do it using &lt;STRONG&gt;namedQueryParams&lt;/STRONG&gt; present in the request?&lt;/P&gt;
&lt;P&gt;Whenever I try to put extended keys in namedQueryParams, I get this error.
org.nuxeo.ecm.core.api.model.PropertyNotFoundException: Failed to invoke operation: Audit.QueryWithPageProvider, Failed to invoke operation Audit.QueryWithPageProvider with aliases [Audit.PageProvider], description&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2020 13:01:40 GMT</pubDate>
    <dc:creator>Ankush_Bandil</dc:creator>
    <dc:date>2020-06-25T13:01:40Z</dc:date>
    <item>
      <title>How to query extended info keys in Audit.QueryWithPageProvider API?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-extended-info-keys-in-audit-querywithpageprovider/m-p/316328#M3329</link>
      <description>&lt;P&gt;I have tried to get audit logs using &lt;STRONG&gt;/api/v1/automation/Audit.QueryWithPageProvider&lt;/STRONG&gt; API and manged to get below result.&lt;/P&gt;
&lt;P&gt;Request&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
    "params": {
        "providerName": "EVENTS_VIEW",
        "namedQueryParams": {
            "principalName": "Administrator"
        },
        "pageSize": 100,
        "sortOrder": "DESC",
        "sortBy": "eventDate"
    },
    "context": {}
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Response&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
    "entity-type": "logEntries",
    "isPaginable": true,
    "resultsCount": 2744,
    "pageSize": 100,
    "maxPageSize": 1000,
    "resultsCountLimit": 0,
    "currentPageSize": 100,
    "currentPageIndex": 0,
    "currentPageOffset": 0,
    "numberOfPages": 28,
    "isPreviousPageAvailable": false,
    "isNextPageAvailable": true,
    "isLastPageAvailable": true,
    "isSortable": true,
    "hasError": false,
    "errorMessage": null,
    "pageIndex": 0,
    "pageCount": 28,
    "entries": [
	{
            "entity-type": "logEntry",
            "id": 5920,
            "category": "eventDocumentCategory",
            "principalName": "Administrator",
            "comment": null,
            "docLifeCycle": "project",
            "docPath": "/DMS-TENANT1",
            "docType": "Domain",
            "docUUID": "befe4474-59b1-4182-a223-8350becc15cb",
            "eventId": "documentModified",
            "repositoryId": "default",
            "eventDate": "2020-06-24T12:07:22.555+05:30",
            "logDate": "2020-06-24T12:07:24.706+05:30",
            "extended": {
                "lastContributor": "Administrator",
                "creator": "Administrator",
                "created": "2020-06-24T12:07:22.205+05:30",
                "modified": "2020-06-24T12:07:22.545+05:30",
                "description": "DMS-TENANT1",
                "contributors": [
                    "Administrator"
                ],
                "title": "DMS-TENANT1"
            }
        }
    ]
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I want to filter these logs on the basis of keys present in &lt;STRONG&gt;extended&lt;/STRONG&gt; object. How can I do it using &lt;STRONG&gt;namedQueryParams&lt;/STRONG&gt; present in the request?&lt;/P&gt;
&lt;P&gt;Whenever I try to put extended keys in namedQueryParams, I get this error.
org.nuxeo.ecm.core.api.model.PropertyNotFoundException: Failed to invoke operation: Audit.QueryWithPageProvider, Failed to invoke operation Audit.QueryWithPageProvider with aliases [Audit.PageProvider], description&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 13:01:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-query-extended-info-keys-in-audit-querywithpageprovider/m-p/316328#M3329</guid>
      <dc:creator>Ankush_Bandil</dc:creator>
      <dc:date>2020-06-25T13:01:40Z</dc:date>
    </item>
  </channel>
</rss>

