SocialMediaService.save (Method)

Saves a service for the specified type.

Returns:

SocialMediaServiceID (integer)

Arguments:

Name Type Required Description
id SocialMediaServiceID_0 Required The ID of the social media service to update, or 0 to create a new social media service.
name PlainText_NonNull_100 Required The name of the social media service.
description PlainText_NonNull_2000 Required The description of the social media service.
typeID SocialMediaTypeID Required The unique id of the social media type for which the service applies.
accessData Struct Optional. Defaults to '#StructNew()#'. A struct of access related information.
propertiesXML SocialMediaServiceXML Required The XML that defines the social media service.
iconURL ServerRelativeURL_EmptyString Required The server relative path to an icon representing the specified service.
postComponentPath ModuleFileName Required A path to the services component.

Context:

License Requirements SocialMedia
Permission Requirements site:ManageSocialMedia
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 Customization is not supported for this method.

Error Codes:

Code Error Message
83001 Another service definition of typeid '$1' already exists with the same name.
83003 The orderBy argument must be in the form {ColumnName} [Direction] where ColumnName must be one of the following: Name, Type, Description, Channels or Registered. Direction is optional with values of ASC or DESC.
83004 Non-parameter fields for a factory service cannot be modified.

Notes:

None