Skip to main content

#Custom Labels0 discussing

Hello,

 

we are facing this weird issue and it is happening only in production. In our Omniscript, which is running inside of community, we have custom LWC and Flexcard where sometimes, the custom labels are displayed as its names (like MY_LABEL instead it's actual value or translation) and it actually happens only for certain languages. At first it was appearing for Dutch (translation), but now it happens for english (values).

 

We are using fetchCustomLabels() function in custom LWC and referencing labels as {Label.MY_LABEL} in flexcard. I see the label names are instead of values in Session storage as well. Looks like some caching issue.

 

Any idea how to fix?

 

#Omnistudio #Flexcard #LWC #Custom Labels #Community

12 answers
  1. Aug 27, 2025, 11:05 AM

    I’ve run into this same issue before when custom labels started showing their API names instead of values in OmniScript. In my case it was related to how caching and translations were being handled in production. One thing that helped was clearing the cached session storage for the affected user and reloading the OmniScript to ensure the fetchCustomLabels() call was pulling the correct language values. 

     

    Another area worth double-checking is whether all your labels are properly translated for every active language in your org. Even if English values exist, if one translation entry is missing or not activated, Salesforce sometimes defaults to showing the API name. Running a quick anonymous script (as shared above) is a good way to confirm that none of the labels are missing. 

     

    We also solved part of our issue by standardizing label management with a consistent approach across LWC and Flexcards. Having a centralized way to track and maintain labels prevents inconsistencies. For example, Libra Labels:

    https://www.libra.co.za/

    offers enterprise-grade labeling solutions, and while it’s not directly Salesforce-specific, the principle of structured label management is the same, consistency in how values are stored, retrieved, and displayed reduces these kinds of runtime surprises. 

     

    If the issue persists even after checking translations and cache, you might want to trace when fetchCustomLabels() is executed in your flow, sometimes the timing of when labels are loaded in OmniScript vs. when Flexcard renders can cause a mismatch.

0/9000

I created a flexcard and added few text elements with custom labels. This is the format I used to retrieve the custom label in FC - {Label.CustomLabel}. It worked fine. No issues at all.

I changed the custom label value to something and I dont see that reflecting in the flexcard. Can someone shed some light on this? Looks more of a cache issue. Are there any settings to be enabled?

#Flexcard #Custom Labels #Omnistudio #Cache

4 answers
0/9000

How can I edit a Custom Label in Production Org where the custom label is protected and belongs to a managed Package. The documentation on Custom Label says that it is not subscriber editable if it is marked as Protected.

 

#User Interface  #Custom Labels

1 answer
  1. Jul 5, 2021, 5:45 PM

    Yes, The documentation does say that managed package custom Labels are not subscriber editable, and in a way that is correct. But you can OVERRIDE the custom label with the new value in English language(*if that is your language) using Translation Workbench. There is a difference between the work edit and override. 

    For simpler understanding refer to the following link; else continue reading the comment.

     https://help.salesforce.com/articleView?id=sf.cl_translate_edit.htm&type=5

     

    Step 1 : Enable Translation Workbench for your org. 

    Go to Setup -> In Quick find type "Translation" -> Select "Translation Language Settings" -> Click "Enable" button. 

    Step 2 : Add a language (*for Example English) after enabling Translation Workbench. 

    In the same page "Translation Language Settings" click on "Add Button" -> For the first time by default English will be selected  and Active checkbox will be/needs to be marked as true; else select a new language -> In the "Identify Translators for this Language" section add yourself in the Selected List -> Click "Save". Now English language can be used to override values using Translation workbench.

    Step 3 : Override the value in the Managed package Custom Label to be referenced in Apex class and Client-side Javascript .

    Go to Setup -> In Quick find type "Custom Labels" and select "Custom Labels" -> Select the Managed package Custom Label that you need to OVERRIDE(*not edit) -> In the Translations related list, click New to enter a new translation -> Select the Language you are translating into (* right now English as you have added this one in Step 2) -> In the Translation Text field, enter the translated value. This text overrides the value specified in the label's Value field when a user's default language is the translation language for both Apex class and Client side -> Save your changes.

    (N.B.: The main purpose of custom Labels in my opinion is for UI and not Apex classes)

0/9000

I am trying to obtain all the classes and custom labels used in lwc components, So i retrived all the dependency using batch api as the query result were in consistent. I was able to reve , all to flows,apexclass,auradefinitionbundle using labels but coudn't retrive lwc .am i missing something or its not supoorted yet

0/9000

In our Community we have a shared Hero Component on our Homepage. In the component I need to have the Caption text in different languages. I am looking into using Custom Labels, and then referencing the label from the component. 

 

I have tried folowing the guide here: https://help.salesforce.com/articleView?id=sf.cl_about.htm&type=5

 

Custom Label Name = trans_communitypage_HomePage

 

Reference in Hero Component: {!$Label.trans_communitypage_HomePage}

 

But I do not seem to be able to reference the custom label

 

Anybody who can help?

1 comment
  1. Apr 7, 2021, 3:37 PM
    If I remember correctly, the way you translate components is by switching to that language in builder, and updating the component within that language. You cannot use custom labels in merge fields for component properties.
0/9000

Hi all,

in the org I'm working, the Account Name Label has been changed (but only for the English language).

I try to explain:

When I access to Account Name field on Object setting, the label is modified (assuming "Nome Account ABC").

On the Account page, this field is visualized in two different way based on the personal setting language.

If I use Italian, I find "Nome Account ABC", instead if I use English I find "Account Name".

 

What can I do to find always "Account Name"?

 

Tks

0/9000

Hello all,

 

With Winter'21 in my Sandbox, I can no longer use a Formula field that refers to a Custom Label.

For example.

In my Screen Flow, I have a Formula Field of Data type Text that was set to: {!$Label.UW_frmFiscalYear}

UW_frmFiscalYear   is a Custom Label that I have defined in English and French

If I try to save the fornula, I get a Enter valid value  error message.

This will happen even if my Flow is set to Api version 49.

I tried the same thing in our Prod Org and I am not getting the error.

Any ideas?

9 comments
  1. Oct 15, 2020, 7:57 AM

    I was thinking if you created a choice set of only the options you need to see at each bit, then use assignment depending on the choice maybe. But either way, hope you get it sorted ☺

    Lewis Howel

    Software Systems Administrator

    [Visit Daikin Applied (UK) Ltd for more information]<

    www.daikinapplied.uk

    >

    Daikin Applied (UK) Ltd

    Hawley Mill, Hawley Road | Dartford | Kent | DA2 7QX | United Kingdom

    Office: +44 345 565 2700 | Direct: +44 345 565 2712 | Mobile: +44 7817 275 732 | Fax: +44 1670 566206

0/9000

HOW TO TRANSLATE/RENAME CUSTOM LABELS

 

Hi guys!

If you have installed a new app to your Salesforce org and wanna change or translate its labels, here is a short video instruction on how you can do this!)

 

https://www.youtube.com/watch?v=_RknolXayuU

 

#Salesforce  #Custom Labels  #Managed Packages

@Community Management  @Community Templates  @* Experience Cloud - Best Practices *

0/9000

Has anyone noticed that not all labels load when creating a formula resource in the new flow builder? We have a bigger org with a lot of managed labels. When I create a formula resource to avoid hardcoding an ID in, I can't see all of the labels. If I scroll, I can't even get past the As, if I free type, it won't predict when I'm typing at all, so I must verify with the label record to make sure I got it right.

 

Seems like an odd glitch. I like to put the metadata type in front of my labels (like QueueQueuename) and I can't get to anything in the Q's through predictive text.

3 comments
0/9000

Hey Trailblazers, Are Custom Labels in Lightning components auto-included in Packages now? I saw this idea: https://success.salesforce.com/ideaView?id=0873A000000CLYSQA4 which Salesforce has replied it's in spring 18, but couldn't find it in release notes.

 

Appreciate any update on this? please. 

 

Cheers!

Pasan

 

@* Lightning Now! * @* Customer Success * @* APAC Success Central * 

3 comments
0/9000