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
Mayank Agarwal 5Mayank Agarwal 5 

Dependent Multi-Select Picklist in apex

Hello,

I have some record types for some objects in Saleforce.
I want to create one picklist 'Object Name' 'which shows all the object names and one multi-select picklist 'Record Types' 'which shows the record types based on the object select in the object picklist.

Please suggest way to accomplish this.


Thanks,
Mayank
Boris BachovskiBoris Bachovski
Here is how to get all the sobject names from the org:

http://salesforce.stackexchange.com/questions/10951/how-to-find-only-those-schema-sobjecttype-types-that-are-visible-in-the-schema-b
http://www.cloudforce4u.com/2013/10/get-all-objects-in-salesforce-org.html

And here is an example that has also the record types associated with each of the objects.

http://jungleeforce.wordpress.com/2013/06/07/extracting-list-of-all-the-objects-standard-custom-in-salesforce/

Now it's up to you how you how you want to do the UI/UX, the key methods are there.

Good luck!
Mayank Agarwal 5Mayank Agarwal 5
Hello Boris,

Thanks for the response.
Your links are good but after going through them, they are unable to solve my problem.
Could you please send me some more examples.

Thanks,
Mayank