none
Usage Report RRS feed

  • Question

  • I want to calculate the Popularity report for the Documents library item programmatically in sharepoint 2016,

    i have tried the following methods,

    by Powershell Script,

     -   $SearchApp = Get-SPEnterpriseSearchServiceApplication
            $UsageData = $SearchApp.GetAnalyticsItemData(1, [System.Guid]::Empty,[System.Guid]::Empty,"$($item.Web.Url)/$($item.Url)");

    but usage data returns null,

     - GetUsageData from CSOM , returns null.

    Thursday, June 20, 2019 10:28 AM