buildPermissionSetXml
buildPermissionSetXml(
data):string
Defined in: packages/simply-permissions-core/src/permissionSetXmlTemplate.ts:87
Render a complete PermissionSet metadata XML document from template data.
Element text content is set via .txt(), which xmlbuilder2 escapes for us — there’s no
hand-rolled escaping (and no risk of it drifting out of sync with what’s actually unsafe in
XML text content).
Elements are written in the order Salesforce writes them on retrieve (alphabetical, at the top level
and within each entry), so a file retrieved from an org is identical to a generated one and
checkPermissionSets doesn’t report it as drifted.
Parameters
Section titled “Parameters”The permission set’s label, description, activation requirement, and permission entries.
Returns
Section titled “Returns”string
The rendered <PermissionSet> XML document, ready to write to a .permissionset-meta.xml file.