Establecer como favoritoIsaac Yalcin (VaxCare) ha publicado en Developers at Dreamforce (Pregunta original de 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?Mostrar másAgregar un comentarioEscribir un comentario...NegritaCursivaSubrayadoTachadoLista con viñetasLista numeradaAgregar vínculoBloque de códigoInsertar imagenAdjuntar archivosURL de vínculoCancelarGuardar0/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 más