Activity › Forums › Salesforce® Discussions › What is Custom Label in Salesforce?
-
What is Custom Label in Salesforce?
Posted by Shweta on October 28, 2020 at 7:04 PMWhat is Custom Label in Salesforce?
Akash Karhale replied 5 years, 7 months ago 3 Members · 2 Replies -
2 Replies
-
Custom labels are custom text values that can be accessed from Apex classes, Visualforce pages, or Lightning components.
- [adinserter block='9']
-
hi @shweta,
suppose in your apex class code you want to use some data like API key (personala data or the data that you dont want to show to other)that use in api callout (integration) ,so it is not good to have it hardcoded or for security purppose it is not right to use it directly in code so for that reasone we can use custom label,
in that custom label we put our api key and give any name to it and save …now in class code you can use custom label name insted of api key directly…this is one of the use case.—-again for dynamic purpose you can use it ,if in case in future that data or like api key is change so withaut any changes in apex class code we can change that data or key here in custom label..
for more info : use this link :https://webkul.com/blog/how-to-use-custom-labels-in-salesforce/
-
This reply was modified 5 years, 7 months ago by
Akash Karhale.
-
This reply was modified 5 years, 7 months ago by
Log In to reply.