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
Paul Foley4Paul Foley4 

Access custom metadata fields in visualforce page

I have a visualforce page I want to be able to retreive and display come custom metadata values.

Ideally I want it so that based on the value that is selected in a picklist from the standard controler, it will display a custom field on the matching custom metadata record.

The use case for this is, that in an RMA record the support person will choose the return location from a picklist. What I want is depending on the location selected the correct address should be displayed on the page (which is being rendered as a PDF)

I dont really want to set up a custom object for the addresses, as they wont change all that often, and I also dont really want to hard code them into the page if possible either.

Any suggestions would be greatly appreciated
 
RobAlexanderRobAlexander
http://www.appshark.com/custom-meta-data-types

http://www.soliantconsulting.com/blog/2016/06/making-the-move-custom-metadata-types

https://teamforcesite.wordpress.com/2016/02/23/using-custom-metadata-type-in-salesforce