// @AuraEnabled(cacheable=true)
// public static String getAuthHelpText() {
// return Signicat_Auth_Provider__mdt.Auth_Provider_Name__c.getDescribe().getInlineHelpText();
// }
// @AuraEnabled(cacheable=true)
// public static String getCustomFieldsHelpText() {
// String helpText1 = Signicat_Auth_Provider__mdt.Auth_Provider_Name__c.getDescribe().getInlineHelpText();
// String helpText2 = Signicat_Auth_Provider__mdt.Authorize_Endpoint_URL__c.getDescribe().getInlineHelpText();
// return Signicat_Auth_Provider__mdt.Auth_Provider_Name__c.getDescribe().getInlineHelpText();
// }
@AuraEnabled(cacheable=true)
public static List<string> getListHelpText() {
String helpText1 = Signicat_Auth_Provider__mdt.Auth_Provider_Name__c.getDescribe().getInlineHelpText();
String helpText2 = Signicat_Auth_Provider__mdt.Authorize_Endpoint_URL__c.getDescribe().getInlineHelpText();
return new List<String> {'Auth_Provider_Name__c:' + helpText1,'Auth_Provider_Name__c =>' +helpText2};
}
// @AuraEnabled(cacheable=true)
// public static Map<string,string> getHelpText(string objectName,string FieldName) {
// Map<string,string> fieldsMap = new Map<string,string>();
// if(objectName === ''){
// if(fieldName == ''){
// return Signicat_Auth_Provider__mdt.Auth_Provider_Name__c.getDescribe().getInlineHelpText();
// }
// if(fieldName == ''){
// return Signicat_Auth_Provider__mdt.Auth_Provider_Name__c.getDescribe().getInlineHelpText();
// }
// }
// return Signicat_Auth_Provider__mdt.Auth_Provider_Name__c.getDescribe().getInlineHelpText();
// }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter