You need to sign in to do that
Don't have an account?
Jhonatas Jesus 9
help!!!!
please help created test class
public with sharing class CookbookBot_GetOpenAppointments { @InvocableMethod(label='Get Open Appointments') public static List<List<Bot_Appointment__c>> getOpenAppointments(List<String> sEmails) { String sEmail = sEmails[0]; // Get the list of new and scheduled appointments List<Bot_Appointment__c> appointments = [SELECT Id, Name, JobType__c, AppointmentDate__c, AppointmentSlot__c FROM Bot_Appointment__c WHERE Contact__r.Email =:sEmail AND Status__c IN ('New','Scheduled')]; // Create a list for the appointments // NOTE: This is a list of lists in order to handle bulk calls... List<List<Bot_Appointment__c>> appointmentList = new List<List<Bot_Appointment__c>>(); // Add all the new and scheduled appointments to the list appointmentList.add(appointments); return appointmentList; } }
help!!!!
try with below code and modify the field api names as per your org and set the test data for mandatory fields. let me know if any issues.
If this helps, Please mark it as best answer.
Thanks!!
I had made modifications to a sosl query and I don't know how to assemble the test class that way above can you help with this?