Shortcuts.setDefault (Method)

Sets or removes the specified shortcut as a default shortcut. If set as a default, also sets the position of the shortcut.

Returns:

Void

Arguments:

Name Type Required Description
shortcutID ShortcutID Required A shortcut's ID.
isDefault Boolean Required Boolean flag which when set to true tells CommonSpot to set this shortcut as the current user's default.
position NonNegativeInteger Optional. Defaults to '0'. The default position of a search in the current user's favorites list. Any item's position that is greater than or equal to this position has it position increased by one. If this value is 0, CommonSpot will place this shortcut at or near, the top of the favorite list. However, CommonSpot ignores this argument if the 'isDefault' value is 0.

Context:

License Requirements None
Permission Requirements site:ManageShortcutGallery
Deny Context None
Require Context AuthoringEnabled
Author Lock  

Error Codes:

None

Notes:

None