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

How to access cusotm global variable in lightning
Hello,
I created a custom global variable and I want to store in Aura Component without making $A.enqueueAction each time. Is there a way to access it, the way we access standard global variables in lightning.
Thanks,
I created a custom global variable and I want to store in Aura Component without making $A.enqueueAction each time. Is there a way to access it, the way we access standard global variables in lightning.
Thanks,
There is no direct way to access custom settings in lightning. The only way to access the custom setting is by using a server-side controller.
https://salesforce.stackexchange.com/questions/132177/how-to-access-a-hierarchy-custom-setting-from-lightning-component
For further reference, you can check this too (https://salesforce.stackexchange.com/questions/148242/are-global-attributes-possible-in-lightning-component).
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.