You need to sign in to do that
Don't have an account?
Ab
Querying a custom setting
Hello,
I have a custom object like
Name and link.
How is it possible to get the link when i will pass Name.
In Apex i want to query a custom settingto get the link
thaks for suggestion
I have a custom object like
Name and link.
How is it possible to get the link when i will pass Name.
In Apex i want to query a custom settingto get the link
thaks for suggestion
please check below code once and let me know if any issues is there.
Thanks
Varaprasad
All Answers
please check below code once and let me know if any issues is there.
Thanks
Varaprasad
Here is the sample APEX code.
YOUR_CUSTOM_SETTING__c is the name of your custom setting.
NAME_OF_THE_ENTRY is the actual name you have provided when you created an Entry in the custom setting (If you can find this by clicking on Manage button in the Custom setting screen).
Let me know if this helps.
You can use get name with below query.
Please check the below links for more examples of custom settings.
http://blogatsalesforce.blogspot.sg/2015/03/use-custom-setting-efficiently-in-apex.html
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_custom_settings.htm (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_custom_settings.htm#apex_methods_system_custom_settings)
Thanks,
Arvind Kumar