function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Custom metadata type records not found to add managed package

Hello All,

I have created custom metadata type and records, added it to the managed package.  Now I want to add another record of  custom metadata type to managed package.  When i click add to components before uploading managed package.  I didn't find newly created record of custom metadata type. Can anyone guide me please.

NagendraNagendra (Salesforce Developers) 

sorry for this issue you are facing.

If I understand correctly, "You cannot add custom settings data in a managed package. You have to write a post-install script to add data after the package is installed.

You can add data for custom metadata but you have to explicitly add custom metadata type records in the package. Just adding custom metadata type itself will not add data.

And that's also one of the main differences in custom metadata and custom settings. You can package custom metadata records but not custom settings' records."

so I went back to using the custom metadata type and in the managed package manually added my 6 records.

Hope this helps.

Kindly mark this as solved if the reply was helpful.