You need to sign in to do that
Don't have an account?
Carolyn juliana 7
How to fix Illegal conversion to List
Hi,
I am getting this error for this code ,how do i fix it
I am getting this error for this code ,how do i fix it
public with sharing class saveCaseType { @AuraEnabled Public static List<String> savecasetype(string level1,string level2,string level3,string caseid){ ERT_Case_Type__c obj=new ERT_Case_Type__c(); Obj.Id =caseid; Obj.Level_1__c=level1; Obj.Level_2__c=level2; Obj.Level_3__c=level3; Insert obj; return obj; } }
you either need to change the declaration to something like: or create a list of Strings to be returned by the method
regards
Andrew