Apex Metadata API

Use when Apex code must create or update metadata programmatically at runtime — custom fields, objects, picklist values, labels, or other supported types — using the Metadata namespace (Metadata.Operations, Metadata.DeployCallback). Triggers: 'Metadata.Operations', 'Metadata.CustomField from Apex', 'deploy metadata from Apex', 'enqueueDeployment', 'create a custom field programmatically', 'post-install script metadata setup'. NOT for Metadata API REST/SOAP (use metadata-api-and-package-xml) and NOT for reading Custom Metadata Type configuration rows in Apex (use custom-metadata-in-apex).

BanibrataChatterjee Updated

File contents

BanibrataChatterjee/AwesomeSalesforceSkills/tree/main/skills/apex/apex-metadata-api commit 7469f73cc2

Frequently asked questions

npx skillmds@latest add banibratachatterjee/apex-metadata-api