Support Record Type?

#3 · open · 1 comments

View on GitHub ↗

ericrsmith35

Nice Component! What would need to be done to support just Picklist Values applicable to the current Record Type?

Comments

douglascayers

Hi @ericrsmith35, To get picklist values for a specific record type I believe requires making http callouts to Salesforce API. The [UI-API](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_picklist_values_collection.htm) can provide the data. I'm not sure if that will be straight forward to make the http callout in apex to that endpoint or if it would require oauth authentication, which would require you to setup a Named Credential to use this component. The better alternative is probably trying to use the [lightning:inputField](https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_lightning_inputField.htm) which got some much needed love in Spring '18 release.