You need to sign in to do that
Don't have an account?

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
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
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