SocialMedia.post (Method)
Posts the message to the specified channel.
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 post to. |
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 post. Note for any binary objects, the physical path on the server should be passed in the structure for that field. |
postType | SocialMediaPostType | Required | The value describing the type of social media post. |
urlShortenerFields | PlainTextList_EmptyString | Required | A list of fields for which url shortener should be called. |
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. |
83502 | $1 |
83503 | CommonSpot has not been granted access or the user has revoked the access to the specified channel. |
83505 | The content specified has already been scheduled for the specified channel. |
83506 | The content specified has already been posted on the specified channel. |
83511 | The channel for which you are trying to post is inactive. |
83512 | Could not find the component for the service. |
83513 | Could not create the object of the component for the service. |
83514 | Component is not defined for the service. |
83519 | '$1' field does not correspond to the associated type. |
83524 | $1 |
Notes:
None