Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Set Audit Log Trimming using CSOM

$
0
0

Hi All,

I am facing issue when I am trying to set the location for audit log trimming using below code:


                var allProperties = context.Web.AllProperties;   
                allProperties["_auditlogreportstoragelocation"] = newLib.RootFolder.ServerRelativeUrl;
                context.Web.Update();
                context.ExecuteQuery();

Strange this is when I  try to add value to propertybag "_auditlogreportstoragelocation" using designer, its reflecting under Site Action > Site Settings > Site Collection Audit Setting. help on this issue is highly appreciated. 

Thanks

Ankit


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>