Skip to main content
Nick Van Arsdale 님이 #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개
  1. 2025년 5월 11일 오후 6: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