Publishes the LinkedIn post on the appropriate LinkedIn account (company profile). Throws an exception if something goes wrong.
            
Namespace: CMS.SocialMarketingAssembly: CMS.SocialMarketing (in CMS.SocialMarketing.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- postInfoId
 - Type: 
System Int32
Identifier of the LinkedInPostInfo that will be published. 
Exceptions
| Exception | Condition | 
|---|---|
| When post does not exist, has already been published to LinkedIn or the account is not valid. | |
| Thrown when authorization or LinkedIn's company ID resulting from accountId is null, or when comment is null. | |
| Thrown when comment is longer than COMPANY_SHARE_COMMENT_MAX_LENGTH | |
| CMS.SocialMarketing LinkedInApiUnauthorizedException | Thrown when protocol error occurs because the request is not authorized properly. | 
| CMS.SocialMarketing LinkedInApiException | Thrown when protocol error occurs. | 
See Also