Loading...
Loading...
Compare original and translation side by side
ManagedEventSubscriptionManagedEventSubscription.managedEventSubscription-meta.xml__e.managedEventSubscription-meta.xml.managedEventSubscription-meta.xml__e.managedEventSubscription-meta.xmlreferences/topic-name-formats.mdIdLATESTEARLIESTLATESTEARLIESTRUNSTOPRUNreferences/topic-name-formats.mdIdLATESTEARLIESTLATESTEARLIESTRUNSTOPRUNIdreferences/topic-name-formats.mdLATESTEARLIESTLATESTLATESTEARLIESTLATESTRUNSTOPRUNPAUSEINVALID_INPUT67.0Idreferences/topic-name-formats.mdLATESTEARLIESTLATESTLATESTEARLIESTLATESTRUNSTOPRUNPAUSEINVALID_INPUT67.0generating-platform-eventassets/managed-event-subscription-template.xmlmanagedEventSubscriptions/<DeveloperName>.managedEventSubscription-meta.xmlManagedSubscribeDeveloperNameIdIdSELECT Id, DeveloperName FROM ManagedEventSubscription WHERE DeveloperName='<DeveloperName>'generating-platform-eventassets/managed-event-subscription-template.xmlmanagedEventSubscriptions/<DeveloperName>.managedEventSubscription-meta.xmlDeveloperNameIdManagedSubscribeIdSELECT Id, DeveloperName FROM ManagedEventSubscription WHERE DeveloperName='<DeveloperName>'IdDeveloperNameIdmanagedEventSubscriptions/<DeveloperName>.managedEventSubscription-meta.xmlIdDeveloperNameIdmanagedEventSubscriptions/<DeveloperName>.managedEventSubscription-meta.xmlIdDeveloperNameIdreferences/update-constraints.mdIdDeveloperNameIdreferences/update-constraints.mdIdDeveloperNamedestructiveChanges.xmlreferences/delete-guide.mdIdDeveloperNamedestructiveChanges.xmlreferences/delete-guide.md| Constraint | Rationale |
|---|---|
| Platform events use |
| These are the only valid enum values; any other value fails metadata validation |
| |
| All six required elements must be present | |
| DeveloperName must be unique within the org | Duplicate names cause |
Do not include | Read-only platform fields; including them causes deployment failures in unpackaged orgs |
| 约束 | 理由 |
|---|---|
| 平台事件使用 |
| 这些是唯一有效的枚举值;任何其他值都会导致元数据验证失败 |
| |
| 必须包含所有六个必填元素 | |
| DeveloperName在组织内必须唯一 | 重复名称会导致 |
请勿包含 | 这些是平台只读字段;在未打包组织中包含它们会导致部署失败 |
| Issue | Resolution |
|---|---|
| Wrong format or the event doesn't exist in the org — read |
| Replay state lost after delete + recreate | Deleting discards stored replay position; recreating starts from |
| ManagedEventSubscription is only queryable via Tooling API, not standard SOQL |
| Can trigger up to 72 hours of backlog replay on activation; always confirm with the user |
| Metadata not supported in older orgs | ManagedEventSubscription requires API v60.0+; check org API version |
| These are wrong field names — use |
| |
| User unsure how to identify subscription for Pub/Sub API | Both |
| Changes not reflected immediately in Pub/Sub API | After create/update/delete, the Pub/Sub API can take up to ~2 minutes to reflect the new config; if ManagedSubscribe returns NOT_FOUND, wait and retry |
| 问题 | 解决方案 |
|---|---|
部署时提示 | 格式错误或事件在组织中不存在——请阅读 |
| 删除后重新创建导致重放状态丢失 | 删除操作会丢弃存储的重放位置;重新创建会从 |
SOQL查询时提示 | ManagedEventSubscription仅可通过Tooling API查询,无法通过标准SOQL查询 |
高容量通道使用 | 激活时可能触发长达72小时的积压重放;请务必与用户确认 |
| 旧版本组织不支持该元数据 | ManagedEventSubscription需要API v60.0+;请检查组织API版本 |
生成的XML中包含 | 这些是错误的字段名称——请使用 |
生成的XML中包含 | |
| 用户不确定如何在Pub/Sub API中识别订阅 | |
| 变更未立即在Pub/Sub API中生效 | 创建/更新/删除后,Pub/Sub API最多可能需要2分钟才能反映新配置;若ManagedSubscribe返回NOT_FOUND,请等待并重试 |
<topicName>references/topic-name-formats.md/event/Name__e/data/NameChangeEvent/data/ChangeEvents/event/Name__chn/data/Name__chn<defaultReplay>LATESTEARLIEST<errorRecoveryReplay>LATESTEARLIEST<state>RUNSTOPPAUSE<label><version>67.0<id><createdDate><namespacePrefix><topicName>references/topic-name-formats.md/event/Name__e/data/NameChangeEvent/data/ChangeEvents/event/Name__chn/data/Name__chn<defaultReplay>LATESTEARLIEST<errorRecoveryReplay>LATESTEARLIEST<state>RUNSTOPPAUSE<label><version>67.0<id><createdDate><namespacePrefix>managedEventSubscriptions/<DeveloperName>.managedEventSubscription-meta.xmldestructiveChanges.xmlmanagedEventSubscriptions/<DeveloperName>.managedEventSubscription-meta.xmldestructiveChanges.xml| Need | Delegate to |
|---|---|
Create the platform event channel ( | |
| Subscribe via Flow (Process Automation) | |
| Deploy metadata to org | |
| 需求 | 委托至 |
|---|---|
创建要订阅的平台事件通道( | |
| 通过Flow(流程自动化)订阅 | |
| 将元数据部署到组织 | |
| File | When to read |
|---|---|
| Before generating any new subscription — use as starting structure |
| When setting |
| During Update workflow — to check which fields are immutable post-creation |
| During Delete workflow — for destructive change deployment procedure |
| 文件 | 阅读时机 |
|---|---|
| 生成任何新订阅之前——用作初始结构 |
| 设置 |
| 更新工作流程期间——检查哪些字段在创建后不可变 |
| 删除工作流程期间——获取破坏性变更部署流程 |