You need to sign in to do that
Don't have an account?
Priyesh Misquith 12
How to Convert List<List<Cases> to List<case>
How to Convert List<List<Cases> to List<Case>
@InvocableMethod public static void CaseAssign(List<List<Case>> lstCase) { List<Case> Cases=[select id from case where case.id in :lstCase]; List<case> caseupdate = new List<case>(); for(case cc : Cases){ Database.DMLOptions dmo = new Database.DMLOptions(); dmo.assignmentRuleHeader.useDefaultRule= true; cc.setOptions(dmo); caseupdate.add(cc); } update caseupdate; }
I think you need to iterate over the lis<list<case>> to create one that want to use as per your use case.
Also, if this doesn't work let us know the usecase so as to check further and respond back.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.