Posts
Retrieve all posts for an organization.
Table Specific Information
Select
The OrganizationId column is required and must be specified in the criteria to use this table.
The 本製品 will use the LinkedIn Marketing Solutions API to process WHERE clause conditions built with the following column and operator. The rest of the filter is executed client side within the 本製品.
- OrganizationId supports the '=' comparisons.
You can obtain OrganizationId information from the LinkedIn dashboard. The syntax is:
"com.linkedin.common.CompanyAttributedEntity": { "company": "urn:li:organization:12345" }
The following queries are processed server side:
SELECT * FROM Posts WHERE OrganizationId = '123456789'
Insert
To create a new post, the following fields are required: Author, Commentary, LifecycleState, Visibility, FeedDistribution.
The following fields are optional: Content, IsReshareDisabledByAuthor, ContentLandingPage, DirectSponsoredContentName, DirectSponsoredContentStatus.
INSERT INTO Posts ( Author, Commentary, Content, IsReshareDisabledByAuthor, LifecycleState, Visibility, ContentLandingPage, DirectSponsoredContentName, DirectSponsoredContentStatus, FeedDistribution ) VALUES ( 'urn:li:organization:12345', 'This is a sample post commentary with important updates.', 'Sample content for the post', FALSE, 'DRAFT', 'PUBLIC', 'https://example.com/landing-page', 'Sample DSC Name', 'ACTIVE', 'MAIN_FEED' );
Update
To modify an existing post, use an UPDATE statement. Note that the Id column is required in the WHERE clause.
The following columns are the ones that are mutable after creation:
- Commentary
- LifecycleState
- DirectSponsoredContentName
- DirectSponsoredContentStatus
UPDATE Posts SET Commentary = 'Updated post commentary with new information.' WHERE Id = 'post123456';
Delete
DELETE FROM Posts WHERE Id = 'post123456';
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Id of the post. | |
| Author | String | False |
Author of the post. | |
| Commentary | String | False |
The user generated commentary for the post. | |
| Content | String | False |
The posted content. | |
| CreatedAt | Datetime | True |
Datetime when the post was created. | |
| IsReshareDisabledByAuthor | Boolean | False |
Indicates whether resharing of the post has been disabled by the author. | |
| LastModifiedAt | Datetime | True |
Datetime when the post was lastly modified. | |
| LifecycleState | String | False |
Lifecycle state of the post. 使用できる値は次のとおりです。DRAFT, PUBLISHED, PUBLISH_REQUESTED, PUBLISH_FAILED | |
| PublishedAt | Datetime | True |
Datetime at which the content was published. | |
| Visibility | String | False |
Visibility restrictions on content. 使用できる値は次のとおりです。CONNECTIONS, PUBLIC, LOGGED_IN, CONTAINER | |
| OrganizationId | String | True |
Id of the organization who created the post. | |
| ContentLandingPage | String | False |
Web page that is opened when the member clicks on the associated content. | |
| IsDirectSponsoredContent | Boolean | True |
Whether or not this post is Direct Sponsored Content. | |
| DirectSponsoredContentAdAccount | String | True |
The Ad Account that created the Direct Sponsored Content. | |
| DirectSponsoredContentAdType | String | True |
The type of Direct Sponsored Content. 使用できる値は次のとおりです。VIDEO, STANDARD, CAROUSEL, JOB_POSTING, NATIVE_DOCUMENT, EVENT | |
| DirectSponsoredContentName | String | False |
Plain text name of the Direct Sponsored Content post. | |
| DirectSponsoredContentStatus | String | False |
The status of the advertising company content. 使用できる値は次のとおりです。ACTIVE, ARCHIVED | |
| FeedDistribution | String | False |
Distribution of the post both in LinkedIn and externally. 使用できる値は次のとおりです。MAIN_FEED, NONE |