Users.saveTemplateGalleryPrefs (Method)

Sets the template gallery preferences for the current user or sets the default preferences.

Returns:

Void

Arguments:

Name Type Required Description
forDefaultUser Boolean Optional. Defaults to '0'. Boolean flag which when set to true indicates that these setting preferences are for the default user. These preferences are used when users do not set their own settings. If false, these settings are for the current user.
defaultView TemplateGalleryView Optional. Defaults to 'Listing'. Defines the way in which CommonSpot displays the template gallery; for example, 'Categorized' or 'Listing'.

Context:

License Requirements (none)
Permission Requirements Contributor
Deny Context (none)
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the customer level, calls to this method will be logged
Customization Customization is not supported for this method.

Error Codes:

None

Notes:

None