-->Can we add LookUp relation between custom Object and custom Metadata type?

--> My second question is, is it possible to create a picklist field with empty values and then we need to add picklist values dynamically using apex?

Scenario :

In my org, we have a custom Metadata type and we need to pass these records to the custom object. How can I proceed?

  • 3
    Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
    – Community Bot
    Commented Feb 28, 2022 at 15:57

1 Answer 1

  1. We cannot create the lookup relationship between custom object and custom metadatatype. Alternate approach can be creating a field and storing the record id as text(not recommendable approach).

  2. Yes it is possible to add picklist values dynamically using apex. Kindly refer this Post

Not the answer you're looking for? Browse other questions tagged .