Keywords.replaceWordList (Method)

Changes the name of one or more keywords.

Returns:

Void

Arguments:

Name Type Required Description
subsiteIDOrURL SubsiteIDorURL_EmptyString Required The ID of the target subsite, or the server relative path to the target subsite, or an empty string for the current subsite.
keywordList KeywordList Required A comma-delimited list of keywords.
newKeyword Keyword_Valid Required The new name of the keywords in the 'keywordList' argument.
subsiteScope SubsiteScopeFilter Optional. Defaults to '#Request.Constants.SUBSITE_SCOPE_CURRENT#'. String containing the subsite's scope; for example, 'ALL', 'CURRENT', 'CURRENT_AND_ABOVE', and so on.

Context:

License Requirements Keywords
Permission Requirements subsite:ManageSubsiteKeywords
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
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:

Code Error Message
26025 The old and new keywords cannot be same.

Notes:

None