Page.saveVersionHistorySettings (Method)

Sets the number of days for which CommonSpot displays version history information. For example, if this is set to 180 days, CommonSpot does not display information for changes that occurred over 180 days ago.

Returns:

Void

Arguments:

Name Type Required Description
pageID PageID Required A page's ID.
daysToShow NonNegativeInteger Optional. Defaults to '0'. An integer representing the number of days that CommonSpot shows this page's history. If this is set to 0, CommonSpot uses the default setting for this page's subsite.

Context:

License Requirements None
Permission Requirements page:Author
Deny Context None
Require Context AuthoringEnabled
Author Lock If available
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

None

Notes:

None