• Francis Huang
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi there, I am trying to complete step 2 of the security specialist superbadge and I have installed the Trailhead Security Superbadge managed package. However, when I search for 'Apex Test Execution' in order to select the 'BeAwesome' test with the 'sb_security', no test shows up. I've attached a few screenshots showing this behavior and showing that I have installed the package. Can anyone advise as to why this may be happening? Thanks so much! ( I had initially posted this as an answer on a related thread but was advised to post as a new question)

User-added image

User-added image

User-added image​​​​​​​

 
I encountered the following message in debug log :

Class.FlowContact.createCustomer: line 21, column 1 22:43:19.052 (52187112)|FATAL_ERROR|System.UnexpectedException: Illegal arguments

public class FlowContact {
    public class Customer {     
   @InvocableVariable
      public Contact inContact;
    }
   // Response
    public class Response {
      @InvocableVariable
      public String status;
    }
   @InvocableMethod(label='createCustomer' description='Call createCustomer ')     public static List<Response> createCustomer(List<Customer> customers) {         List<Response> resps = new List<Response> ();         Response resp = new Response();         System.debug('createCustomer Contact Id '+customers[0].inContact.Id);

         String strSalutation = customers[0].inContact.Salutation;
        System.debug('createCustomer Contact '+ strSalutation);  // line 21 is here        System.debug('createCustomer Contact fn '+customers[0].inContact.firstName);         System.debug('createCustomer Contact ln'+customers[0].inContact.lastName);         System.debug('createCustomer Contact n'+customers[0].inContact.Name);
        resp.status='0';
        resps.add(resp);
        return resps;
    }
 }

This method is called from a flow with firstname, lastname and Salutation which are fullfilled

Do you have any clue ?
Thanks in advance