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
Gowkanapalli JanardhanreddyGowkanapalli Janardhanreddy 

How add task picklist custom values to managed package through post install script ?

hi i have task standard object , in this object subject pick list field is there . there i created two custom values , after i upload a package , i install this package in test org ,after i checked task subject field values that two values not came . so it is manually it is not possible , so it think it is possible through post install script , if any knows help me this one
ShashankShashank (Salesforce Developers) 
You should use the Metadata API in the post install script to do this. This blog may help you with that: http://andyinthecloud.com/2014/07/29/post-install-apex-metadata-api-configuration-solved/

This post also has an easier workaround: http://salesforce.stackexchange.com/questions/20564/can-i-call-salesforce-metadata-api-from-apex-code/20569#20569