SocialMedia.schedulePost (Method)
Schedules posting 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 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. |
postType | SocialMediaPostType | Required | The value describing the type of social media post. |
postTimestamp | FutureTimestamp | Required | The date and time the content will be posted. |
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. |
83506 | The content specified has already been posted on the specified channel. |
83518 | '$1' must be a current or past date that has already occurred. The date's format is 'yyyy-mm-dd'. |
83519 | '$1' field does not correspond to the associated type. |
83521 | The channel for which you are trying to schedule the post is inactive. |
Notes:
None