SocialMedia.savePost (Method)
Saves the post of the specified social media content to the specified social media channel. Note for any binary objects, the physical path on the server should be passed in the structure for that field.
Returns:
SocialMediaPostID (integer)
Arguments:
Name | Type | Required | Description |
---|---|---|---|
contentID | SocialMediaContentID | Required | The unique ID that identified the social media content. |
channelID | SocialMediaChannelID | Required | The ID of the social media channel to save the post for. |
sourceID | SocialMediaContentOrPostID_0 | Required | The ID of the social media content, or the ID of the post (if edited), or 0 (when creating a new post). |
content | Struct | Required | A structure describing the content to save. |
postType | SocialMediaPostType | Required | The value describing the type of social media post. |
Context:
License Requirements | SocialMedia |
Permission Requirements | (none) |
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 |
---|---|
83501 | The specified content is not associated with the channel provided. |
83506 | The content specified has already been posted on the specified channel. |
83519 | '$1' field does not correspond to the associated type. |
Notes:
None