In following trigger.I need to get the labels for field labels in Opportunity Level:
For example:
Api name Field Label
Client_Stability_Risk_Mitigation__c --->Client Stability Risk & Mitigation
Contract_Terms_Risk_Mitigation__c --->Contract Terms Risk & Mitigation
etc.
for(Opportunity op:opList){
if(op.Client_Stability_Risk_Mitigation__c!=null && op.Top_Risk_Client_Stability__c){
//I need field label of Client_Stability_Risk_Mitigation__c
i++;
op.Top_2_Risks__c=i+'.'+op.Client_Stability_Risk_Mitigation__c;
}
if(op.Contract_Terms_Risk_Mitigation__c!=null &&
op.Top_Risk_Contract_Terms__c){
//I need field label for Contract_Terms_Risk_Mitigation__c
if(op.Top_2_Risks__c!=null){
i++;
op.Top_2_Risks__c=op.Top_2_Risks__c+'\n'+i+'.'+op.Contract_Terms_Risk_Mitigation__c;
}
}}