You need to sign in to do that
Don't have an account?
Ab
error inside static fucntion
Hello,
public static Map<Lead, List<Account>> getFn(Map<Lead, String> maptest) {
Id temp= Account.sObjectType.getDescribe().getRecordTypeInfosByDeveloperName().get('RecodNameEx').getRecordTypeId();
When i put this line i get below error:
Method does not exist or incorrect signature: void getRecordTypeInfosByDeveloperName() from the type Schema.DescribeSObjectResult
public static Map<Lead, List<Account>> getFn(Map<Lead, String> maptest) {
Id temp= Account.sObjectType.getDescribe().getRecordTypeInfosByDeveloperName().get('RecodNameEx').getRecordTypeId();
When i put this line i get below error:
Method does not exist or incorrect signature: void getRecordTypeInfosByDeveloperName() from the type Schema.DescribeSObjectResult
complete code
All Answers
I think there is a error : getFn(Map<Lead, String> maptest)
Try to check my code : getFn(Map<Lead, list<String>> maptest)
Let me know if it works.
complete code