Retrieves a label by the specified label key.
You can only call this method when authenticated as a Wix app or Wix user identity.
function getLabel(key: string, options: GetLabelOptions): Promise<ContactLabel>;
Label key.
key
is generated when the label is created.
It can't be modified, even if displayName
is updated.
Language options.
import { labels } from "@wix/crm";
async function getLabel(key, options) {
const response = await labels.getLabel(key, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.