FavoritIsaac Yalcin (VaxCare) postete in Developers at Dreamforce (Ursprünglich gefragt von Isaac Yalcin)16. Feb. 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?Mehr anzeigenKommentar hinzufügenKommentar schreiben...FettKursivUnterstreichenDurchstreichenListe mit GliederungspunktenNummerierte ListeLink hinzufügenCodeblockBild einfügenDateien anhängenLink-URLAbbrechenSpeichern0/9000Antworten
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?Mehr anzeigen