Slaesforce FAQ

how to get cehcekd alue based on label salesforce

by Graham Auer Published 3 years ago Updated 2 years ago
image

Is it possible to use a custom label with a sobject?

"line 1, column 20: sObject type 'CustomLabel' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names."

Is it possible to use customlabel object in apex controller?

"line 1, column 20: sObject type 'CustomLabel' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names." Please help me in this, how to use this object in apex controller. Thanks in advance.

Can we use labels in the controller?

We can use labels in our controller, like Label.<Label_Name>. while i am trying to query the data from customLabel, it is throwing error like : "line 1, column 20: sObject type 'CustomLabel' is not supported.

image

What is Salesforce Stack Exchange?

Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.

Can labels be queried in SOQL?

Labels cannot be queried via normal SOQL, you have to use Metadata to achieve this if you are writing this in APEX: github.com/financialforcedev/apex-mdapi. Or if you are in Developer console just check the option "Use Tooling API"

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9