Ajouter aux favorisIsaac Yalcin (VaxCare) a publié du contenu dans Developers at Dreamforce (Question initialement posée par Isaac Yalcin)16 févr. 2023, 14:45Isaac Yalcin"Argument must be in line query" error in Batch Apex class.Hello, Dear Fellow Colleagues,I hope everyone is doing great and coding Apex! :) I have a question and I really would like to understand to solution. Can you please help me with what line 7 gives an error? I made a SOQL, collected my list of opportunities, and passed them in the getQueryLocator. But I got this error. I really would like to understand how to fix this and what the actual argument must be in line query mean. Thank you very much for your time and help in advance. I have copy the entire SOQL from closed parenthesis to close parenthesis and paste it as an argument in getQueryLocator directly and delete the "List<Opporunity> opps = " part. When I do this the error goes away. But I like to know why I cannot pass "opps" as argument?Afficher plusAjouter un commentaireRédiger un commentaire...GrasItaliqueSoulignerBarréListe à pucesListe numérotéeAjouter un lienBloc de codeInsérer une imageJoindre des fichiersURL du lienAnnulerEnregistrer0/9000Répondre
Isaac Yalcin"Argument must be in line query" error in Batch Apex class.Hello, Dear Fellow Colleagues,I hope everyone is doing great and coding Apex! :) I have a question and I really would like to understand to solution. Can you please help me with what line 7 gives an error? I made a SOQL, collected my list of opportunities, and passed them in the getQueryLocator. But I got this error. I really would like to understand how to fix this and what the actual argument must be in line query mean. Thank you very much for your time and help in advance. I have copy the entire SOQL from closed parenthesis to close parenthesis and paste it as an argument in getQueryLocator directly and delete the "List<Opporunity> opps = " part. When I do this the error goes away. But I like to know why I cannot pass "opps" as argument?Afficher plus