buildPlatformEventSubscriptionXml
buildPlatformEventSubscriptionXml(
record,meta):string
Defined in: packages/simply-aep-core/src/at4dxPlatformEventSubscriptionBuildXml.ts:68
Builds a full .md-meta.xml document for a PlatformEvents_Subscription__mdt record — the
write-side counterpart to scanLocalPlatformEventSubscriptions’s parsing, byte-shape-compatible
with it (a re-scan of this output reproduces record). DeveloperName isn’t part of the body —
like every other CustomMetadata component, it’s carried by the file name
(PlatformEvents_Subscription.<DeveloperName>.md-meta.xml), not this function’s concern. Used by
createPlatformEventSubscription, and by updatePlatformEventSubscription when there’s no existing
local file to preserve the shape of (an org-only update) — see patchPlatformEventSubscriptionXml
for the local-file case.
Parameters
Section titled “Parameters”record
Section titled “record”PlatformEventSubscriptionXmlFields
The field values to serialize.
Presentation-only metadata not read back by any scanner.
string
Returns
Section titled “Returns”string
The full XML document text, ready to write to a .md-meta.xml file.