updatePlatformEventSubscription
updatePlatformEventSubscription(
input,target):Promise<At4dxPlatformEventSubscriptionWriteResult>
Defined in: packages/simply-aep-core/src/at4dxPlatformEventSubscriptionWrite.ts:322
Updates an existing PlatformEvents_Subscription__mdt record: locates it by DeveloperName, merges
in only the fields input actually sets (everything else keeps its current value), re-validates the
result, then rewrites (and optionally deploys) the .md-meta.xml.
Consumer__c is a value change like any other here, not the create-plus-delete dance DeveloperName
requires — it reads as the record’s identity in the UI (see docs/design/0025’s “What makes this
family shaped differently” section), but DeveloperName remains the record’s actual key.
See docs/design/0025-at4dx-platform-event-subscription-support.md for the full behavior contract.
Parameters
Section titled “Parameters”UpdatePlatformEventSubscriptionInput
target
Section titled “target”UpdatePlatformEventSubscriptionTarget
Returns
Section titled “Returns”Promise<At4dxPlatformEventSubscriptionWriteResult>
Throws
Section titled “Throws”See the error codes in PlatformEventSubscriptionWriteErrorCode.