How to Create Custom Metadata from Custom Object with just a Single Command

#1MinuteTip #SalesforceWinter21 You can now create a custom metadata from custom object with just a single command. Not only will this create the custom metadata but will also populate it with records from the custom object. This is possible using Salesforce CLI Plugin for Custom Metadata Types introduced in Winter ’21 release.

sfdx force:cmdt:generate -n MyCustomMetadata -s MyCustomObject__c

References & Useful URLs

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top
Introducing All Access Pass