Skip to main content
Nick Van Arsdale ha fatto una domanda in #Trailhead Challenges

When I attempt to create an anonymous script to test I do not see the "Execute Anonymous Script" from Code Lens. I have seen other question responses saying that Code Lens is not available in Visual Studio Code but this is the program I was advised to download for the module. I also attempt to execute anonymous script through the command line but it returned an error in the output section that reads "Error: Line: 1, Column: 27

Error: Method does not exist or incorrect signature: void getRecords() from the type HouseService"

 

Module url: https://trailhead.salesforce.com/content/learn/projects/get-started-with-salesforce-development/write-business-logic-in-apex?trail_id=force_com_dev_beginner

I do not see the Code Lens when completing

11 risposte
  1. 11 mag 2025, 18:14

    First select the text which has to be execute .In command pallate ( ctrl+shift+p) type SFDX : Execute anonymous apex with currently selected text. Then it will be executed 

0/9000