FavoritosIsaac Yalcin (VaxCare) publicou em Developers at Dreamforce (Originalmente perguntado por Isaac Yalcin)16 de fev. de 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?Mostrar maisAdicionar um comentárioEscrever um comentário...NegritoItálicoSublinhadoTachadoLista com marcadoresLista numeradaAdicionar linkBloco de códigosInserir imagemAnexar arquivosURL do linkCancelarSalvar0/9000Responder
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?Mostrar mais