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

Can you include data records in a managed package?

I want to include a Custom Setting in a package **and** two instances (records) of the Custom Settings Object. Is that possible?

Sridhar BonagiriSridhar Bonagiri



You can include Custom settings object in a managed package. But you cannot include data of the Custom Settings object, to achieve this you need to write some custom apex code.



Sridhar Bonagiri




Shridhar is correct. You can not add data into managed package.


But you can try post install script. After installation of managed package salesforce will execute the script to create your data.


Follow the below link for more details.




Devendra, this link appears to be broken...
Christopher D. EmersonChristopher D. Emerson
Is this the link (or current day version of it)? 
Shailesh BhideShailesh Bhide
Use this link