
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"
11 个回答
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