SocialPostTarget
The SocialPostTarget object (UmbSocial.Core.Models) is one post on one channel: its own text, status, attempt number and outcome. A post has one target per channel.
| Property Name | Type | Use |
|---|---|---|
| Id | int | The target’s id. Used to retry it or mark it as published. |
| PostId | int | The post’s id. |
| Post | SocialPost? | The post, when loaded. |
| ChannelId | int | The channel’s database id. |
| Channel | SocialChannel? | The channel, when loaded. |
| TextOverride | string? | This channel’s own text; the post’s text when null. Once published, it keeps the text the post went out with. |
| Status | TargetStatus | The post’s status on this channel. |
| Attempt | int | 0 for the first attempt; each retry adds 1. Part of the run’s idempotency key. |
| AutomateRunId | Guid? | The Automate run that published (or tried to publish) it. |
| PostUrl | string? | The live post’s URL. |
| ExternalId | string? | The network’s id for the post, when the automation recorded one. |
| Error | string? | Why it failed, is unknown or is paused: one of Social’s codes, or the network’s own message (up to 2,000 characters). |
| DispatchedUtc | DateTime? | When it was handed to the channel’s automation. |
| CompletedUtc | DateTime? | When its outcome was recorded. |
| ConcurrencyStamp | Guid | Renewed on every save, so two servers can’t claim the same target. |