I'm new to salesforce, Is there any way to use a Custom Label in URL


Instead of https://developer--uat.lightning.force.com/lightning/r/Report

how to use custom labels here ..! Thanks in Advance.

  • It's likely that you want to use Custom Metadata for this instead of Custom Labels. As per documentation Custom labels are custom text values that can be translated into any language that Salesforce supports.. Are you intending to translate the name of the provider in other languages?
    – Arthlete
    Commented Jul 1, 2020 at 5:15

2 Answers 2


Custom labels cannot be used in Custom buttons or links. However, they can be used in URL type fields set via default values (formula editor), Workflow field updates or triggers.


You cannot reference label in Custom Button or Link. In your custom button, you actually do not need to specify the domain name. So below works:


What you need to make as variable is the report ID. You can use Custom Setting (Hierarchy type) so that you can reference it in the Custom Button/Link.

Let say your custom setting name is Report_ID__c and the field is MyReport__c, then:


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .