MSI.GetFeatureUsage

table MSI.GetFeatureUsage ( 

string ProductCode,

string FeatureID )

Description

Calls the MsiGetFeatureUsage function to get the usage metrics for a product feature.

Parameters

ProductCode

(string) The "product code" of the product containing the feature. This string must be an identifier string enclosed in curly braces, for example: "{78B82B0B-9AD9-40C0-B994-F72C21B52723}".

FeatureID

(string) The identifier of the feature whose metrics you want.

Returns

(table) Returns a table indexed by the following values. If this action fails or an error occurs, nil is returned:

KEY

TYPE

DESCRIPTION

UsageCount

number

The number of times the feature has been used.

Day

number

The day of the month the feature was last used (1-31).

Month

number

The month the feature was last used (1 = January, 2 = February etc.).

Year

number

The year the feature was last used.

If the action fails, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions