Skip to main content
Diagnostics, usage data collection, caches, and flushing

Constructors

NSDiagnosticsAgent()

Diagnostics, usage data collection, caches, and flushing

Methods

AddWebAppUsage(NSWebAppUsage[])

Adds WebApp usage to existing log.
Returns: CRMScript.Global.Void

ChangeLogSettings(Bool,Bool,Bool,Bool,Bool,Bool,Bool,Bool)

Changes NetServer log settings.
Returns: CRMScript.Global.Void

CollectDataAdditions()

Collects and transmits usage statistics: Database Additions. If opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time.
Returns: CRMScript.Global.Void Example:

CollectTableSizes()

Collects and transmits usage statistics: Table Sizes. If opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time. <pre><code>NSDiagnosticsAgent agent; agent.CollectTableSizes();</code></pre>
Returns: CRMScript.Global.Void Example:

CollectWebUsage()

Collects and transmits usage statistics: Web-based clients Usage. If opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time.
Returns: CRMScript.Global.Void Example:

CollectWinUsage()

Collects and transmits usage statistics: Windows CRM Client Usage. If opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time. <pre><code>NSDiagnosticsAgent agent; agent.CollectWinUsage();</code></pre>
Returns: CRMScript.Global.Void Example:

FlushCaches()

Flushes all NetServer caches
Returns: CRMScript.Global.Void

FlushCachesByName(String[])

Flushes all NetServer caches named
Returns: CRMScript.Global.Void Example:

GetCacheNames()

Gets the name of the caches that can be flushed
Returns: CRMScript.Global.String[] Example:

GetWebAppUsagesForPeriod(DateTime,DateTime,String)

Gets all WebAppUsages for a given period, that match an optional search term
Returns: CRMScript.NetServer.NSWebAppUsage[]

LogViewState(String)

Logs a change in view state.
Returns: CRMScript.Global.Void
The granularity of the logging depends on the current configuration.This call returns asynchronously, leaving the server to finish processing later on.

PerformTasksAfterUpgrade()

After upgrading to a new file set, there may be tasks that need to be done. Fpr example, import new TypicalSearches, if present. Tasks performed here need to be idempotent and independent of the actual upgrade jump (what was the previous version). They should complete in a reasonable time, not more than a few minutes maximum.
Returns: CRMScript.Global.String Example:

ResyncUsers()

Resynchronizes user information with SuperOffice Community, if opted-out then this call does nothing. The call returns immediately (starting a background thread), and updates CS scheduler table to set the next run time.
Returns: CRMScript.Global.Void Example:

WebAppUsageExistsInPeriod(Integer,String,DateTime)

Checks if viewState has been clicked at least once since a date.
Returns: CRMScript.Global.Bool - true if viewState has been clicked at least once since FromDate, if asscoiateId < 0 or FromDate is DateTime.MinValue no restriction given for those parameters. Example: